@@ -268,7 +268,7 @@ discard block |
||
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()) { |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
348 | 348 | } |
349 | 349 | |
350 | - array_map(function ($item, $index) use ($frame) { |
|
350 | + array_map(function($item, $index) use ($frame) { |
|
351 | 351 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
352 | 352 | }, $this->items, array_keys($this->items)); |
353 | 353 | |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | |
391 | 391 | $borderColour = $this->style->getBorderColourCode(); |
392 | 392 | |
393 | - return array_map(function ($row) use ($setColour, $unsetColour, $borderColour) { |
|
393 | + return array_map(function($row) use ($setColour, $unsetColour, $borderColour) { |
|
394 | 394 | return sprintf( |
395 | 395 | "%s%s%s%s%s%s%s%s%s%s%s\n", |
396 | 396 | str_repeat(' ', $this->style->getMargin()), |
@@ -303,7 +303,7 @@ |
||
303 | 303 | |
304 | 304 | public function setWidth(int $width) : self |
305 | 305 | { |
306 | - $availableWidth = $this->terminal->getWidth() - ($this->margin * 2) - ($this->padding * 2) - ($this->borderRightWidth + $this->borderLeftWidth); |
|
306 | + $availableWidth = $this->terminal->getWidth() - ($this->margin*2) - ($this->padding*2) - ($this->borderRightWidth + $this->borderLeftWidth); |
|
307 | 307 | |
308 | 308 | if ($width >= $availableWidth) { |
309 | 309 | $width = $availableWidth; |