Completed
Push — dev ( cee993...df4a4f )
by Arnaud
02:58
created
Admin/Factory/ActionFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 Admin::LOAD_STRATEGY_UNIQUE,
158 158
                 Admin::LOAD_STRATEGY_MULTIPLE,
159 159
             ])
160
-            ->setNormalizer('route', function (Options $options, $value) use ($admin, $actionName) {
160
+            ->setNormalizer('route', function(Options $options, $value) use ($admin, $actionName) {
161 161
                 if (!$value) {
162 162
                     // if no route was provided, it should be linked to an Admin
163 163
                     if (!$admin) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 }
169 169
                 return $value;
170 170
             })
171
-            ->setNormalizer('title', function (Options $options, $value) use ($admin, $actionName) {
171
+            ->setNormalizer('title', function(Options $options, $value) use ($admin, $actionName) {
172 172
                 if (!$value) {
173 173
                     $adminKey = '';
174 174
                     // if an Admin is linked to this action, we use its name in translation key
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
                 }
180 180
                 return $value;
181 181
             })
182
-            ->setNormalizer('batch', function (Options $options, $value) use ($admin, $actionName) {
182
+            ->setNormalizer('batch', function(Options $options, $value) use ($admin, $actionName) {
183 183
                 if ($value) {
184 184
                     if (!is_array($value)) {
185 185
                         $value = [$value];
Please login to merge, or discard this patch.
Form/Handler/ListFormHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
         // check if they exists in entities displayed and if checkbox is checked
36 36
         foreach ($batchItems as $name => $batchItem) {
37
-            $batchId = (int)str_replace('batch_', '', $name);
37
+            $batchId = (int) str_replace('batch_', '', $name);
38 38
 
39 39
             if (array_key_exists($batchId, $cleanData['labels']) && $batchItem === true) {
40 40
                 $cleanData['ids'][] = $batchId;
Please login to merge, or discard this patch.
Field/Field/ArrayField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function render($value)
28 28
     {
29 29
         if (!is_array($value) && !($value instanceof Traversable)) {
30
-            throw new Exception('Value should be an array instead of '.gettype($value));
30
+            throw new Exception('Value should be an array instead of ' . gettype($value));
31 31
         }
32 32
         if ($value instanceof Collection) {
33 33
             $value = $value->toArray();
Please login to merge, or discard this patch.
Field/Field/StringField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      */
84 84
     public function setOptions(array $options)
85 85
     {
86
-        $this->length = (int)$options['length'];
86
+        $this->length = (int) $options['length'];
87 87
         $this->replace = $options['replace'];
88 88
         $this->translation = $options['translation'];
89 89
     }
Please login to merge, or discard this patch.
Form/Handler/BatchFormHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
         // check if they exists in entities displayed and if checkbox is checked
36 36
         foreach ($batchItems as $name => $batchItem) {
37
-            $batchId = (int)str_replace('batch_', '', $name);
37
+            $batchId = (int) str_replace('batch_', '', $name);
38 38
 
39 39
             if (array_key_exists($batchId, $cleanData['labels']) && $batchItem === true) {
40 40
                 $cleanData['ids'][] = $batchId;
Please login to merge, or discard this patch.