src/Table.php
protected function addCell($text, $wrap = ['', '']) {
        if ($this->currentRow === null) {
            $this->row();
        }

        $i = count($this->currentRow);
        $this->columnWidths[$i] = max(strlen($text), Cli::val($i, $this->columnWidths, 0)); // max column width

        $this->currentRow[$i] = [$text, $wrap];
        return $this;
    }
protected function addCell($text, $wrap = ['', '']) {
        if ($this->currentRow === null) {
            $this->row();
        }

        $i = count($this->currentRow);
        $this->columnWidths[$i] = max(strlen($text), Cli::val($i, $this->columnWidths, 0)); // max column width

        $this->currentRow[$i] = [$text, $wrap];
        return $this;
    }
protected function addCell ( $ text , $ wrap = [ '' , '' ] ) { if ( $ this -> currentRow === null ) { $ this -> row ( ) ; } $ i = count ( $ this -> currentRow ) ; $ this -> columnWidths [ $ i ] = max ( strlen ( $ text ) , Cli :: val ( $ i , $ this -> columnWidths , 0 ) ) ; // max column width $ this -> currentRow [ $ i ] = [ $ text , $ wrap ] ; return $ this ; }
Add a cell to the table.

@param string $text The text of the cell.
@param array $wrap A two element array used to wrap the text in the cell.
@return $this
Add a cell to the table .