@@ -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 | |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | $borderColour = ''; |
393 | 393 | } |
394 | 394 | |
395 | - return array_map(function ($row) use ($setColour, $invertedColour, $resetColour, $borderColour) { |
|
395 | + return array_map(function($row) use ($setColour, $invertedColour, $resetColour, $borderColour) { |
|
396 | 396 | return sprintf( |
397 | 397 | "%s%s%s%s%s%s%s%s%s%s%s%s\n", |
398 | 398 | str_repeat(' ', $this->style->getMargin()), |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | protected function calculateContentWidth() : void |
301 | 301 | { |
302 | 302 | $this->contentWidth = $this->width |
303 | - - ($this->padding * 2) |
|
303 | + - ($this->padding*2) |
|
304 | 304 | - ($this->borderRightWidth + $this->borderLeftWidth); |
305 | 305 | } |
306 | 306 | |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | public function setMarginAuto() : self |
383 | 383 | { |
384 | 384 | $this->marginAuto = true; |
385 | - $this->margin = floor(($this->terminal->getWidth() - $this->width) / 2); |
|
385 | + $this->margin = floor(($this->terminal->getWidth() - $this->width)/2); |
|
386 | 386 | |
387 | 387 | $this->generateBorderRows(); |
388 | 388 |