| @@ -1,6 +1,6 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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]; |