Completed
Push — master ( 0adb34...2edd9d )
by Aydin
12:37 queued 10:29
created
src/MenuItem/SplitItem.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,16 +121,16 @@  discard block
 block discarded – undo
121 121
         $largestItemExtra = $this->calculateItemExtra();
122 122
 
123 123
         $length = $largestItemExtra > 0
124
-            ? floor($style->getContentWidth() / $numberOfItems) - ($largestItemExtra + 2)
125
-            : floor($style->getContentWidth() / $numberOfItems);
124
+            ? floor($style->getContentWidth()/$numberOfItems) - ($largestItemExtra + 2)
125
+            : floor($style->getContentWidth()/$numberOfItems);
126 126
 
127 127
         $length -= $this->gutter;
128 128
         $length = (int) $length;
129 129
 
130
-        $missingLength = $style->getContentWidth() % $numberOfItems;
130
+        $missingLength = $style->getContentWidth()%$numberOfItems;
131 131
         
132 132
         return $this->buildRows(
133
-            mapWithKeys($this->items, function (int $index, MenuItemInterface $item) use ($selected, $length, $style) {
133
+            mapWithKeys($this->items, function(int $index, MenuItemInterface $item) use ($selected, $length, $style) {
134 134
                 $isSelected = $selected && $index === $this->selectedItemIndex;
135 135
 
136 136
                 if ($item instanceof CheckboxItem || $item instanceof RadioItem) {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $extraPadLength = $largestItemExtra > 0 ? 2 + $largestItemExtra : 0;
179 179
         
180 180
         return array_map(
181
-            function ($i) use ($cells, $length, $missingLength, $extraPadLength) {
181
+            function($i) use ($cells, $length, $missingLength, $extraPadLength) {
182 182
                 return $this->buildRow($cells, $i, $length, $missingLength, $extraPadLength);
183 183
             },
184 184
             range(0, max(array_map('count', $cells)) - 1)
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             implode(
193 193
                 '',
194 194
                 array_map(
195
-                    function ($cell) use ($index, $length, $extraPadLength) {
195
+                    function($cell) use ($index, $length, $extraPadLength) {
196 196
                         return $cell[$index] ?? str_repeat(' ', $length + $this->gutter + $extraPadLength);
197 197
                     },
198 198
                     $cells
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         bool $isSelected,
210 210
         string $itemExtra
211 211
     ) : array {
212
-        return array_map(function ($row, $index) use ($length, $style, $isSelected, $itemExtra) {
212
+        return array_map(function($row, $index) use ($length, $style, $isSelected, $itemExtra) {
213 213
             $invertedColoursSetCode = $isSelected
214 214
                 ? $style->getInvertedColoursSetCode()
215 215
                 : '';
Please login to merge, or discard this patch.