You are here

private function Table::copyRow in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::copyRow()

Parameters

array $rows:

int $line:

Return value

array

1 call to Table::copyRow()
Table::fillNextRows in vendor/symfony/console/Helper/Table.php
fill rows that contains rowspan > 1.

File

vendor/symfony/console/Helper/Table.php, line 455

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

private function copyRow($rows, $line) {
  $row = $rows[$line];
  foreach ($row as $cellKey => $cellValue) {
    $row[$cellKey] = '';
    if ($cellValue instanceof TableCell) {
      $row[$cellKey] = new TableCell('', array(
        'colspan' => $cellValue
          ->getColspan(),
      ));
    }
  }
  return $row;
}