We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | // if the label is missing, we should set it |
| 27 | - if (! isset($complete_field_array['label'])) { |
|
| 27 | + if (!isset($complete_field_array['label'])) { |
|
| 28 | 28 | $complete_field_array['label'] = ucfirst($complete_field_array['name']); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | // if the field type is missing, we should set it |
| 32 | - if (! isset($complete_field_array['type'])) { |
|
| 32 | + if (!isset($complete_field_array['type'])) { |
|
| 33 | 33 | $complete_field_array['type'] = $this->getFieldTypeFromDbColumnType($complete_field_array['name']); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | public function removeFields($array_of_names, $form = 'both') |
| 141 | 141 | { |
| 142 | - if (! empty($array_of_names)) { |
|
| 142 | + if (!empty($array_of_names)) { |
|
| 143 | 143 | foreach ($array_of_names as $name) { |
| 144 | 144 | $this->removeField($name, $form); |
| 145 | 145 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | $jsonCastables = ['array', 'object', 'json']; |
| 201 | 201 | $fieldCasting = $this->model->getCasts()[$field['name']]; |
| 202 | 202 | |
| 203 | - if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && ! empty($data[$field['name']]) && ! is_array($data[$field['name']])) { |
|
| 203 | + if (in_array($fieldCasting, $jsonCastables) && isset($data[$field['name']]) && !empty($data[$field['name']]) && !is_array($data[$field['name']])) { |
|
| 204 | 204 | try { |
| 205 | 205 | $data[$field['name']] = json_decode($data[$field['name']]); |
| 206 | 206 | } catch (Exception $e) { |