Passed
Push — master ( 3cecb0...6ecb81 )
by Darko
09:14
created
app/Http/Controllers/InvitationController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.