Passed
Push — ft/states ( 7f21b4...728e57 )
by Ben
08:08
created
src/Fields/Types/PagebuilderField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $value = parent::__get($key);
49 49
 
50 50
         // Default empty array for these following values
51
-        if (!$value && in_array($key, ['sections','availableModules','availablePages', 'availableSets'])) {
51
+        if (!$value && in_array($key, ['sections', 'availableModules', 'availablePages', 'availableSets'])) {
52 52
             return [];
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Fields/Types/DocumentField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             return preg_replace('#(:locale)#', $locale, $name);
29 29
         }
30 30
 
31
-        return 'files[' . $name . '][' . $locale . ']';
31
+        return 'files['.$name.']['.$locale.']';
32 32
     }
33 33
 
34 34
     public function getFieldValue(Model $model, $locale = null)
Please login to merge, or discard this patch.
src/Fields/Types/CheckboxField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.
src/Fields/Types/TextField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.
src/Fields/Types/HtmlField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.
src/Fields/Types/PhoneNumberField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.
src/Fields/Types/SelectField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.
src/Fields/Types/Field.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function optional(): bool
78 78
     {
79
-        return ! $this->required();
79
+        return !$this->required();
80 80
     }
81 81
 
82 82
     public function name(string $name = null)
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
     private function defaultValueResolver(): callable
159 159
     {
160
-        return function (Model $model, $locale) {
160
+        return function(Model $model, $locale) {
161 161
             if ($this->isTranslatable() && $locale) {
162 162
                 return $model->getTranslationFor($this->column(), $locale);
163 163
             }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         }
233 233
 
234 234
         if (!in_array($name, ['label', 'key', 'description', 'column', 'name', 'prepend', 'append'])) {
235
-            throw new \InvalidArgumentException('Cannot set value by ['. $name .'].');
235
+            throw new \InvalidArgumentException('Cannot set value by ['.$name.'].');
236 236
         }
237 237
 
238 238
         $this->values[$name] = $arguments[0];
Please login to merge, or discard this patch.
src/Fields/Types/RangeField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
Please login to merge, or discard this patch.