Passed
Push — dev6 ( bf7d7f...edb7de )
by Ron
17:07
created
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/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.index');
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.index');
19 20
         }
20 21
     }
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/Traits/AllowTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     protected function checkPermission(User $user, $description)
14 14
     {
15
-        $allowed = UserRolePermissions::whereRoleId($user->role_id)->whereHas('UserRolePermissionTypes', function($q) use ($description)
16
-        {
15
+        $allowed = UserRolePermissions::whereRoleId($user->role_id)->whereHas('UserRolePermissionTypes', function($q) use ($description) {
17 16
             $q->where('description', $description);
18 17
         })->first();
19 18
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ResetPasswordSubmitController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $status = Password::reset(
22 22
             $request->only('email', 'password', 'password_confirmation', 'token'),
23
-                function($user, $password)
24
-                {
23
+                function($user, $password) {
25 24
                     //  Determine the new expiration date
26 25
                     $expires = config('auth.passwords.settings.expire') ? Carbon::now()->addDays(config('auth.passwords.settings.expire')) : null;
27 26
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->configureRateLimiting();
21 21
 
22
-        $this->routes(function ()
22
+        $this->routes(function()
23 23
         {
24 24
             //  Basic Login and Logout Routes
25 25
             Route::middleware('web')
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function configureRateLimiting()
40 40
     {
41
-        RateLimiter::for('api', function (Request $request) {
41
+        RateLimiter::for('api', function(Request $request) {
42 42
             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
43 43
         });
44 44
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->configureRateLimiting();
21 21
 
22
-        $this->routes(function ()
23
-        {
22
+        $this->routes(function () {
24 23
             //  Basic Login and Logout Routes
25 24
             Route::middleware('web')
26 25
                 ->namespace($this->namespace)
Please login to merge, or discard this patch.