Skip to content

Commit 4dbc3c4

Browse files
committed
Apply fixes from StyleCI
1 parent 32efffe commit 4dbc3c4

13 files changed

+38
-61
lines changed

src/Relations/BelongsTo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public function beforeMutating(Model $model, Relation $relation, array $mutation
2626
case 'attach':
2727
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
2828
break;
29-
case 'detach';
30-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
31-
break;
29+
case 'detach':
30+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
31+
break;
3232
}
3333

3434
$model

src/Relations/BelongsToMany.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
8888
foreach ($results['detached'] as $detached) {
8989
$this->resource()->authorizeToDetach($model, $relation->resource()::$model::find($detached));
9090
}
91-
9291
} elseif ($mutationRelation['operation'] === 'sync') {
9392
$results = $model
9493
->{$relation->relation}()

src/Relations/HasMany.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3434
case 'attach':
3535
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3636
break;
37-
case 'detach';
38-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
39-
break;
37+
case 'detach':
38+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
39+
break;
4040
}
4141
}
4242
}

src/Relations/HasOne.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3030
case 'attach':
3131
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3232
break;
33-
case 'detach';
34-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
35-
break;
33+
case 'detach':
34+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
35+
break;
3636
}
3737
}
3838
}

src/Relations/HasOneOfMany.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3030
case 'attach':
3131
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3232
break;
33-
case 'detach';
34-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
35-
break;
33+
case 'detach':
34+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
35+
break;
3636
}
3737
}
3838
}

src/Relations/MorphMany.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3535
case 'attach':
3636
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3737
break;
38-
case 'detach';
39-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
40-
break;
38+
case 'detach':
39+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
40+
break;
4141
}
4242
}
4343
}

src/Relations/MorphOne.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3131
case 'attach':
3232
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3333
break;
34-
case 'detach';
35-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
36-
break;
34+
case 'detach':
35+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
36+
break;
3737
}
3838
}
3939
}

src/Relations/MorphOneOfMany.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
3131
case 'attach':
3232
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
3333
break;
34-
case 'detach';
35-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
36-
break;
34+
case 'detach':
35+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
36+
break;
3737
}
3838
}
3939
}

src/Relations/MorphTo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public function beforeMutating(Model $model, Relation $relation, array $mutation
2626
case 'attach':
2727
$this->resource()->authorizeToAttach($model, $toPerformActionModel);
2828
break;
29-
case 'detach';
30-
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
31-
break;
29+
case 'detach':
30+
$this->resource()->authorizeToDetach($model, $toPerformActionModel);
31+
break;
3232
}
3333

3434
$model

src/Relations/MorphToMany.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public function afterMutating(Model $model, Relation $relation, array $mutationR
8888
foreach ($results['detached'] as $detached) {
8989
$this->resource()->authorizeToDetach($model, $relation->resource()::$model::find($detached));
9090
}
91-
9291
} elseif ($mutationRelation['operation'] === 'sync') {
9392
$results = $model
9493
->{$relation->relation}()

0 commit comments

Comments
 (0)