@@ -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 |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | : $this->selectedItem++; |
280 | 280 | |
281 | 281 | if (!array_key_exists($this->selectedItem, $this->items)) { |
282 | - $this->selectedItem = $direction === 'UP' |
|
282 | + $this->selectedItem = $direction === 'UP' |
|
283 | 283 | ? end($itemKeys) |
284 | 284 | : reset($itemKeys); |
285 | 285 | } elseif ($this->getSelectedItem()->canSelect()) { |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
342 | 342 | } |
343 | 343 | |
344 | - array_map(function ($item, $index) use ($frame) { |
|
344 | + array_map(function($item, $index) use ($frame) { |
|
345 | 345 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
346 | 346 | }, $this->items, array_keys($this->items)); |
347 | 347 | |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | $borderColour = ''; |
386 | 386 | } |
387 | 387 | |
388 | - return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
388 | + return array_map(function($row) use ($invertedColour, $notInvertedColour, $borderColour) { |
|
389 | 389 | return sprintf( |
390 | 390 | "%s%s%s%s%s%s%s%s%s%s%s%s\n", |
391 | 391 | str_repeat(' ', $this->style->getMargin()), |