@@ -51,9 +51,9 @@ |
||
| 51 | 51 | ->children() |
| 52 | 52 | ->scalarNode('name')->defaultNull()->end() |
| 53 | 53 | ->arrayNode('attributes') |
| 54 | - ->useAttributeAsKey('id') |
|
| 55 | - ->defaultValue([]) |
|
| 56 | - ->prototype('scalar')->end() |
|
| 54 | + ->useAttributeAsKey('id') |
|
| 55 | + ->defaultValue([]) |
|
| 56 | + ->prototype('scalar')->end() |
|
| 57 | 57 | ->end() |
| 58 | 58 | ->arrayNode('items') |
| 59 | 59 | ->useAttributeAsKey('id') |
@@ -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; |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | $menuOptions = self::getOptions($baseMenuOptions, $itemDefinition); |
| 129 | 129 | |
| 130 | 130 | if (\array_key_exists('children', $itemDefinition) && \count($itemDefinition['children']) > 0) { |
| 131 | - $label .= ' <b class="caret caret-menu"></b>'; |
|
| 131 | + $label .= ' <b class="caret caret-menu"></b>'; |
|
| 132 | 132 | $menuOptions = array_merge($menuOptions, $this->defaultOptions, [ |
| 133 | 133 | 'label' => $label, |
| 134 | 134 | ]); |
@@ -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'] |