Completed
Pull Request — master (#100)
by
unknown
04:28 queued 01:20
created
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()) {
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
             $frame->addRows($this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator())));
348 348
         }
349 349
 
350
-        array_map(function ($item, $index) use ($frame) {
350
+        array_map(function($item, $index) use ($frame) {
351 351
             $frame->addRows($this->drawMenuItem($item, $index === $this->selectedItem));
352 352
         }, $this->items, array_keys($this->items));
353 353
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         
391 391
         $borderColour = $this->style->getBorderColourCode();
392 392
 
393
-        return array_map(function ($row) use ($setColour, $unsetColour, $borderColour) {
393
+        return array_map(function($row) use ($setColour, $unsetColour, $borderColour) {
394 394
             return sprintf(
395 395
                 "%s%s%s%s%s%s%s%s%s%s%s\n",
396 396
                 str_repeat(' ', $this->style->getMargin()),
Please login to merge, or discard this patch.
src/MenuStyle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
 
304 304
     public function setWidth(int $width) : self
305 305
     {
306
-        $availableWidth = $this->terminal->getWidth() - ($this->margin * 2) - ($this->padding * 2) - ($this->borderRightWidth + $this->borderLeftWidth);
306
+        $availableWidth = $this->terminal->getWidth() - ($this->margin*2) - ($this->padding*2) - ($this->borderRightWidth + $this->borderLeftWidth);
307 307
 
308 308
         if ($width >= $availableWidth) {
309 309
             $width = $availableWidth;
Please login to merge, or discard this patch.