|
@@ -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
|
|
|
@@ -376,7 +376,7 @@ discard block |
|
|
block discarded – undo |
|
376
|
376
|
$borderColour = ''; |
|
377
|
377
|
} |
|
378
|
378
|
|
|
379
|
|
- return array_map(function ($row) use ($setColour, $invertedColour, $notInvertedColour, $resetColour, $borderColour) { |
|
|
379
|
+ return array_map(function($row) use ($setColour, $invertedColour, $notInvertedColour, $resetColour, $borderColour) { |
|
380
|
380
|
return sprintf( |
|
381
|
381
|
"%s%s%s%s%s%s%s%s%s%s%s%s%s\n", |
|
382
|
382
|
str_repeat(' ', $this->style->getMargin()), |