@@ -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 | } |