We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $all_relation_fields = $this->getRelationFields(); |
| 84 | 84 | |
| 85 | - return Arr::where($all_relation_fields, function ($value, $key) { |
|
| 85 | + return Arr::where($all_relation_fields, function($value, $key) { |
|
| 86 | 86 | return isset($value['pivot']) && $value['pivot']; |
| 87 | 87 | }); |
| 88 | 88 | } |
@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | private function createRelationsForItem($item, $formattedData) |
| 163 | 163 | { |
| 164 | - if (! isset($formattedData['relations'])) { |
|
| 164 | + if (!isset($formattedData['relations'])) { |
|
| 165 | 165 | return false; |
| 166 | 166 | } |
| 167 | 167 | foreach ($formattedData['relations'] as $relationMethod => $relationData) { |
| 168 | - if (! isset($relationData['model'])) { |
|
| 168 | + if (!isset($relationData['model'])) { |
|
| 169 | 169 | continue; |
| 170 | 170 | } |
| 171 | 171 | $model = $relationData['model']; |
@@ -219,13 +219,13 @@ discard block |
||
| 219 | 219 | foreach ($relation_fields as $relation_field) { |
| 220 | 220 | $attributeKey = $this->parseRelationFieldNamesFromHtml([$relation_field])[0]['name']; |
| 221 | 221 | |
| 222 | - if (! is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true ) { |
|
| 222 | + if (!is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true) { |
|
| 223 | 223 | $key = implode('.relations.', explode('.', $this->getOnlyRelationEntity($relation_field))); |
| 224 | 224 | $fieldData = Arr::get($relationData, 'relations.'.$key, []); |
| 225 | - if (! array_key_exists('model', $fieldData)) { |
|
| 225 | + if (!array_key_exists('model', $fieldData)) { |
|
| 226 | 226 | $fieldData['model'] = $relation_field['model']; |
| 227 | 227 | } |
| 228 | - if (! array_key_exists('parent', $fieldData)) { |
|
| 228 | + if (!array_key_exists('parent', $fieldData)) { |
|
| 229 | 229 | $fieldData['parent'] = $this->getRelationModel($attributeKey, -1); |
| 230 | 230 | } |
| 231 | 231 | $relatedAttribute = Arr::last(explode('.', $attributeKey)); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | $related_method = Arr::last($entity_array); |
| 248 | 248 | |
| 249 | - if (! method_exists($relation_model, $related_method)) { |
|
| 249 | + if (!method_exists($relation_model, $related_method)) { |
|
| 250 | 250 | if (count($entity_array) <= 1) { |
| 251 | 251 | return $relation_field['entity']; |
| 252 | 252 | } else { |