protected function adaptCells(array $rows, array $maxColumnWidths)
    {
        foreach ($rows as $rowNum => &$row) {
            if ($row instanceof TableSeparator) {
                continue;
            }
            foreach ($row as $column => &$cell) {
                $cellWidth = $this->getCellWidth($cell);
                if ($cellWidth > $maxColumnWidths[$column]) {
                    $cell = $this->wrapCell($cell, $maxColumnWidths[$column]);
                }
            }
        }

        return $rows;
    }
protected function adaptCells(array $rows, array $maxColumnWidths)
    {
        foreach ($rows as $rowNum => &$row) {
            if ($row instanceof TableSeparator) {
                continue;
            }
            foreach ($row as $column => &$cell) {
                $cellWidth = $this->getCellWidth($cell);
                if ($cellWidth > $maxColumnWidths[$column]) {
                    $cell = $this->wrapCell($cell, $maxColumnWidths[$column]);
                }
            }
        }

        return $rows;
    }
protected function adaptCells ( array $ rows , array $ maxColumnWidths ) { foreach ( $ rows as $ rowNum => & $ row ) { if ( $ row instanceof TableSeparator ) { continue ; } foreach ( $ row as $ column => & $ cell ) { $ cellWidth = $ this -> getCellWidth ( $ cell ) ; if ( $ cellWidth > $ maxColumnWidths [ $ column ] ) { $ cell = $ this -> wrapCell ( $ cell , $ maxColumnWidths [ $ column ] ) ; } } } return $ rows ; }
Modify table rows, wrapping their cells' content to the max column width.

@param array $rows
@param array $maxColumnWidths

@return array
Modify table rows wrapping their cells content to the max column width .