Completed
Pull Request — master (#63)
by
unknown
02:50 queued 10s
created
src/Http/Middleware/ForbidBannedUser.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
         $redirect_url = config('ban.redirect_url', false);
49 49
 
50 50
         if ($user && $user instanceof BannableContract && $user->isBanned()) {
51
-            if($redirect_url){
51
+            if ($redirect_url) {
52 52
                 return redirect($redirect_url)->withInput()->withErrors([
53 53
                     'login' => 'This account is blocked.',
54 54
                 ]);
55 55
             }
56
-            else{
56
+            else {
57 57
                 return redirect()->back()->withInput()->withErrors([
58 58
                     'login' => 'This account is blocked.',
59 59
                 ]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
                 return redirect($redirect_url)->withInput()->withErrors([
53 53
                     'login' => 'This account is blocked.',
54 54
                 ]);
55
-            }
56
-            else{
55
+            } else{
57 56
                 return redirect()->back()->withInput()->withErrors([
58 57
                     'login' => 'This account is blocked.',
59 58
                 ]);
Please login to merge, or discard this patch.
src/Http/Middleware/LogsOutBannedUser.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@
 block discarded – undo
54 54
                 $this->auth->logout();
55 55
             }
56 56
             
57
-            if($redirect_url){
57
+            if ($redirect_url) {
58 58
                 return redirect($redirect_url)->withInput()->withErrors([
59 59
                     'login' => 'This account is blocked.',
60 60
                 ]);
61 61
             }
62
-            else{
62
+            else {
63 63
                 return redirect()->back()->withInput()->withErrors([
64 64
                     'login' => 'This account is blocked.',
65 65
                 ]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
                 return redirect($redirect_url)->withInput()->withErrors([
53 53
                     'login' => 'This account is blocked.',
54 54
                 ]);
55
-            }
56
-            else{
55
+            } else{
57 56
                 return redirect()->back()->withInput()->withErrors([
58 57
                     'login' => 'This account is blocked.',
59 58
                 ]);
Please login to merge, or discard this patch.