Passed
Push — master ( f1e0bb...f40f88 )
by Vince
01:35
created
src/core/headers/header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             ));
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     {
406 406
         $auth_headers = $this->getHeaders();
407 407
 
408
-        if( $this->hasBearerValue() ) {
408
+        if ($this->hasBearerValue()) {
409 409
 
410 410
             list($type, $clientToken) = explode(" ", $auth_headers["Authorization"], 2);
411 411
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
         $helper = new helper;
428 428
 
429 429
         if (isset($auth_headers["Authorization"]) && !empty($auth_headers["Authorization"])) {
430
-            if( $grantType = $helper->checkVal($_REQUEST, 'grant_type') ) {
430
+            if ($grantType = $helper->checkVal($_REQUEST, 'grant_type')) {
431 431
 
432 432
                 $refreshToken = false;
433 433
 
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
                     )
473 473
                 );
474 474
 
475
-            if( empty($account) ) {
475
+            if (empty($account)) {
476 476
                 $this->unauthorised();
477 477
             }
478 478
 
Please login to merge, or discard this patch.