public function getTerminalWidth()
    {
        if ($this->isInteractiveShell()
            || (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && getenv('shell'))
        ) {
            return (int)shell_exec('tput cols');
        }

        return self::TERMINAL_DEFAULT_WIDTH;
    }
public function getTerminalWidth()
    {
        if ($this->isInteractiveShell()
            || (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && getenv('shell'))
        ) {
            return (int)shell_exec('tput cols');
        }

        return self::TERMINAL_DEFAULT_WIDTH;
    }
public function getTerminalWidth ( ) { if ( $ this -> isInteractiveShell ( ) || ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' && getenv ( 'shell' ) ) ) { return ( int ) shell_exec ( 'tput cols' ) ; } return self :: TERMINAL_DEFAULT_WIDTH ; }
Return the terminal width. If not an interactive shell, return default.

@return int

@codeCoverageIgnore
Return the terminal width . If not an interactive shell return default .