@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected function redirectTo($request) |
16 | 16 | { |
17 | - if (! $request->expectsJson()) { |
|
17 | + if(!$request->expectsJson()) { |
|
18 | 18 | return route('login'); |
19 | 19 | } |
20 | 20 | } |
@@ -14,7 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | protected function redirectTo($request) |
16 | 16 | { |
17 | - if (! $request->expectsJson()) { |
|
17 | + if (! $request->expectsJson()) |
|
18 | + { |
|
18 | 19 | return route('login'); |
19 | 20 | } |
20 | 21 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $this->reportable(function (Throwable $e) { |
|
37 | + $this->reportable(function(Throwable $e) { |
|
38 | 38 | // |
39 | 39 | }); |
40 | 40 | } |
@@ -21,8 +21,8 @@ |
||
21 | 21 | { |
22 | 22 | $guards = empty($guards) ? [null] : $guards; |
23 | 23 | |
24 | - foreach ($guards as $guard) { |
|
25 | - if (Auth::guard($guard)->check()) { |
|
24 | + foreach($guards as $guard) { |
|
25 | + if(Auth::guard($guard)->check()) { |
|
26 | 26 | return redirect(RouteServiceProvider::HOME); |
27 | 27 | } |
28 | 28 | } |
@@ -21,8 +21,10 @@ |
||
21 | 21 | { |
22 | 22 | $guards = empty($guards) ? [null] : $guards; |
23 | 23 | |
24 | - foreach ($guards as $guard) { |
|
25 | - if (Auth::guard($guard)->check()) { |
|
24 | + foreach ($guards as $guard) |
|
25 | + { |
|
26 | + if (Auth::guard($guard)->check()) |
|
27 | + { |
|
26 | 28 | return redirect(RouteServiceProvider::HOME); |
27 | 29 | } |
28 | 30 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $this->configureRateLimiting(); |
39 | 39 | |
40 | - $this->routes(function () { |
|
40 | + $this->routes(function() { |
|
41 | 41 | Route::prefix('api') |
42 | 42 | ->middleware('api') |
43 | 43 | ->namespace($this->namespace) |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function configureRateLimiting() |
58 | 58 | { |
59 | - RateLimiter::for('api', function (Request $request) { |
|
59 | + RateLimiter::for('api', function(Request $request) { |
|
60 | 60 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); |
61 | 61 | }); |
62 | 62 | } |