Completed
Push — master ( 0283b1...36767e )
by Aydin
14s queued 11s
created
src/MenuStyle.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     protected function calculateContentWidth() : void
348 348
     {
349 349
         $this->contentWidth = $this->width
350
-            - ($this->paddingLeftRight * 2)
350
+            - ($this->paddingLeftRight*2)
351 351
             - ($this->borderRightWidth + $this->borderLeftWidth);
352 352
 
353 353
         if ($this->contentWidth < 0) {
@@ -417,8 +417,8 @@  discard block
 block discarded – undo
417 417
 
418 418
     private function maybeShrinkWidth(int $margin, int $width) : int
419 419
     {
420
-        if ($width + ($margin * 2) >= $this->terminal->getWidth()) {
421
-            $width = $this->terminal->getWidth() - ($margin * 2);
420
+        if ($width + ($margin*2) >= $this->terminal->getWidth()) {
421
+            $width = $this->terminal->getWidth() - ($margin*2);
422 422
 
423 423
             if ($width <= 0) {
424 424
                 throw CannotShrinkMenuException::fromMarginAndTerminalWidth($margin, $this->terminal->getWidth());
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 
534 534
     private function calculateMarginAuto(int $width) : void
535 535
     {
536
-        $this->margin = (int) floor(($this->terminal->getWidth() - ($width)) / 2);
536
+        $this->margin = (int) floor(($this->terminal->getWidth() - ($width))/2);
537 537
     }
538 538
 
539 539
     public function setMargin(int $margin) : self
Please login to merge, or discard this patch.