@@ -60,7 +60,7 @@ |
||
60 | 60 | )); |
61 | 61 | } |
62 | 62 | |
63 | - $menuItem = $this->factory->createItem('main', $menuOptions); |
|
63 | + $menuItem = $this->factory->createItem('main', $menuOptions); |
|
64 | 64 | |
65 | 65 | if (array_key_exists('items', $menu)) { |
66 | 66 | $this->buildSubMenu($menuItem, $menu['items']); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $config = $this->processConfiguration($configuration, $configs); |
29 | 29 | |
30 | 30 | $container->setParameter('core23.menu.groups', array_combine( |
31 | - array_map(function ($name) { |
|
31 | + array_map(function($name) { |
|
32 | 32 | return sprintf('static_%s', $name); |
33 | 33 | }, array_keys($config['groups'])), |
34 | 34 | $config['groups'] |
@@ -49,9 +49,9 @@ |
||
49 | 49 | ->children() |
50 | 50 | ->scalarNode('name')->defaultNull()->end() |
51 | 51 | ->arrayNode('attributes') |
52 | - ->useAttributeAsKey('id') |
|
53 | - ->defaultValue(array()) |
|
54 | - ->prototype('scalar')->end() |
|
52 | + ->useAttributeAsKey('id') |
|
53 | + ->defaultValue(array()) |
|
54 | + ->prototype('scalar')->end() |
|
55 | 55 | ->end() |
56 | 56 | ->arrayNode('items') |
57 | 57 | ->useAttributeAsKey('id') |
@@ -85,16 +85,16 @@ |
||
85 | 85 | ->defaultValue(array()) |
86 | 86 | ->useAttributeAsKey('param') |
87 | 87 | ->prototype('scalar')->end() |
88 | - ->validate()->ifTrue(function ($element) { |
|
88 | + ->validate()->ifTrue(function($element) { |
|
89 | 89 | return !is_array($element); |
90 | 90 | })->thenInvalid('The routeParams element must be an array.')->end() |
91 | 91 | ->end() |
92 | 92 | ->variableNode('children') |
93 | 93 | ->defaultValue(array()) |
94 | - ->validate()->ifTrue(function ($element) { |
|
94 | + ->validate()->ifTrue(function($element) { |
|
95 | 95 | return !is_array($element); |
96 | 96 | })->thenInvalid('The children element must be an array.')->end() |
97 | - ->validate()->always(function ($children) { |
|
97 | + ->validate()->always(function($children) { |
|
98 | 98 | array_walk($children, array($this, 'evaluateChildren')); |
99 | 99 | |
100 | 100 | return $children; |