@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | //'allow_safe_labels' => true, |
75 | 75 | 'extras' => ['safe_label' => true], |
76 | 76 | ]) |
77 | - ->setNormalizer('route', function (Options $options, $route) { |
|
77 | + ->setNormalizer('route', function(Options $options, $route) { |
|
78 | 78 | if ($options->offsetGet('uri')) { |
79 | 79 | return $route; |
80 | 80 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | return $route; |
87 | 87 | }) |
88 | - ->setNormalizer('routeParameters', function (Options $options, $routeParameters) { |
|
88 | + ->setNormalizer('routeParameters', function(Options $options, $routeParameters) { |
|
89 | 89 | if ($routeParameters === null) { |
90 | 90 | return []; |
91 | 91 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | return $routeParameters; |
115 | 115 | }) |
116 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
116 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
117 | 117 | // user has to defined either an admin name and an action name, or a route name with optional |
118 | 118 | // parameters, or an url |
119 | 119 | if (null === $adminName |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | return $adminName; |
127 | 127 | }) |
128 | 128 | // if an admin name is set, an action name can provided. This action will be the menu link |
129 | - ->setNormalizer('action', function (Options $options, $action) { |
|
129 | + ->setNormalizer('action', function(Options $options, $action) { |
|
130 | 130 | // if an action name is provided, an admin name should be defined too |
131 | 131 | if ($action !== null && $options->offsetGet('admin') === null) { |
132 | 132 | throw new InvalidOptionsException('You should provide an admin name for this action '.$action); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | return $action; |
141 | 141 | }) |
142 | - ->setNormalizer('children', function (Options $options, $items) { |
|
142 | + ->setNormalizer('children', function(Options $options, $items) { |
|
143 | 143 | if (!is_array($items)) { |
144 | 144 | $items = []; |
145 | 145 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | return $resolvedItems; |
159 | 159 | }) |
160 | - ->setNormalizer('text', function (Options $options, $text) { |
|
160 | + ->setNormalizer('text', function(Options $options, $text) { |
|
161 | 161 | if ($text) { |
162 | 162 | return $text; |
163 | 163 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | return $text; |
180 | 180 | }) |
181 | - ->setNormalizer('linkAttributes', function (Options $options, $linkAttributes) { |
|
181 | + ->setNormalizer('linkAttributes', function(Options $options, $linkAttributes) { |
|
182 | 182 | if (!$linkAttributes) { |
183 | 183 | $linkAttributes = []; |
184 | 184 | } |