Completed
Pull Request — master (#104)
by
unknown
01:46
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()) {
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
             $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator())));
327 327
         }
328 328
 
329
-        array_map(function ($item, $index) use ($frame) {
329
+        array_map(function($item, $index) use ($frame) {
330 330
             $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem));
331 331
         }, $this->items, array_keys($this->items));
332 332
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             ? $this->style->getInvertedColoursSetCode()
360 360
             : '';
361 361
 
362
-        return array_map(function ($row) use ($setColour, $invertedColour, $resetColour) {
362
+        return array_map(function($row) use ($setColour, $invertedColour, $resetColour) {
363 363
             return sprintf(
364 364
                 "%s%s%s%s%s%s%s%s\n",
365 365
                 str_repeat(' ', $this->style->getMargin()),
Please login to merge, or discard this patch.