Completed
Pull Request — master (#71)
by Arnaud
03:07
created
Action/Configuration/ActionConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     protected function getFieldsNormalizer()
172 172
     {
173
-        return function (Options $options, $fields) {
173
+        return function(Options $options, $fields) {
174 174
             $normalizedFields = [];
175 175
 
176 176
             foreach ($fields as $name => $field) {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     protected function getOrderNormalizer()
195 195
     {
196
-        return function (Options $options, $order) {
196
+        return function(Options $options, $order) {
197 197
             foreach ($order as $field => $sort) {
198 198
 
199 199
                 if (!is_string($sort) || !is_string($field) || !in_array(strtolower($sort), ['asc', 'desc'])) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     protected function getRouteNormalizer()
218 218
     {
219
-        return function (Options $options, $value) {
219
+        return function(Options $options, $value) {
220 220
             if (!$value) {
221 221
                 // if no route was provided, it should be linked to an Admin
222 222
                 if (!$this->admin) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     protected function getLoadStrategyNormalizer()
243 243
     {
244
-        return function (Options $options, $value) {
244
+        return function(Options $options, $value) {
245 245
             if (!$value) {
246 246
                 if ($this->actionName == 'create') {
247 247
                     $value = AdminInterface::LOAD_STRATEGY_NONE;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     protected function getMenuNormalizer()
266 266
     {
267
-        return function (Options $options, $menus) {
267
+        return function(Options $options, $menus) {
268 268
             // set default to an array
269 269
             if ($menus === false) {
270 270
                 $menus = [];
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      */
283 283
     protected function getCriteriaNormalizer()
284 284
     {
285
-        return function (Options $options, $value) {
285
+        return function(Options $options, $value) {
286 286
             if (!$value) {
287 287
                 $idActions = [
288 288
                     'edit',
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      */
309 309
     protected function getBatchNormalizer()
310 310
     {
311
-        return function (Options $options, $batch) {
311
+        return function(Options $options, $batch) {
312 312
             // if batch is not activated, no more checks should be done
313 313
             if ($batch === false) {
314 314
                 return $batch;
Please login to merge, or discard this patch.