Completed
Push — ft/value-resolver ( e84101...0a3b36 )
by Philippe
62:26 queued 55:01
created
src/Fields/Types/Field.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\Fields\Types;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function optional(): bool
73 73
     {
74
-        return ! $this->required();
74
+        return !$this->required();
75 75
     }
76 76
 
77 77
     public function name(string $name = null)
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     private function defaultValueResolver(): callable
148 148
     {
149
-        return function (Model $model, $locale) {
149
+        return function(Model $model, $locale) {
150 150
             if ($this->isTranslatable() && $locale) {
151 151
                 return $model->getTranslationFor($this->column(), $locale);
152 152
             }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         }
215 215
 
216 216
         if (!in_array($name, ['label', 'key', 'description', 'column', 'name', 'prepend', 'append'])) {
217
-            throw new \InvalidArgumentException('Cannot set value by ['. $name .'].');
217
+            throw new \InvalidArgumentException('Cannot set value by ['.$name.'].');
218 218
         }
219 219
 
220 220
         $this->values[$name] = $arguments[0];
Please login to merge, or discard this patch.