@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | 'template' => '@LAGAdmin/Field/actionCollection.html.twig', |
| 39 | 39 | 'actions' => [], |
| 40 | 40 | ]) |
| 41 | - ->setNormalizer('actions', function (Options $options, $value) use ($actionConfiguration, $defaultActions) { |
|
| 41 | + ->setNormalizer('actions', function(Options $options, $value) use ($actionConfiguration, $defaultActions) { |
|
| 42 | 42 | if (!is_array($value) || 0 === count($value)) { |
| 43 | 43 | $value = $defaultActions; |
| 44 | 44 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | '_self', |
| 110 | 110 | '_blank', |
| 111 | 111 | ]) |
| 112 | - ->setNormalizer('route', function (Options $options, $value) use ($actionConfiguration) { |
|
| 112 | + ->setNormalizer('route', function(Options $options, $value) use ($actionConfiguration) { |
|
| 113 | 113 | // route or url should be defined |
| 114 | 114 | if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) { |
| 115 | 115 | throw new InvalidOptionsException( |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | return $value; |
| 129 | 129 | }) |
| 130 | - ->setNormalizer('admin', function (Options $options, $value) { |
|
| 130 | + ->setNormalizer('admin', function(Options $options, $value) { |
|
| 131 | 131 | // if a Admin is defined, an Action should be defined too |
| 132 | 132 | if ($value && !$options->offsetGet('action')) { |
| 133 | 133 | throw new InvalidOptionsException( |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | return $value; |
| 139 | 139 | }) |
| 140 | - ->setNormalizer('parameters', function (Options $options, $values) { |
|
| 140 | + ->setNormalizer('parameters', function(Options $options, $values) { |
|
| 141 | 141 | $cleanedValues = []; |
| 142 | 142 | |
| 143 | 143 | foreach ($values as $name => $method) { |