@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | : $this->selectedItem++; |
| 205 | 205 | |
| 206 | 206 | if (!array_key_exists($this->selectedItem, $this->items)) { |
| 207 | - $this->selectedItem = $direction === 'UP' |
|
| 207 | + $this->selectedItem = $direction === 'UP' |
|
| 208 | 208 | ? end($itemKeys) |
| 209 | 209 | : reset($itemKeys); |
| 210 | 210 | } elseif ($this->getSelectedItem()->canSelect()) { |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | - array_map(function ($item, $index) use ($frame) { |
|
| 265 | + array_map(function($item, $index) use ($frame) { |
|
| 266 | 266 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
| 267 | 267 | }, $this->items, array_keys($this->items)); |
| 268 | 268 | |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | |
| 273 | 273 | $this->terminal->moveCursorToTop(); |
| 274 | 274 | foreach ($frame->getRows() as $row) { |
| 275 | - $this->terminal->write("\033[1E" . rtrim($row, "\r\n")); |
|
| 275 | + $this->terminal->write("\033[1E".rtrim($row, "\r\n")); |
|
| 276 | 276 | } |
| 277 | 277 | $this->terminal->write("\033[1E\033[J"); |
| 278 | 278 | |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | ? $this->style->getSelectedUnsetCode() |
| 295 | 295 | : $this->style->getUnselectedUnsetCode(); |
| 296 | 296 | |
| 297 | - return array_map(function ($row) use ($setColour, $unsetColour) { |
|
| 297 | + return array_map(function($row) use ($setColour, $unsetColour) { |
|
| 298 | 298 | return sprintf( |
| 299 | 299 | "%s%s%s%s%s%s%s\n", |
| 300 | 300 | str_repeat(' ', $this->style->getMargin()), |