@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | protected function calculateContentWidth() : void |
333 | 333 | { |
334 | 334 | $this->contentWidth = $this->width |
335 | - - ($this->paddingLeftRight * 2) |
|
335 | + - ($this->paddingLeftRight*2) |
|
336 | 336 | - ($this->borderRightWidth + $this->borderLeftWidth); |
337 | 337 | |
338 | 338 | if ($this->contentWidth < 0) { |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | public function setMarginAuto() : self |
486 | 486 | { |
487 | 487 | $this->marginAuto = true; |
488 | - $this->margin = (int) floor(($this->terminal->getWidth() - $this->width) / 2); |
|
488 | + $this->margin = (int) floor(($this->terminal->getWidth() - $this->width)/2); |
|
489 | 489 | |
490 | 490 | $this->generateBorderRows(); |
491 | 491 | $this->generatePaddingTopBottomRows(); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | |
192 | 192 | private function processItemShortcut(MenuItemInterface $item) : void |
193 | 193 | { |
194 | - $this->processIndividualShortcut($item, function (CliMenu $menu) use ($item) { |
|
194 | + $this->processIndividualShortcut($item, function(CliMenu $menu) use ($item) { |
|
195 | 195 | $menu->executeAsSelected($item); |
196 | 196 | }); |
197 | 197 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | private function processSplitItemShortcuts(SplitItem $splitItem) : void |
200 | 200 | { |
201 | 201 | foreach ($splitItem->getItems() as $item) { |
202 | - $this->processIndividualShortcut($item, function (CliMenu $menu) use ($splitItem, $item) { |
|
202 | + $this->processIndividualShortcut($item, function(CliMenu $menu) use ($splitItem, $item) { |
|
203 | 203 | $current = $splitItem->getSelectedItemIndex(); |
204 | 204 | |
205 | 205 | $splitItem->setSelectedItemIndex( |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | |
431 | 431 | private function itemsHaveExtra(array $items) : bool |
432 | 432 | { |
433 | - return !empty(array_filter($items, function (MenuItemInterface $item) { |
|
433 | + return !empty(array_filter($items, function(MenuItemInterface $item) { |
|
434 | 434 | return $item->showsItemExtra(); |
435 | 435 | })); |
436 | 436 | } |