Passed
Push — master ( 0c1115...dae56e )
by Vince
03:09 queued 14s
created
src/core/route/base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         $scriptName = ltrim($_SERVER['SCRIPT_NAME']);
57 57
         $uri = array_values(array_filter(explode('/', $_SERVER['SCRIPT_NAME'])));
58
-        return '/'.implode('/', array_slice($uri, 0, 1)).'/';
58
+        return '/' . implode('/', array_slice($uri, 0, 1)) . '/';
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/responsible.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@
 block discarded – undo
383 383
         $getJWT = (isset($options['getJWT']) && is_bool($options['getJWT']))
384 384
         ? $options['getJWT'] : true;
385 385
 
386
-        $getSecretAppend = (isset($options['secret']) && ($options['secret'] == 'append') )
386
+        $getSecretAppend = (isset($options['secret']) && ($options['secret'] == 'append'))
387 387
         ? $options['secret'] : false;
388 388
 
389 389
         return (new user\user())
Please login to merge, or discard this patch.
src/core/user/userLoad.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
             $raToken = explode('.', $account->refresh_token);
231 231
             if (!empty($raToken)) {
232 232
                 $raToken = array_values(array_filter($raToken));
233
-                $time = ($raToken[0] <= ($this->timeNow() - $offset) ) ? ($this->timeNow() + $offset) : $raToken[0];
233
+                $time = ($raToken[0] <= ($this->timeNow() - $offset)) ? ($this->timeNow() + $offset) : $raToken[0];
234 234
             }
235 235
         }
236 236
 
Please login to merge, or discard this patch.
src/core/route/router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
             'responseType' => null,
200 200
         );
201 201
 
202
-        $this->setRoutes((object)$routesArray);
202
+        $this->setRoutes((object) $routesArray);
203 203
 
204 204
         return $this->getRoutes();
205 205
     }
Please login to merge, or discard this patch.
src/core/server.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $this->header = new headers\header();
161 161
             $this->header->setOptions($options);
162 162
 
163
-            if (empty((array)$this->header->getMethod())) {
163
+            if (empty((array) $this->header->getMethod())) {
164 164
                 $this->header->requestMethod();
165 165
             }
166 166
         }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     public function authenticate()
323 323
     {
324 324
         $options = $this->getOptions();
325
-        $route = (isset($options['route']) && !empty($options['route']) ) ? $options['route'] : '';
325
+        $route = (isset($options['route']) && !empty($options['route'])) ? $options['route'] : '';
326 326
 
327 327
         $this->endpoints->baseApiRoot(dirname(__DIR__));
328 328
         $this->endpoints->register();
Please login to merge, or discard this patch.
src/core/endpoints/RouteMiddlewareInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
     public function getScope(): string;
20 20
     public function getController(): string;
21 21
     public function getActionMethod(): string;
22
-    public function getHandler(): \Closure|null;
22
+    public function getHandler(): \Closure | null;
23 23
     public function runHandler(\Closure $handler, $request): mixed;
24 24
 }
Please login to merge, or discard this patch.