@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | //'allow_safe_labels' => true, |
| 81 | 81 | 'extras' => ['safe_label' => true], |
| 82 | 82 | ]) |
| 83 | - ->setNormalizer('route', function (Options $options, $route) { |
|
| 83 | + ->setNormalizer('route', function(Options $options, $route) { |
|
| 84 | 84 | if ($options->offsetGet('uri')) { |
| 85 | 85 | return $route; |
| 86 | 86 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | return $route; |
| 93 | 93 | }) |
| 94 | - ->setNormalizer('routeParameters', function (Options $options, $routeParameters) { |
|
| 94 | + ->setNormalizer('routeParameters', function(Options $options, $routeParameters) { |
|
| 95 | 95 | if (null === $routeParameters) { |
| 96 | 96 | return []; |
| 97 | 97 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | return $routeParameters; |
| 121 | 121 | }) |
| 122 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
| 122 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
| 123 | 123 | // user has to defined either an admin name and an action name, or a route name with optional |
| 124 | 124 | // parameters, or an url |
| 125 | 125 | if (null === $adminName |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | return $adminName; |
| 133 | 133 | }) |
| 134 | 134 | // if an admin name is set, an action name can provided. This action will be the menu link |
| 135 | - ->setNormalizer('action', function (Options $options, $action) { |
|
| 135 | + ->setNormalizer('action', function(Options $options, $action) { |
|
| 136 | 136 | // if an action name is provided, an admin name should be defined too |
| 137 | 137 | if (null !== $action && null === $options->offsetGet('admin')) { |
| 138 | 138 | throw new InvalidOptionsException('You should provide an admin name for this action '.$action); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | return $action; |
| 147 | 147 | }) |
| 148 | - ->setNormalizer('children', function (Options $options, $items) { |
|
| 148 | + ->setNormalizer('children', function(Options $options, $items) { |
|
| 149 | 149 | if (!is_array($items)) { |
| 150 | 150 | $items = []; |
| 151 | 151 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | return $resolvedItems; |
| 165 | 165 | }) |
| 166 | - ->setNormalizer('text', function (Options $options, $text) { |
|
| 166 | + ->setNormalizer('text', function(Options $options, $text) { |
|
| 167 | 167 | if ($text) { |
| 168 | 168 | return $text; |
| 169 | 169 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | return $text; |
| 186 | 186 | }) |
| 187 | - ->setNormalizer('linkAttributes', function (Options $options, $linkAttributes) { |
|
| 187 | + ->setNormalizer('linkAttributes', function(Options $options, $linkAttributes) { |
|
| 188 | 188 | if (!$linkAttributes) { |
| 189 | 189 | $linkAttributes = []; |
| 190 | 190 | } |