@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | protected function calculateContentWidth() : void |
314 | 314 | { |
315 | 315 | $this->contentWidth = $this->width |
316 | - - ($this->paddingLeftRight * 2) |
|
316 | + - ($this->paddingLeftRight*2) |
|
317 | 317 | - ($this->borderRightWidth + $this->borderLeftWidth); |
318 | 318 | |
319 | 319 | if ($this->contentWidth < 0) { |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | public function setMarginAuto() : self |
467 | 467 | { |
468 | 468 | $this->marginAuto = true; |
469 | - $this->margin = floor(($this->terminal->getWidth() - $this->width) / 2); |
|
469 | + $this->margin = floor(($this->terminal->getWidth() - $this->width)/2); |
|
470 | 470 | |
471 | 471 | $this->generateBorderRows(); |
472 | 472 | $this->generatePaddingTopBottomRows(); |
@@ -6,9 +6,9 @@ |
||
6 | 6 | use PhpSchool\CliMenu\Input\InputIO; |
7 | 7 | use PhpSchool\CliMenu\MenuStyle; |
8 | 8 | |
9 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
9 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
10 | 10 | |
11 | -$itemCallable = function (CliMenu $menu) { |
|
11 | +$itemCallable = function(CliMenu $menu) { |
|
12 | 12 | $style = (new MenuStyle()) |
13 | 13 | ->setBg('yellow') |
14 | 14 | ->setFg('black'); |
@@ -3,9 +3,9 @@ |
||
3 | 3 | use PhpSchool\CliMenu\CliMenu; |
4 | 4 | use PhpSchool\CliMenu\CliMenuBuilder; |
5 | 5 | |
6 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
6 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
7 | 7 | |
8 | -$itemCallable = function (CliMenu $menu) { |
|
8 | +$itemCallable = function(CliMenu $menu) { |
|
9 | 9 | $number = $menu->askNumber(); |
10 | 10 | $number->getStyle() |
11 | 11 | ->setBg('180') |
@@ -3,9 +3,9 @@ |
||
3 | 3 | use PhpSchool\CliMenu\CliMenu; |
4 | 4 | use PhpSchool\CliMenu\CliMenuBuilder; |
5 | 5 | |
6 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
6 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
7 | 7 | |
8 | -$itemCallable = function (CliMenu $menu) { |
|
8 | +$itemCallable = function(CliMenu $menu) { |
|
9 | 9 | echo $menu->getSelectedItem()->getText(); |
10 | 10 | }; |
11 | 11 |