Passed
Pull Request — master (#14)
by ARCANEDEV
08:06
created
src/System/Http/Datatables/AbilitiesDatatable.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,9 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $search = $this->searchQuery($request);
77 77
 
78
-        if (empty($search))
79
-            return $abilities;
78
+        if (empty($search)) {
79
+                    return $abilities;
80
+        }
80 81
 
81 82
         return $abilities->filter(function (Ability $ability) use ($search) {
82 83
             $needles   = explode(' ', Str::lower($search));
@@ -88,8 +89,9 @@  discard block
 block discarded – undo
88 89
             ];
89 90
 
90 91
             foreach ($haystacks as $haystack) {
91
-                if (Str::contains(Str::lower($haystack), $needles))
92
-                    return true;
92
+                if (Str::contains(Str::lower($haystack), $needles)) {
93
+                                    return true;
94
+                }
93 95
             }
94 96
 
95 97
             return false;
Please login to merge, or discard this patch.
src/System/Http/Datatables/RoutesDatatable.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,9 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $search = $this->searchQuery($request);
62 62
 
63
-        if (empty($search))
64
-            return $routes;
63
+        if (empty($search)) {
64
+                    return $routes;
65
+        }
65 66
 
66 67
         return $routes->filter(function (Route $route) use ($search): bool {
67 68
             $needles   = explode(' ', Str::lower($search));
@@ -72,8 +73,9 @@  discard block
 block discarded – undo
72 73
             ];
73 74
 
74 75
             foreach ($haystacks as $haystack) {
75
-                if (Str::contains(Str::lower($haystack), $needles))
76
-                    return true;
76
+                if (Str::contains(Str::lower($haystack), $needles)) {
77
+                                    return true;
78
+                }
77 79
             }
78 80
 
79 81
             return false;
Please login to merge, or discard this patch.
src/System/Helpers/MaintenanceMode.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,8 +75,9 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function data(): array
77 77
     {
78
-        if ($this->isDisabled())
79
-            return [];
78
+        if ($this->isDisabled()) {
79
+                    return [];
80
+        }
80 81
 
81 82
         return json_decode(file_get_contents($this->getDownPath()), true);
82 83
     }
@@ -127,8 +128,9 @@  discard block
 block discarded – undo
127 128
      */
128 129
     protected function renderTemplate(?string $template): ?string
129 130
     {
130
-        if (is_null($template))
131
-            return null;
131
+        if (is_null($template)) {
132
+                    return null;
133
+        }
132 134
 
133 135
         (new RegisterErrorViewPaths)();
134 136
 
@@ -189,8 +191,9 @@  discard block
 block discarded – undo
189 191
      */
190 192
     protected function getRetryTime($retry)
191 193
     {
192
-        if (is_numeric($retry) && $retry > 0)
193
-            return (int) $retry;
194
+        if (is_numeric($retry) && $retry > 0) {
195
+                    return (int) $retry;
196
+        }
194 197
 
195 198
         return null;
196 199
     }
@@ -204,8 +207,9 @@  discard block
 block discarded – undo
204 207
      */
205 208
     protected function redirectPath(?string $redirect)
206 209
     {
207
-        if ($redirect && $redirect !== '/')
208
-            return '/'.trim($redirect, '/');
210
+        if ($redirect && $redirect !== '/') {
211
+                    return '/'.trim($redirect, '/');
212
+        }
209 213
 
210 214
         return $redirect;
211 215
     }
Please login to merge, or discard this patch.