@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function getSelectAction() : ?callable |
31 | 31 | { |
32 | - return function (CliMenu $menu) { |
|
32 | + return function(CliMenu $menu) { |
|
33 | 33 | $this->showSubMenu($menu); |
34 | 34 | }; |
35 | 35 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function getSelectAction() : ?callable |
47 | 47 | { |
48 | - return function (CliMenu $cliMenu) { |
|
48 | + return function(CliMenu $cliMenu) { |
|
49 | 49 | $this->toggle(); |
50 | 50 | $cliMenu->redraw(); |
51 | 51 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getSelectAction() : ?callable |
47 | 47 | { |
48 | - return function (CliMenu $cliMenu) { |
|
48 | + return function(CliMenu $cliMenu) { |
|
49 | 49 | $parentItem = $cliMenu->getItemByIndex($cliMenu->getSelectedItemIndex()); |
50 | 50 | |
51 | 51 | $siblings = $parentItem instanceof SplitItem |
@@ -54,14 +54,14 @@ discard block |
||
54 | 54 | |
55 | 55 | $filtered = array_filter( |
56 | 56 | $siblings, |
57 | - function (MenuItemInterface $item) { |
|
57 | + function(MenuItemInterface $item) { |
|
58 | 58 | return $item instanceof self; |
59 | 59 | } |
60 | 60 | ); |
61 | 61 | |
62 | 62 | array_walk( |
63 | 63 | $filtered, |
64 | - function (RadioItem $item) { |
|
64 | + function(RadioItem $item) { |
|
65 | 65 | $item->setUnchecked(); |
66 | 66 | } |
67 | 67 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | return mapWithKeys( |
22 | 22 | $this->wrapAndIndentText($marker, $item->getText(), $availableTextWidth), |
23 | - function (int $key, string $row) use ($menuStyle, $itemStyle, $availableTextWidth, $disabled) { |
|
23 | + function(int $key, string $row) use ($menuStyle, $itemStyle, $availableTextWidth, $disabled) { |
|
24 | 24 | $text = $disabled ? $menuStyle->getDisabledItemText($row) : $row; |
25 | 25 | |
26 | 26 | return $key === 0 && $itemStyle->getDisplaysExtra() |