Skip to content

Commit d5eb739

Browse files
drbytegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 5659d6a commit d5eb739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/HasPermissions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function scopePermission(Builder $query, $permissions, $without = false):
111111

112112
return $query->where(fn (Builder $query) => $query
113113
->{! $without ? 'whereHas' : 'whereDoesntHave'}('permissions', fn (Builder $subQuery) => $subQuery
114-
->whereIn(config('permission.table_names.permissions').".$permissionKey", \array_column($permissions, $permissionKey))
114+
->whereIn(config('permission.table_names.permissions').".$permissionKey", \array_column($permissions, $permissionKey))
115115
)
116116
->when(count($rolesWithPermissions), fn ($whenQuery) => $whenQuery
117117
->{! $without ? 'orWhereHas' : 'whereDoesntHave'}('roles', fn (Builder $subQuery) => $subQuery
118-
->whereIn(config('permission.table_names.roles').".$roleKey", \array_column($rolesWithPermissions, $roleKey))
118+
->whereIn(config('permission.table_names.roles').".$roleKey", \array_column($rolesWithPermissions, $roleKey))
119119
)
120120
)
121121
);

0 commit comments

Comments
 (0)