We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | { |
84 | 84 | $all_relation_fields = $this->getRelationFields(); |
85 | 85 | |
86 | - return Arr::where($all_relation_fields, function ($value, $key) { |
|
86 | + return Arr::where($all_relation_fields, function($value, $key) { |
|
87 | 87 | return isset($value['pivot']) && $value['pivot']; |
88 | 88 | }); |
89 | 89 | } |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | */ |
164 | 164 | private function createRelationsForItem($item, $formattedData) |
165 | 165 | { |
166 | - if (! isset($formattedData['relations'])) { |
|
166 | + if (!isset($formattedData['relations'])) { |
|
167 | 167 | return false; |
168 | 168 | } |
169 | 169 | foreach ($formattedData['relations'] as $relationMethod => $relationData) { |
170 | - if (! isset($relationData['model'])) { |
|
170 | + if (!isset($relationData['model'])) { |
|
171 | 171 | continue; |
172 | 172 | } |
173 | 173 | $model = $relationData['model']; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | ->update([$relation->getForeignKeyName() => $item->{$relation->getLocalKeyName()}]); |
197 | 197 | } else { |
198 | 198 | //if the foreign key is not nullable we delete the record from the table. |
199 | - if (! $modelInstance->isColumnNullable($relation->getForeignKeyName())) { |
|
199 | + if (!$modelInstance->isColumnNullable($relation->getForeignKeyName())) { |
|
200 | 200 | $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})->delete(); |
201 | 201 | } else { |
202 | 202 | $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()}) |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | |
264 | 264 | $related_method = Arr::last($entity_array); |
265 | 265 | |
266 | - if (! method_exists($relation_model, $related_method)) { |
|
266 | + if (!method_exists($relation_model, $related_method)) { |
|
267 | 267 | if (count($entity_array) <= 1) { |
268 | 268 | return $relation_field['entity']; |
269 | 269 | } else { |