@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'title' => 'Planet Application', |
| 37 | 37 | ]); |
| 38 | 38 | |
| 39 | - $this->assertExceptionRaised(LogicException::class, function () use ($configuration) { |
|
| 39 | + $this->assertExceptionRaised(LogicException::class, function() use ($configuration) { |
|
| 40 | 40 | $configuration->setParameters([ |
| 41 | 41 | 'an_other_configuration' => 'value', |
| 42 | 42 | ]); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | private function getFieldsNormalizer() |
| 160 | 160 | { |
| 161 | - return function (Options $options, $fields) { |
|
| 161 | + return function(Options $options, $fields) { |
|
| 162 | 162 | $normalizedFields = []; |
| 163 | 163 | |
| 164 | 164 | foreach ($fields as $name => $field) { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | private function getOrderNormalizer() |
| 183 | 183 | { |
| 184 | - return function (Options $options, $order) { |
|
| 184 | + return function(Options $options, $order) { |
|
| 185 | 185 | foreach ($order as $field => $sort) { |
| 186 | 186 | |
| 187 | 187 | if (!is_string($sort) || !is_string($field) || !in_array(strtolower($sort), ['asc', 'desc'])) { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | private function getLoadStrategyNormalizer() |
| 207 | 207 | { |
| 208 | - return function (Options $options, $value) { |
|
| 208 | + return function(Options $options, $value) { |
|
| 209 | 209 | if (!$value) { |
| 210 | 210 | if ($this->actionName == 'create') { |
| 211 | 211 | $value = LAGAdminBundle::LOAD_STRATEGY_NONE; |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | private function getMenuNormalizer() |
| 230 | 230 | { |
| 231 | - return function (Options $options, $menus) { |
|
| 231 | + return function(Options $options, $menus) { |
|
| 232 | 232 | // set default to an array |
| 233 | 233 | if ($menus === false) { |
| 234 | 234 | $menus = []; |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | private function getCriteriaNormalizer() |
| 248 | 248 | { |
| 249 | - return function (Options $options, $value) { |
|
| 249 | + return function(Options $options, $value) { |
|
| 250 | 250 | if (!$value) { |
| 251 | 251 | $idActions = [ |
| 252 | 252 | 'edit', |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | */ |
| 296 | 296 | private function getFiltersNormalizer(): Closure |
| 297 | 297 | { |
| 298 | - return function (Options $options, $data) { |
|
| 298 | + return function(Options $options, $data) { |
|
| 299 | 299 | $normalizedData = []; |
| 300 | 300 | |
| 301 | 301 | foreach ($data as $name => $field) { |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | |
| 323 | 323 | private function getRouteDefaultNormalizer(): Closure |
| 324 | 324 | { |
| 325 | - return function (Options $options, $value) { |
|
| 325 | + return function(Options $options, $value) { |
|
| 326 | 326 | |
| 327 | 327 | if (!is_array($value)) { |
| 328 | 328 | $value = []; |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | |
| 337 | 337 | private function getFormNormalizer(): Closure |
| 338 | 338 | { |
| 339 | - return function (Options $options, $value) { |
|
| 339 | + return function(Options $options, $value) { |
|
| 340 | 340 | |
| 341 | 341 | if (null === $value) { |
| 342 | 342 | $mapping = [ |