Passed
Pull Request — master (#14)
by ARCANEDEV
08:28
created
src/Helpers/UI/Actions/ButtonAction.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,9 @@
 block discarded – undo
73 73
      */
74 74
     public function setDisabled(bool $disabled)
75 75
     {
76
-        if ( ! $disabled)
77
-            return $this;
76
+        if ( ! $disabled) {
77
+                    return $this;
78
+        }
78 79
 
79 80
         return $this->attribute('disabled')->class('btn btn-sm btn-outline-secondary');
80 81
     }
Please login to merge, or discard this patch.
src/Support/Http/Controller.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -117,8 +117,9 @@  discard block
 block discarded – undo
117 117
      */
118 118
     protected function selectMetrics($metrics)
119 119
     {
120
-        if (is_string($metrics))
121
-            $metrics = config($metrics, []);
120
+        if (is_string($metrics)) {
121
+                    $metrics = config($metrics, []);
122
+        }
122 123
 
123 124
         app(Manager::class)->setSelected($metrics);
124 125
 
@@ -153,8 +154,9 @@  discard block
 block discarded – undo
153 154
      */
154 155
     protected function view(string $name, $data = [], $mergeData = []): ViewContract
155 156
     {
156
-        if ( ! is_null($this->viewNamespace))
157
-            $name = "{$this->viewNamespace}::{$name}";
157
+        if ( ! is_null($this->viewNamespace)) {
158
+                    $name = "{$this->viewNamespace}::{$name}";
159
+        }
158 160
 
159 161
         $this->preRenderingView();
160 162
 
Please login to merge, or discard this patch.
src/Core/Http/Middleware/CheckForMaintenanceMode.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,13 @@
 block discarded – undo
46 46
     protected function inExceptArray($request)
47 47
     {
48 48
         foreach ($this->exceptUris() as $except) {
49
-            if ($except !== '/')
50
-                $except = trim($except, '/');
49
+            if ($except !== '/') {
50
+                            $except = trim($except, '/');
51
+            }
51 52
 
52
-            if ($request->fullUrlIs($except) || $request->is($except))
53
-                return true;
53
+            if ($request->fullUrlIs($except) || $request->is($except)) {
54
+                            return true;
55
+            }
54 56
         }
55 57
 
56 58
         return false;
Please login to merge, or discard this patch.
src/Auth/Http/Routes/Permissions/RolesRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             $this->prefix('{'.self::ROLE_WILDCARD.'}')->group(function () {
40 40
                 // admin::auth.permissions.roles.detach
41 41
                 $this->delete('detach', [RolesController::class, 'detach'])
42
-                     ->name('detach');
42
+                        ->name('detach');
43 43
             });
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/Auth/Http/Routes/DashboardRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->adminGroup(function () {
28 28
             // admin::authorization.index
29 29
             $this->get('/', [DashboardController::class, 'index'])
30
-                 ->name('index');
30
+                    ->name('index');
31 31
         });
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Auth/Http/Routes/AbstractRouteRegistrar.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     protected function moduleGroup(Closure $callback)
29 29
     {
30 30
         $this->prefix('authorization')
31
-             ->name('auth.')
32
-             ->group($callback);
31
+                ->name('auth.')
32
+                ->group($callback);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Auth/Http/Middleware/TrackLastActivity.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@
 block discarded – undo
31 31
      */
32 32
     public function handle($request, Closure $next, $guard = null)
33 33
     {
34
-        if (Auth::guard($guard)->check())
35
-            Auth::guard($guard)->user()->updateLastActivity();
34
+        if (Auth::guard($guard)->check()) {
35
+                    Auth::guard($guard)->user()->updateLastActivity();
36
+        }
36 37
 
37 38
         return $next($request);
38 39
     }
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000009_create_auth_throttles_table.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,9 @@
 block discarded – undo
38 38
      */
39 39
     public function up(): void
40 40
     {
41
-        if ( ! Auth::config('throttles.enabled', false))
42
-            return;
41
+        if ( ! Auth::config('throttles.enabled', false)) {
42
+                    return;
43
+        }
43 44
 
44 45
         $this->createSchema(function (Blueprint $table) {
45 46
             $table->id();
Please login to merge, or discard this patch.
src/Core/Http/Routes/Api/ComponentsRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->prefix('components')->name('components.')->group(function () {
29 29
             // admin::api.components.handle
30 30
             $this->post('/', [ComponentsController::class, 'handle'])
31
-                 ->name('handle');
31
+                    ->name('handle');
32 32
         });
33 33
     }
34 34
 }
Please login to merge, or discard this patch.