@@ -118,16 +118,16 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | $length = $style->getDisplaysExtra() |
| 121 | - ? floor($style->getContentWidth() / $numberOfItems) - (mb_strlen($style->getItemExtra()) + 2) |
|
| 122 | - : floor($style->getContentWidth() / $numberOfItems); |
|
| 121 | + ? floor($style->getContentWidth()/$numberOfItems) - (mb_strlen($style->getItemExtra()) + 2) |
|
| 122 | + : floor($style->getContentWidth()/$numberOfItems); |
|
| 123 | 123 | |
| 124 | 124 | $length -= $this->gutter; |
| 125 | 125 | $length = (int) $length; |
| 126 | 126 | |
| 127 | - $missingLength = $style->getContentWidth() % $numberOfItems; |
|
| 127 | + $missingLength = $style->getContentWidth()%$numberOfItems; |
|
| 128 | 128 | |
| 129 | 129 | return $this->buildRows( |
| 130 | - array_map(function ($index, $item) use ($selected, $length, $style) { |
|
| 130 | + array_map(function($index, $item) use ($selected, $length, $style) { |
|
| 131 | 131 | $isSelected = $selected && $index === $this->selectedItemIndex; |
| 132 | 132 | |
| 133 | 133 | if ($item instanceof CheckableItem) { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $extraPadLength = $style->getDisplaysExtra() ? 2 + mb_strlen($style->getItemExtra()) : 0; |
| 176 | 176 | |
| 177 | 177 | return array_map( |
| 178 | - function ($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 178 | + function($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 179 | 179 | return $this->buildRow($cells, $i, $length, $missingLength, $extraPadLength); |
| 180 | 180 | }, |
| 181 | 181 | range(0, max(array_map('count', $cells)) - 1) |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | implode( |
| 190 | 190 | '', |
| 191 | 191 | array_map( |
| 192 | - function ($cell) use ($index, $length, $extraPadLength) { |
|
| 192 | + function($cell) use ($index, $length, $extraPadLength) { |
|
| 193 | 193 | return $cell[$index] ?? str_repeat(' ', $length + $this->gutter + $extraPadLength); |
| 194 | 194 | }, |
| 195 | 195 | $cells |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | bool $isSelected, |
| 207 | 207 | string $itemExtra |
| 208 | 208 | ) : array { |
| 209 | - return array_map(function ($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 209 | + return array_map(function($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 210 | 210 | $invertedColoursSetCode = $isSelected |
| 211 | 211 | ? $style->getInvertedColoursSetCode() |
| 212 | 212 | : ''; |