@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $config = $this->processConfiguration($configuration, $configs); |
| 31 | 31 | |
| 32 | 32 | $container->setParameter('core23.menu.groups', array_combine( |
| 33 | - array_map(function ($name) { |
|
| 33 | + array_map(function($name) { |
|
| 34 | 34 | return sprintf('static_%s', $name); |
| 35 | 35 | }, array_keys($config['groups'])), |
| 36 | 36 | $config['groups'] |
@@ -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') |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -87,16 +87,16 @@ discard block |
||
| 87 | 87 | ->defaultValue([]) |
| 88 | 88 | ->useAttributeAsKey('param') |
| 89 | 89 | ->prototype('scalar')->end() |
| 90 | - ->validate()->ifTrue(function ($element) { |
|
| 90 | + ->validate()->ifTrue(function($element) { |
|
| 91 | 91 | return !is_array($element); |
| 92 | 92 | })->thenInvalid('The routeParams element must be an array.')->end() |
| 93 | 93 | ->end() |
| 94 | 94 | ->variableNode('children') |
| 95 | 95 | ->defaultValue([]) |
| 96 | - ->validate()->ifTrue(function ($element) { |
|
| 96 | + ->validate()->ifTrue(function($element) { |
|
| 97 | 97 | return !is_array($element); |
| 98 | 98 | })->thenInvalid('The children element must be an array.')->end() |
| 99 | - ->validate()->always(function ($children) { |
|
| 99 | + ->validate()->always(function($children) { |
|
| 100 | 100 | array_walk($children, [$this, 'evaluateChildren']); |
| 101 | 101 | |
| 102 | 102 | return $children; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * (c) Christian Gripp <[email protected]> |