Completed
Pull Request — master (#112)
by Aydin
01:49
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
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 : $this->selectedItem++;
270 270
 
271 271
             if (!array_key_exists($this->selectedItem, $this->items)) {
272
-                $this->selectedItem  = $direction === 'UP'
272
+                $this->selectedItem = $direction === 'UP'
273 273
                     ? end($itemKeys)
274 274
                     : reset($itemKeys);
275 275
             } elseif ($this->getSelectedItem()->canSelect()) {
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator())));
332 332
         }
333 333
 
334
-        array_map(function ($item, $index) use ($frame) {
334
+        array_map(function($item, $index) use ($frame) {
335 335
             $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem));
336 336
         }, $this->items, array_keys($this->items));
337 337
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
             $borderColour = '';
376 376
         }
377 377
 
378
-        return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) {
378
+        return array_map(function($row) use ($invertedColour, $notInvertedColour, $borderColour) {
379 379
 
380 380
             $rightPadding = $this->style->getRightHandPadding(mb_strlen(s::stripAnsiEscapeSequence($row)));
381 381
             
Please login to merge, or discard this patch.