@@ -55,7 +55,7 @@ |
||
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 | /** |
@@ -383,7 +383,7 @@ |
||
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()) |
@@ -230,7 +230,7 @@ |
||
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 |
@@ -199,7 +199,7 @@ |
||
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 | } |
@@ -160,7 +160,7 @@ discard block |
||
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 |
||
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(); |
@@ -19,6 +19,6 @@ |
||
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 | } |