Completed
Push — master ( d97347...aed183 )
by Aydin
13s queued 11s
created
src/MenuItem/MenuMenuItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/MenuItem/CheckboxItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/MenuItem/RadioItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/MenuItem/SelectableItemRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.