@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $config = $this->processConfiguration($configuration, $configs); |
| 31 | 31 | |
| 32 | 32 | $container->setParameter('core23_menu.groups', array_combine( |
| 33 | - array_map(static function ($name) { |
|
| 33 | + array_map(static function($name) { |
|
| 34 | 34 | return sprintf('static_%s', $name); |
| 35 | 35 | }, array_keys($config['groups'])), |
| 36 | 36 | $config['groups'] |
@@ -86,16 +86,16 @@ |
||
| 86 | 86 | ->defaultValue([]) |
| 87 | 87 | ->useAttributeAsKey('param') |
| 88 | 88 | ->prototype('scalar')->end() |
| 89 | - ->validate()->ifTrue(static function ($element) { |
|
| 89 | + ->validate()->ifTrue(static function($element) { |
|
| 90 | 90 | return !\is_array($element); |
| 91 | 91 | })->thenInvalid('The routeParams element must be an array.')->end() |
| 92 | 92 | ->end() |
| 93 | 93 | ->variableNode('children') |
| 94 | 94 | ->defaultValue([]) |
| 95 | - ->validate()->ifTrue(static function ($element) { |
|
| 95 | + ->validate()->ifTrue(static function($element) { |
|
| 96 | 96 | return !\is_array($element); |
| 97 | 97 | })->thenInvalid('The children element must be an array.')->end() |
| 98 | - ->validate()->always(function ($children) { |
|
| 98 | + ->validate()->always(function($children) { |
|
| 99 | 99 | array_walk($children, [$this, 'evaluateChildren']); |
| 100 | 100 | |
| 101 | 101 | return $children; |