@@ -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()) { |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()))); |
350 | 350 | } |
351 | 351 | |
352 | - array_map(function ($item, $index) use ($frame) { |
|
352 | + array_map(function($item, $index) use ($frame) { |
|
353 | 353 | $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem)); |
354 | 354 | }, $this->items, array_keys($this->items)); |
355 | 355 | |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | $borderColour = ''; |
394 | 394 | } |
395 | 395 | |
396 | - return array_map(function ($row) use ($invertedColoursSetCode, $invertedColoursUnsetCode, $borderColour) { |
|
396 | + return array_map(function($row) use ($invertedColoursSetCode, $invertedColoursUnsetCode, $borderColour) { |
|
397 | 397 | return sprintf( |
398 | 398 | "%s%s%s%s%s%s%s%s%s%s%s%s\n", |
399 | 399 | str_repeat(' ', $this->style->getMargin()), |