Completed
Pull Request — master (#194)
by
unknown
02:23
created
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
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
             array_walk(
56 56
                 $filter = array_filter(
57 57
                     $siblings,
58
-                    function (MenuItemInterface $item) {
58
+                    function(MenuItemInterface $item) {
59 59
                         return $item instanceof self;
60 60
                     }
61 61
                 ),
62
-                function (RadioItem $checkableItem) {
62
+                function(RadioItem $checkableItem) {
63 63
                     $checkableItem->setUnchecked();
64 64
                 }
65 65
             );
Please login to merge, or discard this patch.
src/MenuItem/CheckableItem.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/ToggableTrait.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
         );
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) {
Please login to merge, or discard this patch.