File tree 1 file changed +5
-3
lines changed
src/Symfony/Component/Console/Helper 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,14 @@ public function setColumnMaxWidth(int $columnIndex, int $width): static
180
180
public function setOptionalColumns (array $ columns ): static
181
181
{
182
182
$ this ->optionalColumns = $ columns ;
183
+
183
184
return $ this ;
184
185
}
185
186
186
187
public function setMaxWidth (int $ maxWidth ): static
187
188
{
188
189
$ this ->maxWidth = $ maxWidth ;
190
+
189
191
return $ this ;
190
192
}
191
193
@@ -422,7 +424,7 @@ public function render()
422
424
423
425
if ($ this ->droppedColumns ) {
424
426
foreach ($ this ->droppedColumns as $ column ) {
425
- if ($ this ->numberOfColumns < count ($ row )) {
427
+ if ($ this ->numberOfColumns < \ count ($ row )) {
426
428
unset($ row [$ column ]);
427
429
}
428
430
}
@@ -816,7 +818,7 @@ private function getRowColumns(array $row): array
816
818
*/
817
819
private function calculateColumnsWidth (iterable $ groups )
818
820
{
819
- $ pass2 = count ($ this ->effectiveColumnWidths );
821
+ $ pass2 = \ count ($ this ->effectiveColumnWidths );
820
822
for ($ column = 0 ; $ column < $ this ->numberOfColumns ; ++$ column ) {
821
823
$ lengths = [];
822
824
foreach ($ groups as $ group ) {
@@ -896,7 +898,7 @@ private function dropColumn(iterable $groups)
896
898
);
897
899
}
898
900
899
- $ this ->numberOfColumns -= count ($ this ->droppedColumns );
901
+ $ this ->numberOfColumns -= \ count ($ this ->droppedColumns );
900
902
}
901
903
}
902
904
You can’t perform that action at this time.
0 commit comments