@@ -45,7 +45,7 @@ |
||
45 | 45 | ) |
46 | 46 | ); |
47 | 47 | |
48 | - return array_map(function ($row, $key) use ($style, $length) { |
|
48 | + return array_map(function($row, $key) use ($style, $length) { |
|
49 | 49 | $text = $this->disabled ? $style->getDisabledItemText($row) : $row; |
50 | 50 | |
51 | 51 | if ($key === 0) { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function getRows(MenuStyle $style, bool $selected = false) : array |
48 | 48 | { |
49 | - return array_map(function ($row) use ($style) { |
|
49 | + return array_map(function($row) use ($style) { |
|
50 | 50 | $length = mb_strlen($row); |
51 | 51 | |
52 | 52 | $padding = $style->getContentWidth() - $length; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | |
284 | 284 | private function itemsHaveExtra(array $items) : bool |
285 | 285 | { |
286 | - return !empty(array_filter($items, function (MenuItemInterface $item) { |
|
286 | + return !empty(array_filter($items, function(MenuItemInterface $item) { |
|
287 | 287 | return $item->showsItemExtra(); |
288 | 288 | })); |
289 | 289 | } |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | private function buildSubMenus(array $items) : array |
350 | 350 | { |
351 | - return array_map(function ($item) { |
|
351 | + return array_map(function($item) { |
|
352 | 352 | if (!is_string($item)) { |
353 | 353 | return $item; |
354 | 354 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * Get terminal details |
12 | 12 | */ |
13 | - public function getDetails() : string ; |
|
13 | + public function getDetails() : string; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Get the available width of the terminal |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | exec('stty -icanon'); |
108 | 108 | $this->isCanonical = true; |
109 | 109 | } else { |
110 | - exec('stty ' . $this->getOriginalConfiguration()); |
|
110 | + exec('stty '.$this->getOriginalConfiguration()); |
|
111 | 111 | $this->isCanonical = false; |
112 | 112 | } |
113 | 113 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | ]; |
161 | 161 | |
162 | 162 | $input = ''; |
163 | - $this->input->read(4, function ($buffer) use (&$input) { |
|
163 | + $this->input->read(4, function($buffer) use (&$input) { |
|
164 | 164 | $input .= $buffer; |
165 | 165 | }); |
166 | 166 |