We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | //remove fields that are not in the submitted form input |
101 | - $relationFields = array_filter($relationFields, function ($field) use ($input) { |
|
101 | + $relationFields = array_filter($relationFields, function($field) use ($input) { |
|
102 | 102 | return Arr::has($input, $field['name']) || isset($input[$field['name']]) || Arr::has($input, Str::afterLast($field['name'], '.')); |
103 | 103 | }); |
104 | 104 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | // the key used to store the values is the main relation key |
128 | 128 | $key = Str::beforeLast($this->getOnlyRelationEntity($field), '.'); |
129 | 129 | //dump($field); |
130 | - if (! isset($field['parentFieldName']) && isset($field['entity'])) { |
|
130 | + if (!isset($field['parentFieldName']) && isset($field['entity'])) { |
|
131 | 131 | $mainField = $field; |
132 | 132 | $mainField['entity'] = Str::beforeLast($field['entity'], '.'); |
133 | 133 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | |
185 | 185 | // when using dot notation if relationMethod is not set we are sure we want to exclude those relations. |
186 | 186 | if ($this->getOnlyRelationEntity($field) !== $field['entity']) { |
187 | - if (! $relationMethod) { |
|
187 | + if (!$relationMethod) { |
|
188 | 188 | $excludedFields[] = $nameToExclude; |
189 | 189 | } |
190 | 190 | |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | } |
199 | 199 | } |
200 | 200 | |
201 | - return Arr::where($input, function ($item, $key) use ($excludedFields) { |
|
202 | - return ! in_array($key, $excludedFields); |
|
201 | + return Arr::where($input, function($item, $key) use ($excludedFields) { |
|
202 | + return !in_array($key, $excludedFields); |
|
203 | 203 | }); |
204 | 204 | } |
205 | 205 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | $jsonCastables = ['array', 'object', 'json']; |
226 | 226 | $fieldCasting = $casted_attributes[$field['name']]; |
227 | 227 | |
228 | - if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']])) { |
|
228 | + if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']])) { |
|
229 | 229 | try { |
230 | 230 | $input[$field['name']] = json_decode($input[$field['name']]); |
231 | 231 | } catch (\Exception $e) { |