@@ -63,7 +63,9 @@ discard block |
||
63 | 63 | ->localizedFormat(':name.:locale') |
64 | 64 | ->valueResolver(function($model = null, $locale = null, $field) use($fragment){ |
65 | 65 | |
66 | - if(isset($field->value)) return $field->value; |
|
66 | + if(isset($field->value)) { |
|
67 | + return $field->value; |
|
68 | + } |
|
67 | 69 | |
68 | 70 | if($field instanceof MediaField){ |
69 | 71 | if(!$fragment->hasModelId()){ |
@@ -83,7 +85,9 @@ discard block |
||
83 | 85 | |
84 | 86 | public function getDuplicatableFields(): array |
85 | 87 | { |
86 | - if(count($this->getFragments()) < 1) return []; |
|
88 | + if(count($this->getFragments()) < 1) { |
|
89 | + return []; |
|
90 | + } |
|
87 | 91 | |
88 | 92 | // Take the fields from the first fragment as a starting point for duplication |
89 | 93 | return array_map(function(\Thinktomorrow\Chief\Fields\Types\Field $field){ |