src/DunitCommand.php
private function getColumns()
    {
        $dimensions = $this->getApplication()->getTerminalDimensions();
        if (is_array($dimensions) && count($dimensions) > self::DIMENSION_WIDTH) {
            return $dimensions[self::DIMENSION_WIDTH];
        } else {
            return self::DEFAULT_WIDTH;
        }
    }
private function getColumns()
    {
        $dimensions = $this->getApplication()->getTerminalDimensions();
        if (is_array($dimensions) && count($dimensions) > self::DIMENSION_WIDTH) {
            return $dimensions[self::DIMENSION_WIDTH];
        } else {
            return self::DEFAULT_WIDTH;
        }
    }
private function getColumns ( ) { $ dimensions = $ this -> getApplication ( ) -> getTerminalDimensions ( ) ; if ( is_array ( $ dimensions ) && count ( $ dimensions ) > self :: DIMENSION_WIDTH ) { return $ dimensions [ self :: DIMENSION_WIDTH ] ; } else { return self :: DEFAULT_WIDTH ; } }
Returns the number of character columns in the terminal.
@return int The width of the terminal (in number of characters).
Returns the number of character columns in the terminal .