We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | { |
87 | 87 | $all_relation_fields = $this->getRelationFields(); |
88 | 88 | |
89 | - return Arr::where($all_relation_fields, function ($value, $key) { |
|
89 | + return Arr::where($all_relation_fields, function($value, $key) { |
|
90 | 90 | return isset($value['pivot']) && $value['pivot']; |
91 | 91 | }); |
92 | 92 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | { |
101 | 101 | $all_relation_fields = $this->getRelationFields(); |
102 | 102 | |
103 | - return Arr::where($all_relation_fields, function ($value, $key) { |
|
103 | + return Arr::where($all_relation_fields, function($value, $key) { |
|
104 | 104 | return isset($value['type']) && $value['type'] && $value['type'] == 'repeatable'; |
105 | 105 | }); |
106 | 106 | } |
@@ -179,11 +179,11 @@ discard block |
||
179 | 179 | */ |
180 | 180 | private function createRelationsForItem($item, $formattedData) |
181 | 181 | { |
182 | - if (! isset($formattedData['relations'])) { |
|
182 | + if (!isset($formattedData['relations'])) { |
|
183 | 183 | return false; |
184 | 184 | } |
185 | 185 | foreach ($formattedData['relations'] as $relationMethod => $relationData) { |
186 | - if (! isset($relationData['model'])) { |
|
186 | + if (!isset($relationData['model'])) { |
|
187 | 187 | continue; |
188 | 188 | } |
189 | 189 | $model = $relationData['model']; |
@@ -254,13 +254,13 @@ discard block |
||
254 | 254 | foreach ($relation_fields as $relation_field) { |
255 | 255 | $attributeKey = $this->parseRelationFieldNamesFromHtml([$relation_field])[0]['name']; |
256 | 256 | |
257 | - if (! is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true) { |
|
257 | + if (!is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true) { |
|
258 | 258 | $key = implode('.relations.', explode('.', $this->getOnlyRelationEntity($relation_field))); |
259 | 259 | $fieldData = Arr::get($relationData, 'relations.'.$key, []); |
260 | - if (! array_key_exists('model', $fieldData)) { |
|
260 | + if (!array_key_exists('model', $fieldData)) { |
|
261 | 261 | $fieldData['model'] = $relation_field['model']; |
262 | 262 | } |
263 | - if (! array_key_exists('parent', $fieldData)) { |
|
263 | + if (!array_key_exists('parent', $fieldData)) { |
|
264 | 264 | $fieldData['parent'] = $this->getRelationModel($attributeKey, -1); |
265 | 265 | } |
266 | 266 | $relatedAttribute = Arr::last(explode('.', $attributeKey)); |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | $related_method = Arr::last($entity_array); |
283 | 283 | |
284 | - if (! method_exists($relation_model, $related_method)) { |
|
284 | + if (!method_exists($relation_model, $related_method)) { |
|
285 | 285 | if (count($entity_array) <= 1) { |
286 | 286 | return $relation_field['entity']; |
287 | 287 | } else { |