Passed
Pull Request — master (#14)
by ARCANEDEV
19:38
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.
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/Middleware/EnsureIsActive.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@
 block discarded – undo
47 47
      */
48 48
     private function isActivated($user): bool
49 49
     {
50
-        if ( ! $user instanceof CanBeActivated)
51
-            return false;
50
+        if ( ! $user instanceof CanBeActivated) {
51
+                    return false;
52
+        }
52 53
 
53 54
         return $user->isActive();
54 55
     }
Please login to merge, or discard this patch.
src/Core/Http/Controllers/Api/MetricsController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
 
37 37
         abort_if(is_null($metric), Response::HTTP_NOT_FOUND, __('Metric not found'));
38 38
 
39
-        if ($metric->authorizedToSee($request))
40
-            return response()->json($metric->resolve($request)->toArray());
39
+        if ($metric->authorizedToSee($request)) {
40
+                    return response()->json($metric->resolve($request)->toArray());
41
+        }
41 42
 
42 43
         return response()->json([
43 44
             'message' => 'Access Not Allowed',
Please login to merge, or discard this patch.
src/Authentication/Http/Routes/LoginRoutes.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,9 @@
 block discarded – undo
67 67
      */
68 68
     private function mapTwoFactorRoutes(): void
69 69
     {
70
-        if ( ! Auth::isTwoFactorEnabled())
71
-            return;
70
+        if ( ! Auth::isTwoFactorEnabled()) {
71
+                    return;
72
+        }
72 73
 
73 74
         $this->prefix('two-factor-challenge')->name('two-factor.')->group(function () {
74 75
             // admin::auth.login.two-factor.create
Please login to merge, or discard this patch.
src/Fortify/LoginRateLimiter.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,9 @@
 block discarded – undo
115 115
      */
116 116
     public static function middleware(): ?string
117 117
     {
118
-        if ( ! static::isEnabled())
119
-            return null;
118
+        if ( ! static::isEnabled()) {
119
+                    return null;
120
+        }
120 121
 
121 122
         return 'throttle:'.Auth::config('limiters.login.throttle');
122 123
     }
Please login to merge, or discard this patch.
src/Fortify/Http/Middleware/RequirePassword.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,9 @@
 block discarded – undo
55 55
      */
56 56
     protected function shouldConfirmPassword(Request $request): bool
57 57
     {
58
-        if ( ! $this->hasPassword($request))
59
-            return false;
58
+        if ( ! $this->hasPassword($request)) {
59
+                    return false;
60
+        }
60 61
 
61 62
         $confirmedAt = time() - $request->session()->get('auth.password_confirmed_at', 0);
62 63
 
Please login to merge, or discard this patch.