private function Table::fillCells in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::fillCells()
fill cells for a row that contains colspan > 1.
Parameters
array $row:
int $column:
Return value
array
1 call to Table::fillCells()
- Table::buildTableRows in vendor/
symfony/ console/ Helper/ Table.php
File
- vendor/
symfony/ console/ Helper/ Table.php, line 436
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
private function fillCells($row, $column) {
$cell = $row[$column];
if ($cell instanceof TableCell && $cell
->getColspan() > 1) {
foreach (range($column + 1, $column + $cell
->getColspan() - 1) as $position) {
// insert empty value into rows at column position
array_splice($row, $position, 0, '');
}
}
return $row;
}