@@ -115,15 +115,15 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | $length = $style->getDisplaysExtra() |
| 118 | - ? floor($style->getContentWidth() / $numberOfItems) - (mb_strlen($style->getItemExtra()) + 2) |
|
| 119 | - : floor($style->getContentWidth() / $numberOfItems); |
|
| 118 | + ? floor($style->getContentWidth()/$numberOfItems) - (mb_strlen($style->getItemExtra()) + 2) |
|
| 119 | + : floor($style->getContentWidth()/$numberOfItems); |
|
| 120 | 120 | |
| 121 | 121 | $length -= $this->gutter; |
| 122 | 122 | |
| 123 | - $missingLength = $style->getContentWidth() % $numberOfItems; |
|
| 123 | + $missingLength = $style->getContentWidth()%$numberOfItems; |
|
| 124 | 124 | |
| 125 | 125 | return $this->buildRows( |
| 126 | - array_map(function ($index, $item) use ($selected, $length, $style) { |
|
| 126 | + array_map(function($index, $item) use ($selected, $length, $style) { |
|
| 127 | 127 | $isSelected = $selected && $index === $this->selectedItemIndex; |
| 128 | 128 | $marker = $item->canSelect() |
| 129 | 129 | ? sprintf('%s', $style->getMarker($isSelected)) |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $extraPadLength = $style->getDisplaysExtra() ? 2 + mb_strlen($style->getItemExtra()) : 0; |
| 156 | 156 | |
| 157 | 157 | return array_map( |
| 158 | - function ($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 158 | + function($i) use ($cells, $length, $missingLength, $extraPadLength) { |
|
| 159 | 159 | return $this->buildRow($cells, $i, $length, $missingLength, $extraPadLength); |
| 160 | 160 | }, |
| 161 | 161 | range(0, max(array_map('count', $cells)) - 1) |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | implode( |
| 170 | 170 | '', |
| 171 | 171 | array_map( |
| 172 | - function ($cell) use ($index, $length, $extraPadLength) { |
|
| 172 | + function($cell) use ($index, $length, $extraPadLength) { |
|
| 173 | 173 | return $cell[$index] ?? str_repeat(' ', $length + $this->gutter + $extraPadLength); |
| 174 | 174 | }, |
| 175 | 175 | $cells |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | bool $isSelected, |
| 187 | 187 | string $itemExtra |
| 188 | 188 | ) : array { |
| 189 | - return array_map(function ($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 189 | + return array_map(function($row, $index) use ($length, $style, $isSelected, $itemExtra) { |
|
| 190 | 190 | $invertedColoursSetCode = $isSelected |
| 191 | 191 | ? $style->getInvertedColoursSetCode() |
| 192 | 192 | : ''; |