Completed
Push — master ( 761de5...d7bebf )
by Aydin
12s
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
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                 : $this->selectedItem++;
269 269
 
270 270
             if (!array_key_exists($this->selectedItem, $this->items)) {
271
-                $this->selectedItem  = $direction === 'UP'
271
+                $this->selectedItem = $direction === 'UP'
272 272
                     ? end($itemKeys)
273 273
                     : reset($itemKeys);
274 274
             } elseif ($this->getSelectedItem()->canSelect()) {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator())));
331 331
         }
332 332
 
333
-        array_map(function ($item, $index) use ($frame) {
333
+        array_map(function($item, $index) use ($frame) {
334 334
             $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem));
335 335
         }, $this->items, array_keys($this->items));
336 336
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
             $borderColour = '';
374 374
         }
375 375
 
376
-        return array_map(function ($row) use ($setColour, $invertedColour, $resetColour, $borderColour) {
376
+        return array_map(function($row) use ($setColour, $invertedColour, $resetColour, $borderColour) {
377 377
             return sprintf(
378 378
                 "%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
379 379
                 str_repeat(' ', $this->style->getMargin()),
Please login to merge, or discard this patch.