Completed
Push — master ( 68920e...9b40f5 )
by Aydin
01:45 queued 01:41
created
src/MenuStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
examples/input-custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
examples/input-number.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
examples/borders.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.