Passed
Pull Request — master (#110)
by Arnaud
02:33
created
src/Field/ActionCollectionField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                 'template' => '@LAGAdmin/Field/actionCollection.html.twig',
26 26
                 'actions' => [],
27 27
             ])
28
-            ->setNormalizer('actions', function (Options $options, $value) use ($actionConfiguration) {
28
+            ->setNormalizer('actions', function(Options $options, $value) use ($actionConfiguration) {
29 29
                 if (!is_array($value) || 0 === count($value)) {
30 30
                     $value = [
31 31
                         'edit' => [],
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 '_self',
125 125
                 '_blank',
126 126
             ])
127
-            ->setNormalizer('route', function (Options $options, $value) use ($actionConfiguration) {
127
+            ->setNormalizer('route', function(Options $options, $value) use ($actionConfiguration) {
128 128
                 // route or url should be defined
129 129
                 if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) {
130 130
                     throw new InvalidOptionsException(
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
                 return $value;
144 144
             })
145
-            ->setNormalizer('admin', function (Options $options, $value) {
145
+            ->setNormalizer('admin', function(Options $options, $value) {
146 146
                 // if a Admin is defined, an Action should be defined too
147 147
                 if ($value && !$options->offsetGet('action')) {
148 148
                     throw new InvalidOptionsException(
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
                 return $value;
154 154
             })
155
-            ->setNormalizer('parameters', function (Options $options, $values) {
155
+            ->setNormalizer('parameters', function(Options $options, $values) {
156 156
                 $cleanedValues = [];
157 157
 
158 158
                 foreach ($values as $name => $method) {
Please login to merge, or discard this patch.