Completed
Push — dev ( e5a73e...d4e169 )
by Arnaud
03:54 queued 03:48
created
Action/Configuration/ActionConfiguration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
         $resolver
98 98
             ->setDefault('route', '')
99 99
             ->setAllowedTypes('route', 'string')
100
-            ->setNormalizer('route', function (Options $options, $value) {
100
+            ->setNormalizer('route', function(Options $options, $value) {
101 101
                 if (!$value) {
102 102
                     // if no route was provided, it should be linked to an Admin
103 103
                     if (!$this->admin) {
104
-                        throw new InvalidOptionsException('No route was provided for action : ' . $this->actionName);
104
+                        throw new InvalidOptionsException('No route was provided for action : '.$this->actionName);
105 105
                     }
106 106
 
107 107
                     // generate default route from admin
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_UNIQUE)
131 131
             ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_MULTIPLE)
132 132
             ->addAllowedValues('load_strategy', null)
133
-            ->setNormalizer('load_strategy', function (Options $options, $value) {
133
+            ->setNormalizer('load_strategy', function(Options $options, $value) {
134 134
 
135 135
                 if (!$value) {
136 136
                     if ($this->actionName == 'create') {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         // criteria used to find entity in the data provider
156 156
         $resolver
157 157
             ->setDefault('criteria', [])
158
-            ->setNormalizer('criteria', function (Options $options, $value) {
158
+            ->setNormalizer('criteria', function(Options $options, $value) {
159 159
 
160 160
                 if (!$value) {
161 161
                     $idActions = [
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         // menus
181 181
         $resolver
182 182
             ->setDefault('menus', [])
183
-            ->setNormalizer('menus', function (Options $options, $menus) {
183
+            ->setNormalizer('menus', function(Options $options, $menus) {
184 184
                 // set default to an array
185 185
                 if ($menus === false) {
186 186
                     $menus = [];
Please login to merge, or discard this patch.