Skip to content

Commit 7216004

Browse files
committed
Fix CS in Console Table after #45565
1 parent 3aac1c4 commit 7216004

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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)