@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | continue; |
76 | 76 | } |
77 | 77 | |
78 | - $method = 'get' . ucfirst($key); |
|
78 | + $method = 'get'.ucfirst($key); |
|
79 | 79 | |
80 | 80 | // Reject from list if value does not match expected one |
81 | 81 | if ($value && $value == $field->$method()) { |
@@ -91,14 +91,14 @@ discard block |
||
91 | 91 | |
92 | 92 | public function render(): string |
93 | 93 | { |
94 | - return array_reduce($this->fields, function(string $carry, Field $field){ |
|
95 | - return $carry . $field->render(); |
|
94 | + return array_reduce($this->fields, function(string $carry, Field $field) { |
|
95 | + return $carry.$field->render(); |
|
96 | 96 | }, ''); |
97 | 97 | } |
98 | 98 | |
99 | 99 | public function keyed($key): Fields |
100 | 100 | { |
101 | - $keys = (array) $key; |
|
101 | + $keys = (array)$key; |
|
102 | 102 | |
103 | 103 | return new static(array_filter($this->fields, function(Field $field) use($keys){ |
104 | 104 | return in_array($field->getKey(), $keys); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | public function untagged(): Fields |
116 | 116 | { |
117 | - return new static(array_filter($this->fields, function(Field $field){ |
|
117 | + return new static(array_filter($this->fields, function(Field $field) { |
|
118 | 118 | return $field->untagged(); |
119 | 119 | })); |
120 | 120 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public function offsetSet($offset, $value) |
164 | 164 | { |
165 | 165 | if (!$value instanceof Field) { |
166 | - throw new \InvalidArgumentException('Passed value must be of type ' . Field::class); |
|
166 | + throw new \InvalidArgumentException('Passed value must be of type '.Field::class); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | $this->fields[$offset] = $value; |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | private function validateFields(array $fields) |
195 | 195 | { |
196 | - array_map(function (Field $field) { |
|
196 | + array_map(function(Field $field) { |
|
197 | 197 | }, $fields); |
198 | 198 | } |
199 | 199 |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | $this->pageBuilderField(), |
85 | 85 | InputField::make('title')->translatable($this->model->availableLocales()) |
86 | 86 | ->validation('required-fallback-locale|max:200', [], [ |
87 | - 'trans.' . config('app.fallback_locale', 'nl') . '.title' => 'title', |
|
87 | + 'trans.'.config('app.fallback_locale', 'nl').'.title' => 'title', |
|
88 | 88 | ]) |
89 | - ->label('De titel van je ' . $this->model->labelSingular ?? 'pagina') |
|
89 | + ->label('De titel van je '.$this->model->labelSingular ?? 'pagina') |
|
90 | 90 | ->description('Dit is de titel die zal worden getoond in de overzichten en modules.') |
91 | 91 | ->tag('general'), |
92 | 92 | InputField::make('seo_title') |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | if (is_array_empty($translation)) { |
207 | 207 | |
208 | 208 | // Nullify all values |
209 | - $trans[$locale] = array_map(function ($value) { |
|
209 | + $trans[$locale] = array_map(function($value) { |
|
210 | 210 | return null; |
211 | 211 | }, $translation); |
212 | 212 | continue; |