Completed
Push — master ( 04bfb7...c52156 )
by Aydin
01:51
created
src/CliMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                 : $this->selectedItem++;
269 269
 
270 270
             if (!array_key_exists($this->selectedItem, $this->items)) {
271
-                $this->selectedItem  = $direction === 'UP'
271
+                $this->selectedItem = $direction === 'UP'
272 272
                     ? end($itemKeys)
273 273
                     : reset($itemKeys);
274 274
             } elseif ($this->getSelectedItem()->canSelect()) {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator())));
331 331
         }
332 332
 
333
-        array_map(function ($item, $index) use ($frame) {
333
+        array_map(function($item, $index) use ($frame) {
334 334
             $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem));
335 335
         }, $this->items, array_keys($this->items));
336 336
 
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             $borderColour = '';
375 375
         }
376 376
 
377
-        return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) {
377
+        return array_map(function($row) use ($invertedColour, $notInvertedColour, $borderColour) {
378 378
             return sprintf(
379 379
                 "%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
380 380
                 str_repeat(' ', $this->style->getMargin()),
Please login to merge, or discard this patch.