src/Console/Component/Table/Table.php
private function getNumberOfColumns()
    {
        if (null !== $this->numberOfColumns) {
            return $this->numberOfColumns;
        }

        $columns = [\count($this->headers)];
        foreach ($this->rows as $row) {
            $columns[] = \count($row);
        }

        return $this->numberOfColumns = \max($columns);
    }
private function getNumberOfColumns()
    {
        if (null !== $this->numberOfColumns) {
            return $this->numberOfColumns;
        }

        $columns = [\count($this->headers)];
        foreach ($this->rows as $row) {
            $columns[] = \count($row);
        }

        return $this->numberOfColumns = \max($columns);
    }
private function getNumberOfColumns ( ) { if ( null !== $ this -> numberOfColumns ) { return $ this -> numberOfColumns ; } $ columns = [ \ count ( $ this -> headers ) ] ; foreach ( $ this -> rows as $ row ) { $ columns [ ] = \ count ( $ row ) ; } return $ this -> numberOfColumns = \ max ( $ columns ) ; }
Gets number of columns for this table.

@return int
Gets number of columns for this table .