@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | : $this->selectedItem++; |
270 | 270 | |
271 | 271 | if (!array_key_exists($this->selectedItem, $this->items)) { |
272 | - $this->selectedItem = $direction === 'UP' |
|
272 | + $this->selectedItem = $direction === 'UP' |
|
273 | 273 | ? end($itemKeys) |
274 | 274 | : reset($itemKeys); |
275 | 275 | } elseif ($this->getSelectedItem()->canSelect()) { |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
332 | 332 | } |
333 | 333 | |
334 | - array_map(function ($item, $index) use ($frame) { |
|
334 | + array_map(function($item, $index) use ($frame) { |
|
335 | 335 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
336 | 336 | }, $this->items, array_keys($this->items)); |
337 | 337 | |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | $borderColour = ''; |
376 | 376 | } |
377 | 377 | |
378 | - return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
378 | + return array_map(function($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
379 | 379 | |
380 | 380 | $rightPadding = $this->style->getRightHandPadding(mb_strlen(s::stripAnsiEscapeSequence($row))); |
381 | 381 |