@@ -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()), |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | protected function calculateContentWidth() : void |
288 | 288 | { |
289 | 289 | $this->contentWidth = $this->width |
290 | - - ($this->padding * 2) |
|
290 | + - ($this->padding*2) |
|
291 | 291 | - ($this->borderRightWidth + $this->borderLeftWidth); |
292 | 292 | } |
293 | 293 | |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | public function setMarginAuto() : self |
368 | 368 | { |
369 | 369 | $this->marginAuto = true; |
370 | - $this->margin = floor(($this->terminal->getWidth() - $this->width) / 2); |
|
370 | + $this->margin = floor(($this->terminal->getWidth() - $this->width)/2); |
|
371 | 371 | |
372 | 372 | return $this; |
373 | 373 | } |