@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | public function getRows(MenuStyle $style, bool $selected = false) : array |
79 | 79 | { |
80 | - $rows = array_map(function ($row) use ($style) { |
|
80 | + $rows = array_map(function($row) use ($style) { |
|
81 | 81 | $length = mb_strlen($row); |
82 | 82 | |
83 | 83 | $padding = $style->getContentWidth() - $length; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $this->numberOfRows = count($rows); |
80 | 80 | |
81 | - return array_map(function ($row, $key) use ($style, $length) { |
|
81 | + return array_map(function($row, $key) use ($style, $length) { |
|
82 | 82 | $text = $this->disabled ? $style->getDisabledItemText($row) : $row; |
83 | 83 | |
84 | 84 | if ($key === 0) { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | : $this->selectedItem++; |
193 | 193 | |
194 | 194 | if (!array_key_exists($this->selectedItem, $this->items)) { |
195 | - $this->selectedItem = $direction === 'up' |
|
195 | + $this->selectedItem = $direction === 'up' |
|
196 | 196 | ? end($itemKeys) |
197 | 197 | : reset($itemKeys); |
198 | 198 | } elseif ($this->getSelectedItem()->canSelect()) { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
248 | 248 | } |
249 | 249 | |
250 | - array_map(function ($item, $index) use ($frame) { |
|
250 | + array_map(function($item, $index) use ($frame) { |
|
251 | 251 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
252 | 252 | }, $this->items, array_keys($this->items)); |
253 | 253 | |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | ? $this->style->getSelectedUnsetCode() |
293 | 293 | : $this->style->getUnselectedUnsetCode(); |
294 | 294 | |
295 | - $rows = array_map(function ($row) use ($setColour, $unsetColour) { |
|
295 | + $rows = array_map(function($row) use ($setColour, $unsetColour) { |
|
296 | 296 | return sprintf( |
297 | 297 | "%s%s%s%s%s%s%s\n\r", |
298 | 298 | str_repeat(' ', $this->style->getMargin()), |