Skip to content

Commit d3d72ae

Browse files
committed
Fix CS in Console Table after symfony#45565
1 parent 989fea0 commit d3d72ae

File tree

1 file changed

+9
-9
lines changed
  • src/Symfony/Component/Console/Helper

1 file changed

+9
-9
lines changed

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -763,18 +763,18 @@ private function calculateColumnsWidth(iterable $groups)
763763
continue;
764764
}
765765

766-
foreach ($row as $i => $cell) {
767-
if ($cell instanceof TableCell) {
768-
$textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
769-
$textLength = Helper::strlen($textContent);
770-
if ($textLength > 0) {
771-
$contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
772-
foreach ($contentColumns as $position => $content) {
773-
$row[$i + $position] = $content;
766+
foreach ($row as $i => $cell) {
767+
if ($cell instanceof TableCell) {
768+
$textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
769+
$textLength = Helper::strlen($textContent);
770+
if ($textLength > 0) {
771+
$contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
772+
foreach ($contentColumns as $position => $content) {
773+
$row[$i + $position] = $content;
774+
}
774775
}
775776
}
776777
}
777-
}
778778

779779
$lengths[] = $this->getCellWidth($row, $column);
780780
}

0 commit comments

Comments
 (0)