Completed
Push — refonte ( 2ff6c8...24809b )
by Arnaud
21:35 queued 19:28
created
src/Field/ActionCollectionField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Factory/MenuFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function __construct(
33 33
         RequestStack $requestStack,
34 34
         ApplicationConfigurationStorage $applicationConfigurationStorage
35
-    ){
35
+    ) {
36 36
         $this->requestStack = $requestStack;
37 37
         $this->applicationConfiguration = $applicationConfigurationStorage->getConfiguration();
38 38
     }
Please login to merge, or discard this patch.