Skip to content

Commit 95e4c68

Browse files
committed
Fix coding standards
1 parent 0290d9d commit 95e4c68

File tree

1 file changed

+5
-3
lines changed
  • src/Symfony/Component/Console/Helper

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,14 @@ public function setColumnMaxWidth(int $columnIndex, int $width): static
180180
public function setOptionalColumns(array $columns): static
181181
{
182182
$this->optionalColumns = $columns;
183+
183184
return $this;
184185
}
185186

186187
public function setMaxWidth(int $maxWidth): static
187188
{
188189
$this->maxWidth = $maxWidth;
190+
189191
return $this;
190192
}
191193

@@ -422,7 +424,7 @@ public function render()
422424

423425
if ($this->droppedColumns) {
424426
foreach ($this->droppedColumns as $column) {
425-
if ($this->numberOfColumns < count($row)) {
427+
if ($this->numberOfColumns < \count($row)) {
426428
unset($row[$column]);
427429
}
428430
}
@@ -816,7 +818,7 @@ private function getRowColumns(array $row): array
816818
*/
817819
private function calculateColumnsWidth(iterable $groups)
818820
{
819-
$pass2 = count($this->effectiveColumnWidths);
821+
$pass2 = \count($this->effectiveColumnWidths);
820822
for ($column = 0; $column < $this->numberOfColumns; ++$column) {
821823
$lengths = [];
822824
foreach ($groups as $group) {
@@ -896,7 +898,7 @@ private function dropColumn(iterable $groups)
896898
);
897899
}
898900

899-
$this->numberOfColumns -= count($this->droppedColumns);
901+
$this->numberOfColumns -= \count($this->droppedColumns);
900902
}
901903
}
902904

0 commit comments

Comments
 (0)