Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-02-19 16:18:46 +00:00
committed by HolgerHatGarKeineNode
parent a15ca4a2bc
commit 5776b01d15
333 changed files with 4915 additions and 4967 deletions

View File

@@ -14,7 +14,6 @@ class ParticipantPolicy extends BasePolicy
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function viewAny(User $user)
@@ -27,16 +26,16 @@ class ParticipantPolicy extends BasePolicy
*
* @param \App\Models\User $user
* @param \App\Models\Participant $participant
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function view(User $user, Participant $participant)
{
if ($participant->registrations) {
return $participant->whereHas('registrations.event.course.lecturer',
fn($q) => $q->where('team_id', $user->current_team_id))
fn ($q) => $q->where('team_id', $user->current_team_id))
->exists();
}
return false;
}
@@ -44,7 +43,6 @@ class ParticipantPolicy extends BasePolicy
* Determine whether the user can create models.
*
* @param \App\Models\User $user
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function create(User $user)
@@ -57,7 +55,6 @@ class ParticipantPolicy extends BasePolicy
*
* @param \App\Models\User $user
* @param \App\Models\Participant $participant
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function update(User $user, Participant $participant)
@@ -70,7 +67,6 @@ class ParticipantPolicy extends BasePolicy
*
* @param \App\Models\User $user
* @param \App\Models\Participant $participant
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function delete(User $user, Participant $participant)
@@ -83,7 +79,6 @@ class ParticipantPolicy extends BasePolicy
*
* @param \App\Models\User $user
* @param \App\Models\Participant $participant
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function restore(User $user, Participant $participant)
@@ -96,7 +91,6 @@ class ParticipantPolicy extends BasePolicy
*
* @param \App\Models\User $user
* @param \App\Models\Participant $participant
*
* @return \Illuminate\Auth\Access\Response|bool
*/
public function forceDelete(User $user, Participant $participant)