original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Return the terminal width. If not an interactive shell, return default.
  
  @return int
  
  @codeCoverageIgnore
docstring_tokens: Return the terminal width . If not an interactive shell return default .