src/Provider/Node/SystemNodeProvider.php
protected function getIfconfig()
    {
        if (strpos(strtolower(ini_get('disable_functions')), 'passthru') !== false) {
            return '';
        }

        ob_start();
        switch (strtoupper(substr(php_uname('a'), 0, 3))) {
            case 'WIN':
                passthru('ipconfig /all 2>&1');
                break;
            case 'DAR':
                passthru('ifconfig 2>&1');
                break;
            case 'FRE':
                passthru('netstat -i -f link 2>&1');
                break;
            case 'LIN':
            default:
                passthru('netstat -ie 2>&1');
                break;
        }

        return ob_get_clean();
    }
protected function getIfconfig()
    {
        if (strpos(strtolower(ini_get('disable_functions')), 'passthru') !== false) {
            return '';
        }

        ob_start();
        switch (strtoupper(substr(php_uname('a'), 0, 3))) {
            case 'WIN':
                passthru('ipconfig /all 2>&1');
                break;
            case 'DAR':
                passthru('ifconfig 2>&1');
                break;
            case 'FRE':
                passthru('netstat -i -f link 2>&1');
                break;
            case 'LIN':
            default:
                passthru('netstat -ie 2>&1');
                break;
        }

        return ob_get_clean();
    }
protected function getIfconfig ( ) { if ( strpos ( strtolower ( ini_get ( 'disable_functions' ) ) , 'passthru' ) !== false ) { return '' ; } ob_start ( ) ; switch ( strtoupper ( substr ( php_uname ( 'a' ) , 0 , 3 ) ) ) { case 'WIN' : passthru ( 'ipconfig /all 2>&1' ) ; break ; case 'DAR' : passthru ( 'ifconfig 2>&1' ) ; break ; case 'FRE' : passthru ( 'netstat -i -f link 2>&1' ) ; break ; case 'LIN' : default : passthru ( 'netstat -ie 2>&1' ) ; break ; } return ob_get_clean ( ) ; }
Returns the network interface configuration for the system

@codeCoverageIgnore
@return string
Returns the network interface configuration for the system