@@ -33,7 +33,7 @@ |
||
33 | 33 | 'class' => 'list-group cms-menu-'.$this->menuName, |
34 | 34 | ], |
35 | 35 | ]) |
36 | - ->setNormalizer('children', function (Options $options, $value) { |
|
36 | + ->setNormalizer('children', function(Options $options, $value) { |
|
37 | 37 | if (!is_array($value)) { |
38 | 38 | throw new Exception('The menu items should an array for menu "'.$this->menuName.'"'); |
39 | 39 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'text' => null, |
45 | 45 | 'children' => [], |
46 | 46 | ]) |
47 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
47 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
48 | 48 | // user has to defined either an admin name and an action name, or a route name with optional |
49 | 49 | // parameters, or an url |
50 | 50 | if (null === $adminName |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $adminName; |
58 | 58 | }) |
59 | 59 | // if an admin name is set, an action name can provided. This action will be the menu link |
60 | - ->setNormalizer('action', function (Options $options, $action) { |
|
60 | + ->setNormalizer('action', function(Options $options, $action) { |
|
61 | 61 | // if an action name is provided, an admin name should be defined too |
62 | 62 | if (null !== $action && null === $options->offsetGet('admin')) { |
63 | 63 | throw new InvalidOptionsException('You should provide an admin name for this action '.$action); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | return $action; |
72 | 72 | }) |
73 | - ->setNormalizer('children', function (Options $options, $items) { |
|
73 | + ->setNormalizer('children', function(Options $options, $items) { |
|
74 | 74 | if (!is_array($items)) { |
75 | 75 | $items = []; |
76 | 76 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | return $resolvedItems; |
89 | 89 | }) |
90 | - ->setNormalizer('text', function (Options $options, $text) { |
|
90 | + ->setNormalizer('text', function(Options $options, $text) { |
|
91 | 91 | if ($text) { |
92 | 92 | return $text; |
93 | 93 | } |