File tree 1 file changed +9
-9
lines changed
src/Symfony/Component/Console/Helper
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -763,18 +763,18 @@ private function calculateColumnsWidth(iterable $groups)
763
763
continue ;
764
764
}
765
765
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
+ }
774
775
}
775
776
}
776
777
}
777
- }
778
778
779
779
$ lengths [] = $ this ->getCellWidth ($ row , $ column );
780
780
}
You can’t perform that action at this time.
0 commit comments