mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Remove redundant typing from DocBlocks
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
98a430c91c
commit
f1905d548d
@@ -16,9 +16,6 @@ class CreateNewUser implements CreatesNewUsers
|
||||
|
||||
/**
|
||||
* Create a newly registered user.
|
||||
*
|
||||
* @param array $input
|
||||
* @return \App\Models\User
|
||||
*/
|
||||
public function create(array $input): User
|
||||
{
|
||||
@@ -45,9 +42,6 @@ class CreateNewUser implements CreatesNewUsers
|
||||
|
||||
/**
|
||||
* Create a personal team for the user.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return void
|
||||
*/
|
||||
protected function createTeam(User $user): void
|
||||
{
|
||||
|
||||
@@ -8,8 +8,6 @@ trait PasswordValidationRules
|
||||
{
|
||||
/**
|
||||
* Get the validation rules used to validate passwords.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function passwordRules(): array
|
||||
{
|
||||
|
||||
@@ -14,8 +14,6 @@ class ResetUserPassword implements ResetsUserPasswords
|
||||
* Validate and reset the user's forgotten password.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
public function reset($user, array $input): void
|
||||
{
|
||||
|
||||
@@ -14,8 +14,6 @@ class UpdateUserPassword implements UpdatesUserPasswords
|
||||
* Validate and update the user's password.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
public function update($user, array $input): void
|
||||
{
|
||||
|
||||
@@ -13,8 +13,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
||||
* Validate and update the given user's profile information.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
public function update($user, array $input): void
|
||||
{
|
||||
@@ -56,8 +54,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
||||
* Update the given verified user's profile information.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
protected function updateVerifiedUser($user, array $input): void
|
||||
{
|
||||
|
||||
@@ -18,9 +18,6 @@ class AddTeamMember implements AddsTeamMembers
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @param string|null $role
|
||||
* @return void
|
||||
*/
|
||||
public function add($user, $team, string $email, string $role = null): void
|
||||
{
|
||||
@@ -43,9 +40,6 @@ class AddTeamMember implements AddsTeamMembers
|
||||
* Validate the add member operation.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @param string|null $role
|
||||
* @return void
|
||||
*/
|
||||
protected function validate($team, string $email, ?string $role): void
|
||||
{
|
||||
@@ -61,8 +55,6 @@ class AddTeamMember implements AddsTeamMembers
|
||||
|
||||
/**
|
||||
* Get the validation rules for adding a team member.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
@@ -78,8 +70,6 @@ class AddTeamMember implements AddsTeamMembers
|
||||
* Ensure that the user is not already on the team.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @return \Closure
|
||||
*/
|
||||
protected function ensureUserIsNotAlreadyOnTeam($team, string $email): Closure
|
||||
{
|
||||
|
||||
@@ -14,7 +14,6 @@ class CreateTeam implements CreatesTeams
|
||||
* Validate and create a new team for the given user.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param array $input
|
||||
* @return mixed
|
||||
*/
|
||||
public function create($user, array $input)
|
||||
|
||||
@@ -10,7 +10,6 @@ class DeleteTeam implements DeletesTeams
|
||||
* Delete the given team.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @return void
|
||||
*/
|
||||
public function delete($team): void
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ class DeleteUser implements DeletesUsers
|
||||
/**
|
||||
* Create a new action instance.
|
||||
*
|
||||
* @param \Laravel\Jetstream\Contracts\DeletesTeams $deletesTeams
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(DeletesTeams $deletesTeams)
|
||||
@@ -30,7 +29,6 @@ class DeleteUser implements DeletesUsers
|
||||
* Delete the given user.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @return void
|
||||
*/
|
||||
public function delete($user): void
|
||||
{
|
||||
@@ -46,7 +44,6 @@ class DeleteUser implements DeletesUsers
|
||||
* Delete the teams and team associations attached to the user.
|
||||
*
|
||||
* @param mixed $user
|
||||
* @return void
|
||||
*/
|
||||
protected function deleteTeams($user): void
|
||||
{
|
||||
|
||||
@@ -20,9 +20,6 @@ class InviteTeamMember implements InvitesTeamMembers
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @param string|null $role
|
||||
* @return void
|
||||
*/
|
||||
public function invite($user, $team, string $email, string $role = null): void
|
||||
{
|
||||
@@ -44,9 +41,6 @@ class InviteTeamMember implements InvitesTeamMembers
|
||||
* Validate the invite member operation.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @param string|null $role
|
||||
* @return void
|
||||
*/
|
||||
protected function validate($team, string $email, ?string $role): void
|
||||
{
|
||||
@@ -64,7 +58,6 @@ class InviteTeamMember implements InvitesTeamMembers
|
||||
* Get the validation rules for inviting a team member.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @return array
|
||||
*/
|
||||
protected function rules($team): array
|
||||
{
|
||||
@@ -82,8 +75,6 @@ class InviteTeamMember implements InvitesTeamMembers
|
||||
* Ensure that the user is not already on the team.
|
||||
*
|
||||
* @param mixed $team
|
||||
* @param string $email
|
||||
* @return \Closure
|
||||
*/
|
||||
protected function ensureUserIsNotAlreadyOnTeam($team, string $email): Closure
|
||||
{
|
||||
|
||||
@@ -16,7 +16,6 @@ class RemoveTeamMember implements RemovesTeamMembers
|
||||
* @param mixed $user
|
||||
* @param mixed $team
|
||||
* @param mixed $teamMember
|
||||
* @return void
|
||||
*/
|
||||
public function remove($user, $team, $teamMember): void
|
||||
{
|
||||
@@ -35,7 +34,6 @@ class RemoveTeamMember implements RemovesTeamMembers
|
||||
* @param mixed $user
|
||||
* @param mixed $team
|
||||
* @param mixed $teamMember
|
||||
* @return void
|
||||
*/
|
||||
protected function authorize($user, $team, $teamMember): void
|
||||
{
|
||||
@@ -50,7 +48,6 @@ class RemoveTeamMember implements RemovesTeamMembers
|
||||
*
|
||||
* @param mixed $teamMember
|
||||
* @param mixed $team
|
||||
* @return void
|
||||
*/
|
||||
protected function ensureUserDoesNotOwnTeam($teamMember, $team): void
|
||||
{
|
||||
|
||||
@@ -13,8 +13,6 @@ class UpdateTeamName implements UpdatesTeamNames
|
||||
*
|
||||
* @param mixed $user
|
||||
* @param mixed $team
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
public function update($user, $team, array $input): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user