mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
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:
committed by
HolgerHatGarKeineNode
parent
a15ca4a2bc
commit
5776b01d15
@@ -14,7 +14,6 @@ class RegistrationPolicy 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,13 +26,12 @@ class RegistrationPolicy extends BasePolicy
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Registration $registration)
|
||||
{
|
||||
return $registration->whereHas('event.course.lecturer',
|
||||
fn($q) => $q->where('team_id', $user->current_team_id))
|
||||
fn ($q) => $q->where('team_id', $user->current_team_id))
|
||||
->exists();
|
||||
}
|
||||
|
||||
@@ -41,7 +39,6 @@ class RegistrationPolicy 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)
|
||||
@@ -54,7 +51,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Registration $registration)
|
||||
@@ -67,7 +63,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Registration $registration)
|
||||
@@ -80,7 +75,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Registration $registration)
|
||||
@@ -93,7 +87,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Registration $registration)
|
||||
|
||||
Reference in New Issue
Block a user