|
@@ -279,7 +279,7 @@ discard block |
|
|
block discarded – undo |
|
279
|
279
|
: $this->selectedItem++; |
|
280
|
280
|
|
|
281
|
281
|
if (!array_key_exists($this->selectedItem, $this->items)) { |
|
282
|
|
- $this->selectedItem = $direction === 'UP' |
|
|
282
|
+ $this->selectedItem = $direction === 'UP' |
|
283
|
283
|
? end($itemKeys) |
|
284
|
284
|
: reset($itemKeys); |
|
285
|
285
|
} elseif ($this->getSelectedItem()->canSelect()) { |
|
@@ -341,7 +341,7 @@ discard block |
|
|
block discarded – undo |
|
341
|
341
|
$frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
|
342
|
342
|
} |
|
343
|
343
|
|
|
344
|
|
- array_map(function ($item, $index) use ($frame) { |
|
|
344
|
+ array_map(function($item, $index) use ($frame) { |
|
345
|
345
|
$frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
|
346
|
346
|
}, $this->items, array_keys($this->items)); |
|
347
|
347
|
|
|
@@ -385,7 +385,7 @@ discard block |
|
|
block discarded – undo |
|
385
|
385
|
$borderColour = ''; |
|
386
|
386
|
} |
|
387
|
387
|
|
|
388
|
|
- return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
|
388
|
+ return array_map(function($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
389
|
389
|
return sprintf( |
|
390
|
390
|
"%s%s%s%s%s%s%s%s%s%s%s%s\n", |
|
391
|
391
|
str_repeat(' ', $this->style->getMargin()), |
Please login to merge, or discard this patch.