@@ -86,16 +86,16 @@ |
||
86 | 86 | ->defaultValue([]) |
87 | 87 | ->useAttributeAsKey('param') |
88 | 88 | ->prototype('scalar')->end() |
89 | - ->validate()->ifTrue(function ($element) { |
|
89 | + ->validate()->ifTrue(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(function ($element) { |
|
95 | + ->validate()->ifTrue(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; |