@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | foreach ($headers_list as $index => $headValue) { |
187 | 187 | @list($key, $value) = explode(": ", $headValue); |
188 | 188 | |
189 | - if (!is_null($key) && !is_null($value) ) { |
|
189 | + if (!is_null($key) && !is_null($value)) { |
|
190 | 190 | $headers_list[$key] = $value; |
191 | 191 | unset($headers_list[$index]); |
192 | 192 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $apacheRequestHeaders = apache_request_headers(); |
199 | 199 | } |
200 | 200 | |
201 | - if( is_null($apacheRequestHeaders) || empty($apacheRequestHeaders) ) { |
|
201 | + if (is_null($apacheRequestHeaders) || empty($apacheRequestHeaders)) { |
|
202 | 202 | return []; |
203 | 203 | } |
204 | 204 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | '*', |
257 | 257 | )); |
258 | 258 | |
259 | - if( !array_key_exists('Access-Control-Allow-Methods', $this->getHeaders()) ) { |
|
259 | + if (!array_key_exists('Access-Control-Allow-Methods', $this->getHeaders())) { |
|
260 | 260 | $this->setHeader('Access-Control-Allow-Methods', array( |
261 | 261 | 'GET,POST,OPTIONS', |
262 | 262 | )); |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | { |
384 | 384 | $helper = new helper; |
385 | 385 | |
386 | - if( $grantType = $helper->checkVal($_REQUEST, 'grant_type') ) { |
|
386 | + if ($grantType = $helper->checkVal($_REQUEST, 'grant_type')) { |
|
387 | 387 | |
388 | 388 | $refreshToken = false; |
389 | 389 | |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | ) |
466 | 466 | ); |
467 | 467 | |
468 | - if( empty($account) ) { |
|
468 | + if (empty($account)) { |
|
469 | 469 | $this->unauthorised(); |
470 | 470 | } |
471 | 471 |