@@ -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 (is_a($item, CheckableItem::class)) { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $extraPadLength = $style->getDisplaysExtra() ? 2 + mb_strlen($style->getItemExtra()) : 0; |
| 177 | 177 | |
| 178 | 178 | return array_map( |
| 179 | - function ($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 179 | + function($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 180 | 180 | return $this->buildRow($cells, $i, $length, $missingLength, $extraPadLength); |
| 181 | 181 | }, |
| 182 | 182 | range(0, max(array_map('count', $cells)) - 1) |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | implode( |
| 191 | 191 | '', |
| 192 | 192 | array_map( |
| 193 | - function ($cell) use ($index, $length, $extraPadLength) { |
|
| 193 | + function($cell) use ($index, $length, $extraPadLength) { |
|
| 194 | 194 | return $cell[$index] ?? str_repeat(' ', $length + $this->gutter + $extraPadLength); |
| 195 | 195 | }, |
| 196 | 196 | $cells |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | bool $isSelected, |
| 208 | 208 | string $itemExtra |
| 209 | 209 | ) : array { |
| 210 | - return array_map(function ($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 210 | + return array_map(function($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 211 | 211 | $invertedColoursSetCode = $isSelected |
| 212 | 212 | ? $style->getInvertedColoursSetCode() |
| 213 | 213 | : ''; |