We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -375,7 +375,7 @@ |
||
375 | 375 | if (! is_null($relation_values) && $relationData['values'][$relationMethod][0] !== null) { |
376 | 376 | // we add the new values into the relation |
377 | 377 | $model_instance->whereIn($model_instance->getKeyName(), $relation_values) |
378 | - ->update([$relation_foreign_key => $item->{$relation_local_key}]); |
|
378 | + ->update([$relation_foreign_key => $item->{$relation_local_key}]); |
|
379 | 379 | |
380 | 380 | // we clear up any values that were removed from model relation. |
381 | 381 | // if developer provided a fallback id, we use it |
@@ -265,7 +265,7 @@ |
||
265 | 265 | $related = $relationField['model']::find($relatedId); |
266 | 266 | |
267 | 267 | $item->{$this->getOnlyRelationEntity($relationField)}()->associate($related); |
268 | - }else{ |
|
268 | + } else{ |
|
269 | 269 | $item->{$this->getOnlyRelationEntity($relationField)}()->dissociate(); |
270 | 270 | } |
271 | 271 | } |