Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 6, 2024
1 parent 8a202b5 commit 3c18e55
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Relations/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Relations/HasMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Relations/HasOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
4 changes: 2 additions & 2 deletions src/Relations/HasOneOfMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
4 changes: 2 additions & 2 deletions src/Relations/MorphMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Relations/MorphOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
4 changes: 2 additions & 2 deletions src/Relations/MorphOneOfMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
4 changes: 2 additions & 2 deletions src/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c18e55

Please sign in to comment.