Test Failed
Push — dev6 ( ec3250...c3b798 )
by Ron
06:25
created
app/Http/Middleware/Authenticate.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.