From 3c18e5520178b6e7227c74a5d9149939cd0e219b Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 6 Apr 2024 18:57:03 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Relations/BelongsTo.php | 4 ++-- src/Relations/HasMany.php | 4 ++-- src/Relations/HasOne.php | 4 ++-- src/Relations/HasOneOfMany.php | 4 ++-- src/Relations/MorphMany.php | 4 ++-- src/Relations/MorphOne.php | 4 ++-- src/Relations/MorphOneOfMany.php | 4 ++-- src/Relations/MorphTo.php | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Relations/BelongsTo.php b/src/Relations/BelongsTo.php index 1f0e407..790aecd 100644 --- a/src/Relations/BelongsTo.php +++ b/src/Relations/BelongsTo.php @@ -27,8 +27,8 @@ public function beforeMutating(Model $model, Relation $relation, array $mutation $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } $model diff --git a/src/Relations/HasMany.php b/src/Relations/HasMany.php index 1be2344..169971b 100644 --- a/src/Relations/HasMany.php +++ b/src/Relations/HasMany.php @@ -35,8 +35,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/HasOne.php b/src/Relations/HasOne.php index 4c0c9e1..7afc68a 100644 --- a/src/Relations/HasOne.php +++ b/src/Relations/HasOne.php @@ -31,8 +31,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/HasOneOfMany.php b/src/Relations/HasOneOfMany.php index 64da900..6089b8e 100644 --- a/src/Relations/HasOneOfMany.php +++ b/src/Relations/HasOneOfMany.php @@ -31,8 +31,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/MorphMany.php b/src/Relations/MorphMany.php index 7d03f4c..2b4e888 100644 --- a/src/Relations/MorphMany.php +++ b/src/Relations/MorphMany.php @@ -36,8 +36,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/MorphOne.php b/src/Relations/MorphOne.php index a4c245a..b447569 100644 --- a/src/Relations/MorphOne.php +++ b/src/Relations/MorphOne.php @@ -32,8 +32,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/MorphOneOfMany.php b/src/Relations/MorphOneOfMany.php index 4d12a0e..6001464 100644 --- a/src/Relations/MorphOneOfMany.php +++ b/src/Relations/MorphOneOfMany.php @@ -32,8 +32,8 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } } } diff --git a/src/Relations/MorphTo.php b/src/Relations/MorphTo.php index 979bbd8..e5d5fc5 100644 --- a/src/Relations/MorphTo.php +++ b/src/Relations/MorphTo.php @@ -27,8 +27,8 @@ public function beforeMutating(Model $model, Relation $relation, array $mutation $this->resource()->authorizeToAttach($model, $toPerformActionModel); break; case 'detach': - $this->resource()->authorizeToDetach($model, $toPerformActionModel); - break; + $this->resource()->authorizeToDetach($model, $toPerformActionModel); + break; } $model