diff --git a/app/Policies/AttemptPolicy.php b/app/Policies/AttemptPolicy.php index 8be2c76..bae2454 100644 --- a/app/Policies/AttemptPolicy.php +++ b/app/Policies/AttemptPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Attempt; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class AttemptPolicy @@ -12,9 +12,6 @@ class AttemptPolicy /** * 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 \App\Models\Attempt $attempt - * @return bool */ public function view(User $user, Attempt $attempt): bool { @@ -35,9 +28,6 @@ public function view(User $user, Attempt $attempt): 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 \App\Models\Attempt $attempt - * @return bool */ public function update(User $user, Attempt $attempt): bool { @@ -58,10 +44,6 @@ public function update(User $user, Attempt $attempt): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Attempt $attempt - * @return bool */ public function delete(User $user, Attempt $attempt): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Attempt $attempt): 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 \App\Models\Attempt $attempt - * @return bool */ public function forceDelete(User $user, Attempt $attempt): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Attempt $attempt): 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 \App\Models\Attempt $attempt - * @return bool */ public function restore(User $user, Attempt $attempt): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Attempt $attempt): 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 \App\Models\Attempt $attempt - * @return bool */ public function replicate(User $user, Attempt $attempt): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Attempt $attempt): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_attempt'); } - } diff --git a/app/Policies/CavePolicy.php b/app/Policies/CavePolicy.php index 4f2d4cd..da338de 100644 --- a/app/Policies/CavePolicy.php +++ b/app/Policies/CavePolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Cave; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class CavePolicy @@ -12,9 +12,6 @@ class CavePolicy /** * 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 \App\Models\Cave $cave - * @return bool */ public function view(User $user, Cave $cave): bool { @@ -35,9 +28,6 @@ public function view(User $user, Cave $cave): 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 \App\Models\Cave $cave - * @return bool */ public function update(User $user, Cave $cave): bool { @@ -58,10 +44,6 @@ public function update(User $user, Cave $cave): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Cave $cave - * @return bool */ public function delete(User $user, Cave $cave): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Cave $cave): 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 \App\Models\Cave $cave - * @return bool */ public function forceDelete(User $user, Cave $cave): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Cave $cave): 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 \App\Models\Cave $cave - * @return bool */ public function restore(User $user, Cave $cave): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Cave $cave): 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 \App\Models\Cave $cave - * @return bool */ public function replicate(User $user, Cave $cave): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Cave $cave): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_cave'); } - } diff --git a/app/Policies/ClubPolicy.php b/app/Policies/ClubPolicy.php index 7a8a134..c0d4c45 100644 --- a/app/Policies/ClubPolicy.php +++ b/app/Policies/ClubPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Club; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class ClubPolicy @@ -12,9 +12,6 @@ class ClubPolicy /** * 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 \App\Models\Club $club - * @return bool */ public function view(User $user, Club $club): bool { @@ -35,9 +28,6 @@ public function view(User $user, Club $club): 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 \App\Models\Club $club - * @return bool */ public function update(User $user, Club $club): bool { @@ -58,10 +44,6 @@ public function update(User $user, Club $club): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Club $club - * @return bool */ public function delete(User $user, Club $club): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Club $club): 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 \App\Models\Club $club - * @return bool */ public function forceDelete(User $user, Club $club): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Club $club): 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 \App\Models\Club $club - * @return bool */ public function restore(User $user, Club $club): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Club $club): 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 \App\Models\Club $club - * @return bool */ public function replicate(User $user, Club $club): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Club $club): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_club'); } - } diff --git a/app/Policies/RegionPolicy.php b/app/Policies/RegionPolicy.php index 8627fb1..e7ff6f3 100644 --- a/app/Policies/RegionPolicy.php +++ b/app/Policies/RegionPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Region; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class RegionPolicy @@ -12,9 +12,6 @@ class RegionPolicy /** * 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 \App\Models\Region $region - * @return bool */ public function view(User $user, Region $region): bool { @@ -35,9 +28,6 @@ public function view(User $user, Region $region): 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 \App\Models\Region $region - * @return bool */ public function update(User $user, Region $region): bool { @@ -58,10 +44,6 @@ public function update(User $user, Region $region): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Region $region - * @return bool */ public function delete(User $user, Region $region): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Region $region): 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 \App\Models\Region $region - * @return bool */ public function forceDelete(User $user, Region $region): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Region $region): 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 \App\Models\Region $region - * @return bool */ public function restore(User $user, Region $region): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Region $region): 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 \App\Models\Region $region - * @return bool */ public function replicate(User $user, Region $region): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Region $region): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_region'); } - } diff --git a/app/Policies/RolePolicy.php b/app/Policies/RolePolicy.php index 0e73228..4fcda60 100644 --- a/app/Policies/RolePolicy.php +++ b/app/Policies/RolePolicy.php @@ -3,8 +3,8 @@ namespace App\Policies; use App\Models\User; -use Spatie\Permission\Models\Role; use Illuminate\Auth\Access\HandlesAuthorization; +use Spatie\Permission\Models\Role; class RolePolicy { @@ -12,9 +12,6 @@ class RolePolicy /** * 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 \Spatie\Permission\Models\Role $role - * @return bool */ public function view(User $user, Role $role): bool { @@ -35,9 +28,6 @@ public function view(User $user, Role $role): 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 \Spatie\Permission\Models\Role $role - * @return bool */ public function update(User $user, Role $role): bool { @@ -58,10 +44,6 @@ public function update(User $user, Role $role): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \Spatie\Permission\Models\Role $role - * @return bool */ public function delete(User $user, Role $role): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Role $role): 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 \Spatie\Permission\Models\Role $role - * @return bool */ public function forceDelete(User $user, Role $role): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Role $role): 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 \Spatie\Permission\Models\Role $role - * @return bool */ public function restore(User $user, Role $role): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Role $role): 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 \Spatie\Permission\Models\Role $role - * @return bool */ public function replicate(User $user, Role $role): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Role $role): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('{{ Reorder }}'); } - } diff --git a/app/Policies/SqueezePolicy.php b/app/Policies/SqueezePolicy.php index 7ab7776..93c3881 100644 --- a/app/Policies/SqueezePolicy.php +++ b/app/Policies/SqueezePolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Squeeze; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class SqueezePolicy @@ -12,9 +12,6 @@ class SqueezePolicy /** * 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 \App\Models\Squeeze $squeeze - * @return bool */ public function view(User $user, Squeeze $squeeze): bool { @@ -35,9 +28,6 @@ public function view(User $user, Squeeze $squeeze): 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 \App\Models\Squeeze $squeeze - * @return bool */ public function update(User $user, Squeeze $squeeze): bool { @@ -58,10 +44,6 @@ public function update(User $user, Squeeze $squeeze): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Squeeze $squeeze - * @return bool */ public function delete(User $user, Squeeze $squeeze): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Squeeze $squeeze): 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 \App\Models\Squeeze $squeeze - * @return bool */ public function forceDelete(User $user, Squeeze $squeeze): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Squeeze $squeeze): 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 \App\Models\Squeeze $squeeze - * @return bool */ public function restore(User $user, Squeeze $squeeze): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Squeeze $squeeze): 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 \App\Models\Squeeze $squeeze - * @return bool */ public function replicate(User $user, Squeeze $squeeze): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Squeeze $squeeze): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_squeeze'); } - } diff --git a/app/Policies/TripPolicy.php b/app/Policies/TripPolicy.php index 0494530..b47c4cc 100644 --- a/app/Policies/TripPolicy.php +++ b/app/Policies/TripPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Trip; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class TripPolicy @@ -12,9 +12,6 @@ class TripPolicy /** * 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 \App\Models\Trip $trip - * @return bool */ public function view(User $user, Trip $trip): bool { @@ -35,9 +28,6 @@ public function view(User $user, Trip $trip): 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 \App\Models\Trip $trip - * @return bool */ public function update(User $user, Trip $trip): bool { @@ -58,10 +44,6 @@ public function update(User $user, Trip $trip): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Trip $trip - * @return bool */ public function delete(User $user, Trip $trip): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Trip $trip): 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 \App\Models\Trip $trip - * @return bool */ public function forceDelete(User $user, Trip $trip): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Trip $trip): 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 \App\Models\Trip $trip - * @return bool */ public function restore(User $user, Trip $trip): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Trip $trip): 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 \App\Models\Trip $trip - * @return bool */ public function replicate(User $user, Trip $trip): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Trip $trip): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_trip'); } - } diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php index 68e101e..019dc5c 100644 --- a/app/Policies/UserPolicy.php +++ b/app/Policies/UserPolicy.php @@ -3,7 +3,6 @@ namespace App\Policies; use App\Models\User; - use Illuminate\Auth\Access\HandlesAuthorization; class UserPolicy @@ -12,9 +11,6 @@ class UserPolicy /** * Determine whether the user can view any models. - * - * @param \App\Models\User $user - * @return bool */ public function viewAny(User $user): bool { @@ -23,9 +19,6 @@ public function viewAny(User $user): bool /** * Determine whether the user can view the model. - * - * @param \App\Models\User $user - * @return bool */ public function view(User $user): bool { @@ -34,9 +27,6 @@ public function view(User $user): bool /** * Determine whether the user can create models. - * - * @param \App\Models\User $user - * @return bool */ public function create(User $user): bool { @@ -45,9 +35,6 @@ public function create(User $user): bool /** * Determine whether the user can update the model. - * - * @param \App\Models\User $user - * @return bool */ public function update(User $user): bool { @@ -56,9 +43,6 @@ public function update(User $user): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @return bool */ public function delete(User $user): bool { @@ -67,9 +51,6 @@ public function delete(User $user): bool /** * Determine whether the user can bulk delete. - * - * @param \App\Models\User $user - * @return bool */ public function deleteAny(User $user): bool { @@ -78,9 +59,6 @@ public function deleteAny(User $user): bool /** * Determine whether the user can permanently delete. - * - * @param \App\Models\User $user - * @return bool */ public function forceDelete(User $user): bool { @@ -89,9 +67,6 @@ public function forceDelete(User $user): bool /** * Determine whether the user can permanently bulk delete. - * - * @param \App\Models\User $user - * @return bool */ public function forceDeleteAny(User $user): bool { @@ -100,9 +75,6 @@ public function forceDeleteAny(User $user): bool /** * Determine whether the user can restore. - * - * @param \App\Models\User $user - * @return bool */ public function restore(User $user): bool { @@ -111,9 +83,6 @@ public function restore(User $user): bool /** * Determine whether the user can bulk restore. - * - * @param \App\Models\User $user - * @return bool */ public function restoreAny(User $user): bool { @@ -122,9 +91,6 @@ public function restoreAny(User $user): bool /** * Determine whether the user can bulk restore. - * - * @param \App\Models\User $user - * @return bool */ public function replicate(User $user): bool { @@ -133,9 +99,6 @@ public function replicate(User $user): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { diff --git a/app/Policies/VisitPolicy.php b/app/Policies/VisitPolicy.php index 204fd38..b6f5824 100644 --- a/app/Policies/VisitPolicy.php +++ b/app/Policies/VisitPolicy.php @@ -12,9 +12,6 @@ class VisitPolicy /** * 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 \App\Models\Visit $visit - * @return bool */ public function view(User $user, Visit $visit): bool { @@ -35,9 +28,6 @@ public function view(User $user, Visit $visit): 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 \App\Models\Visit $visit - * @return bool */ public function update(User $user, Visit $visit): bool { @@ -58,10 +44,6 @@ public function update(User $user, Visit $visit): bool /** * Determine whether the user can delete the model. - * - * @param \App\Models\User $user - * @param \App\Models\Visit $visit - * @return bool */ public function delete(User $user, Visit $visit): bool { @@ -70,9 +52,6 @@ public function delete(User $user, Visit $visit): 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 \App\Models\Visit $visit - * @return bool */ public function forceDelete(User $user, Visit $visit): bool { @@ -93,9 +68,6 @@ public function forceDelete(User $user, Visit $visit): 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 \App\Models\Visit $visit - * @return bool */ public function restore(User $user, Visit $visit): bool { @@ -116,9 +84,6 @@ public function restore(User $user, Visit $visit): 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 \App\Models\Visit $visit - * @return bool */ public function replicate(User $user, Visit $visit): bool { @@ -139,13 +100,9 @@ public function replicate(User $user, Visit $visit): bool /** * Determine whether the user can reorder. - * - * @param \App\Models\User $user - * @return bool */ public function reorder(User $user): bool { return $user->can('reorder_visit'); } - }