function _calculateRowHeight($row_number, $row) {
        if (!isset($this->_row_heights[$row_number])) {
            $this->_row_heights[$row_number] = 1;
        }

        // Do not process horizontal rule rows.
        if ($row === self::CONSOLE_TABLE_HORIZONTAL_RULE) {
            return;
        }

        for ($i = 0, $c = count($row); $i < $c; ++$i) {
            $lines = preg_split('/\r?\n|\r/', $row[$i]);
            $this->_row_heights[$row_number] = max($this->_row_heights[$row_number],
                count($lines));
        }
    }
function _calculateRowHeight($row_number, $row) {
        if (!isset($this->_row_heights[$row_number])) {
            $this->_row_heights[$row_number] = 1;
        }

        // Do not process horizontal rule rows.
        if ($row === self::CONSOLE_TABLE_HORIZONTAL_RULE) {
            return;
        }

        for ($i = 0, $c = count($row); $i < $c; ++$i) {
            $lines = preg_split('/\r?\n|\r/', $row[$i]);
            $this->_row_heights[$row_number] = max($this->_row_heights[$row_number],
                count($lines));
        }
    }
function _calculateRowHeight ( $ row_number , $ row ) { if ( ! isset ( $ this -> _row_heights [ $ row_number ] ) ) { $ this -> _row_heights [ $ row_number ] = 1 ; } // Do not process horizontal rule rows. if ( $ row === self :: CONSOLE_TABLE_HORIZONTAL_RULE ) { return ; } for ( $ i = 0 , $ c = count ( $ row ) ; $ i < $ c ; ++ $ i ) { $ lines = preg_split ( '/\r?\n|\r/' , $ row [ $ i ] ) ; $ this -> _row_heights [ $ row_number ] = max ( $ this -> _row_heights [ $ row_number ] , count ( $ lines ) ) ; } }
Calculates the maximum height for all columns of a row.

@param integer $row_number The row number.
@param array $row The row data.

@return void
Calculates the maximum height for all columns of a row .