mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
Remove redundant typing from DocBlocks
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
98a430c91c
commit
f1905d548d
@@ -12,9 +12,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
@@ -23,10 +20,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function view(User $user, Team $team): bool
|
||||
{
|
||||
@@ -35,9 +28,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
@@ -46,10 +36,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function update(User $user, Team $team): bool
|
||||
{
|
||||
@@ -59,8 +45,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can add team members.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function addTeamMember(User $user, Team $team)
|
||||
@@ -71,8 +55,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update team member permissions.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function updateTeamMember(User $user, Team $team)
|
||||
@@ -83,8 +65,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can remove team members.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function removeTeamMember(User $user, Team $team)
|
||||
@@ -94,10 +74,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete(User $user, Team $team): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user