We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public function afterField($targetFieldName) |
136 | 136 | { |
137 | - $this->transformFields(function ($fields) use ($targetFieldName) { |
|
137 | + $this->transformFields(function($fields) use ($targetFieldName) { |
|
138 | 138 | return $this->moveField($fields, $targetFieldName, false); |
139 | 139 | }); |
140 | 140 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function beforeField($targetFieldName) |
148 | 148 | { |
149 | - $this->transformFields(function ($fields) use ($targetFieldName) { |
|
149 | + $this->transformFields(function($fields) use ($targetFieldName) { |
|
150 | 150 | return $this->moveField($fields, $targetFieldName, true); |
151 | 151 | }); |
152 | 152 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function makeFirstField() |
160 | 160 | { |
161 | - if (! $this->fields()) { |
|
161 | + if (!$this->fields()) { |
|
162 | 162 | return false; |
163 | 163 | } |
164 | 164 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function removeField($name) |
175 | 175 | { |
176 | - $this->transformFields(function ($fields) use ($name) { |
|
176 | + $this->transformFields(function($fields) use ($name) { |
|
177 | 177 | Arr::forget($fields, $name); |
178 | 178 | |
179 | 179 | return $fields; |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | */ |
188 | 188 | public function removeFields($array_of_names) |
189 | 189 | { |
190 | - if (! empty($array_of_names)) { |
|
190 | + if (!empty($array_of_names)) { |
|
191 | 191 | foreach ($array_of_names as $name) { |
192 | 192 | $this->removeField($name); |
193 | 193 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | public function removeAllFields() |
201 | 201 | { |
202 | 202 | $current_fields = $this->getCleanStateFields(); |
203 | - if (! empty($current_fields)) { |
|
203 | + if (!empty($current_fields)) { |
|
204 | 204 | foreach ($current_fields as $field) { |
205 | 205 | $this->removeField($field['name']); |
206 | 206 | } |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | $jsonCastables = ['array', 'object', 'json']; |
296 | 296 | $fieldCasting = $casted_attributes[$field['name']]; |
297 | 297 | |
298 | - if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']])) { |
|
298 | + if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']])) { |
|
299 | 299 | try { |
300 | 300 | $input[$field['name']] = json_decode($input[$field['name']]); |
301 | 301 | } catch (\Exception $e) { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | */ |
325 | 325 | public function orderFields($order) |
326 | 326 | { |
327 | - $this->transformFields(function ($fields) use ($order) { |
|
327 | + $this->transformFields(function($fields) use ($order) { |
|
328 | 328 | return $this->applyOrderToFields($fields, $order); |
329 | 329 | }); |
330 | 330 | } |
@@ -350,10 +350,10 @@ discard block |
||
350 | 350 | public function hasUploadFields() |
351 | 351 | { |
352 | 352 | $fields = $this->getCleanStateFields(); |
353 | - $upload_fields = Arr::where($fields, function ($value, $key) { |
|
354 | - if(isset($value['subfields'])) { |
|
355 | - foreach($value['subfields'] as $subfield) { |
|
356 | - if(isset($subfield['upload']) && $subfield['upload'] === true) { |
|
353 | + $upload_fields = Arr::where($fields, function($value, $key) { |
|
354 | + if (isset($value['subfields'])) { |
|
355 | + foreach ($value['subfields'] as $subfield) { |
|
356 | + if (isset($subfield['upload']) && $subfield['upload'] === true) { |
|
357 | 357 | return true; |
358 | 358 | } |
359 | 359 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | $alreadyLoaded = $this->getLoadedFieldTypes(); |
421 | 421 | $type = $this->getFieldTypeWithNamespace($field); |
422 | 422 | |
423 | - if (! in_array($type, $this->getLoadedFieldTypes(), true)) { |
|
423 | + if (!in_array($type, $this->getLoadedFieldTypes(), true)) { |
|
424 | 424 | $alreadyLoaded[] = $type; |
425 | 425 | $this->setLoadedFieldTypes($alreadyLoaded); |
426 | 426 | |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | */ |
462 | 462 | public function fieldTypeNotLoaded($field) |
463 | 463 | { |
464 | - return ! in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes()); |
|
464 | + return !in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes()); |
|
465 | 465 | } |
466 | 466 | |
467 | 467 | /** |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | */ |
511 | 511 | public function hasFieldWhere($attribute, $value) |
512 | 512 | { |
513 | - $match = Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) { |
|
513 | + $match = Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) { |
|
514 | 514 | return isset($field[$attribute]) && $field[$attribute] == $value; |
515 | 515 | }); |
516 | 516 | |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | */ |
527 | 527 | public function firstFieldWhere($attribute, $value) |
528 | 528 | { |
529 | - return Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) { |
|
529 | + return Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) { |
|
530 | 530 | return isset($field[$attribute]) && $field[$attribute] == $value; |
531 | 531 | }); |
532 | 532 | } |