@@ -48,12 +48,12 @@ |
||
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 | ]); |
@@ -52,8 +52,7 @@ |
||
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 | ]); |
@@ -54,12 +54,12 @@ |
||
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 | ]); |
@@ -52,8 +52,7 @@ |
||
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 | ]); |