@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | private function defaultEloquentValueResolver(): \Closure |
241 | 241 | { |
242 | - return function (Model $model = null, $locale = null) { |
|
242 | + return function(Model $model = null, $locale = null) { |
|
243 | 243 | if (!$model) { |
244 | 244 | return $this->value; |
245 | 245 | } |
@@ -400,6 +400,6 @@ discard block |
||
400 | 400 | |
401 | 401 | return $this->isLocalized() |
402 | 402 | ? 'chief::back._fields.translatable' |
403 | - : 'chief::back._fields.' . $this->type->get(); |
|
403 | + : 'chief::back._fields.'.$this->type->get(); |
|
404 | 404 | } |
405 | 405 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | // Custom set methods - default is the generic setField() method. |
34 | - $methodName = 'set' . ucfirst(Str::camel($field->getKey())) . 'Field'; |
|
34 | + $methodName = 'set'.ucfirst(Str::camel($field->getKey())).'Field'; |
|
35 | 35 | (method_exists($this, $methodName)) |
36 | 36 | ? $this->$methodName($field, $request) |
37 | 37 | : $this->setField($field, $request); |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | |
49 | 49 | protected function detectCustomSaveMethods(Field $field): bool |
50 | 50 | { |
51 | - $saveMethodByKey = 'save' . ucfirst(Str::camel($field->getKey())) . 'Field'; |
|
52 | - $saveMethodByType = 'save' . ucfirst(Str::camel($field->getType()->get())) . 'Fields'; |
|
51 | + $saveMethodByKey = 'save'.ucfirst(Str::camel($field->getKey())).'Field'; |
|
52 | + $saveMethodByType = 'save'.ucfirst(Str::camel($field->getType()->get())).'Fields'; |
|
53 | 53 | |
54 | 54 | foreach ([$saveMethodByKey, $saveMethodByType] as $saveMethod) { |
55 | 55 | foreach ($this->assistants() as $assistant) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | // Make our media fields able to be translatable as well... |
98 | 98 | if ($field->ofType(FieldType::FILE, FieldType::IMAGE)) { |
99 | - throw new \Exception('Cannot process the ' . $field->getKey() . ' media field. Currently no support for translatable media files. We should fix this!'); |
|
99 | + throw new \Exception('Cannot process the '.$field->getKey().' media field. Currently no support for translatable media files. We should fix this!'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | // Okay so this is a bit odd but since all translations are expected to be inside the trans |