Completed
Pull Request — master (#120)
by
unknown
01:50
created
src/MenuStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/CliMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()),
Please login to merge, or discard this patch.