diff --git a/src/AuthServiceProvider.php b/src/AuthServiceProvider.php index dd95522..3ba5a5a 100644 --- a/src/AuthServiceProvider.php +++ b/src/AuthServiceProvider.php @@ -9,7 +9,7 @@ class AuthServiceProvider extends ServiceProvider { protected $policies = [ - Token::class => TokenPolicy::class + Token::class => TokenPolicy::class, ]; /** diff --git a/src/Policies/TokenPolicy.php b/src/Policies/TokenPolicy.php index db1a272..001bbe1 100644 --- a/src/Policies/TokenPolicy.php +++ b/src/Policies/TokenPolicy.php @@ -3,8 +3,8 @@ namespace Rupadana\ApiService\Policies; use App\Models\User; -use Rupadana\ApiService\Models\Token; use Illuminate\Auth\Access\HandlesAuthorization; +use Rupadana\ApiService\Models\Token; class TokenPolicy { @@ -12,9 +12,6 @@ class TokenPolicy /** * Determine whether the user can view any models. - * - * @param \App\Models\User $user - * @return bool */ public function viewAny(User $user): bool { @@ -23,10 +20,6 @@ public function viewAny(User $user): bool /** * Determine whether the user can view the model. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function view(User $user, Token $token): bool { @@ -35,9 +28,6 @@ public function view(User $user, Token $token): bool /** * Determine whether the user can create models. - * - * @param \App\Models\User $user - * @return bool */ public function create(User $user): bool { @@ -46,10 +36,6 @@ public function create(User $user): bool /** * Determine whether the user can update the model. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function update(User $user, Token $token): bool { @@ -58,10 +44,6 @@ public function update(User $user, Token $token): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function delete(User $user, Token $token): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Token $token): bool /** * Determine whether the user can bulk delete. - * - * @param \App\Models\User $user - * @return bool */ public function deleteAny(User $user): bool { @@ -81,10 +60,6 @@ public function deleteAny(User $user): bool /** * Determine whether the user can permanently delete. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function forceDelete(User $user, Token $token): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Token $token): bool /** * Determine whether the user can permanently bulk delete. - * - * @param \App\Models\User $user - * @return bool */ public function forceDeleteAny(User $user): bool { @@ -104,10 +76,6 @@ public function forceDeleteAny(User $user): bool /** * Determine whether the user can restore. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function restore(User $user, Token $token): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Token $token): bool /** * Determine whether the user can bulk restore. - * - * @param \App\Models\User $user - * @return bool */ public function restoreAny(User $user): bool { @@ -127,10 +92,6 @@ public function restoreAny(User $user): bool /** * Determine whether the user can replicate. - * - * @param \App\Models\User $user - * @param \Rupadana\ApiService\Models\Token $token - * @return bool */ public function replicate(User $user, Token $token): bool { @@ -139,9 +100,6 @@ public function replicate(User $user, Token $token): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool {