Completed
Pull Request — master (#202)
by Aydin
02:04
created
src/Builder/CliMenuBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
     private function processItemShortcut(MenuItemInterface $item) : void
245 245
     {
246
-        $this->processIndividualShortcut($item, function (CliMenu $menu) use ($item) {
246
+        $this->processIndividualShortcut($item, function(CliMenu $menu) use ($item) {
247 247
             $menu->executeAsSelected($item);
248 248
         });
249 249
     }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     private function processSplitItemShortcuts(SplitItem $splitItem) : void
252 252
     {
253 253
         foreach ($splitItem->getItems() as $item) {
254
-            $this->processIndividualShortcut($item, function (CliMenu $menu) use ($splitItem, $item) {
254
+            $this->processIndividualShortcut($item, function(CliMenu $menu) use ($splitItem, $item) {
255 255
                 $current = $splitItem->getSelectedItemIndex();
256 256
 
257 257
                 $splitItem->setSelectedItemIndex(
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 
530 530
     private function itemsHaveExtra(array $items) : bool
531 531
     {
532
-        return !empty(array_filter($items, function (MenuItemInterface $item) {
532
+        return !empty(array_filter($items, function(MenuItemInterface $item) {
533 533
             return $item->showsItemExtra();
534 534
         }));
535 535
     }
@@ -553,17 +553,17 @@  discard block
 block discarded – undo
553 553
 
554 554
     private function propagateStyles(array $items) : void
555 555
     {
556
-        $menuItems = array_filter($items, function (MenuItemInterface $menuItem) {
556
+        $menuItems = array_filter($items, function(MenuItemInterface $menuItem) {
557 557
             return $menuItem instanceof MenuMenuItem;
558 558
         });
559 559
 
560
-        $changedMenus = array_filter($menuItems, function (MenuMenuItem $menuItem) {
560
+        $changedMenus = array_filter($menuItems, function(MenuMenuItem $menuItem) {
561 561
             return !$menuItem->getSubMenu()
562 562
                 ->getStyle()
563 563
                 ->hasChangedFromDefaults();
564 564
         });
565 565
 
566
-        array_walk($changedMenus, function (MenuMenuItem $menuItem) {
566
+        array_walk($changedMenus, function(MenuMenuItem $menuItem) {
567 567
             $menuItem->getSubMenu()->setStyle(
568 568
                 $this->menu->getStyle()
569 569
             );
Please login to merge, or discard this patch.