@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | 'template' => '@LAGAdmin/Field/actionCollection.html.twig', |
| 40 | 40 | 'actions' => [], |
| 41 | 41 | ]) |
| 42 | - ->setNormalizer('actions', function (Options $options, $value) use ($actionConfiguration, $defaultActions) { |
|
| 42 | + ->setNormalizer('actions', function(Options $options, $value) use ($actionConfiguration, $defaultActions) { |
|
| 43 | 43 | if (!is_array($value) || 0 === count($value)) { |
| 44 | 44 | $value = [ |
| 45 | 45 | 'edit' => [], |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | '_self', |
| 139 | 139 | '_blank', |
| 140 | 140 | ]) |
| 141 | - ->setNormalizer('route', function (Options $options, $value) use ($actionConfiguration) { |
|
| 141 | + ->setNormalizer('route', function(Options $options, $value) use ($actionConfiguration) { |
|
| 142 | 142 | // route or url should be defined |
| 143 | 143 | if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) { |
| 144 | 144 | throw new InvalidOptionsException( |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | return $value; |
| 158 | 158 | }) |
| 159 | - ->setNormalizer('admin', function (Options $options, $value) { |
|
| 159 | + ->setNormalizer('admin', function(Options $options, $value) { |
|
| 160 | 160 | // if a Admin is defined, an Action should be defined too |
| 161 | 161 | if ($value && !$options->offsetGet('action')) { |
| 162 | 162 | throw new InvalidOptionsException( |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | return $value; |
| 168 | 168 | }) |
| 169 | - ->setNormalizer('parameters', function (Options $options, $values) { |
|
| 169 | + ->setNormalizer('parameters', function(Options $options, $values) { |
|
| 170 | 170 | $cleanedValues = []; |
| 171 | 171 | |
| 172 | 172 | foreach ($values as $name => $method) { |