function Table::copyRow
2 calls to Table::copyRow()
- Table::buildTableRows in vendor/
symfony/ console/ Helper/ Table.php - Table::fillNextRows in vendor/
symfony/ console/ Helper/ Table.php - fill rows that contains rowspan > 1.
File
-
vendor/
symfony/ console/ Helper/ Table.php, line 761
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
private function copyRow(array $rows, int $line) : array {
$row = $rows[$line];
foreach ($row as $cellKey => $cellValue) {
$row[$cellKey] = '';
if ($cellValue instanceof TableCell) {
$row[$cellKey] = new TableCell('', [
'colspan' => $cellValue->getColspan(),
]);
}
}
return $row;
}