@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $this->setPreferences(); |
| 29 | 29 | |
| 30 | 30 | $inviteMode = (int) Settings::settingValue('registerstatus') === Settings::REGISTER_STATUS_INVITE; |
| 31 | - if (! $inviteMode) { |
|
| 31 | + if (!$inviteMode) { |
|
| 32 | 32 | // Invitations disabled: show informational message only, no queries. |
| 33 | 33 | $this->smarty->assign([ |
| 34 | 34 | 'invite_mode' => false, |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $this->setPreferences(); |
| 119 | 119 | |
| 120 | 120 | $inviteMode = (int) Settings::settingValue('registerstatus') === Settings::REGISTER_STATUS_INVITE; |
| 121 | - if (! $inviteMode) { |
|
| 121 | + if (!$inviteMode) { |
|
| 122 | 122 | $this->smarty->assign([ |
| 123 | 123 | 'invite_mode' => false, |
| 124 | 124 | 'csrf_token' => csrf_token(), |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | public function cleanup(): JsonResponse |
| 360 | 360 | { |
| 361 | 361 | // Check if user is admin |
| 362 | - if (! auth()->user()->hasRole('admin')) { |
|
| 362 | + if (!auth()->user()->hasRole('admin')) { |
|
| 363 | 363 | abort(403, 'Unauthorized'); |
| 364 | 364 | } |
| 365 | 365 | |