Passed
Push — master ( 151dda...f1e0bb )
by Vince
01:47
created
src/core/headers/header.php 1 patch
Spacing   +5 added lines, -5 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
             ));
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
465 465
                     )
466 466
                 );
467 467
 
468
-            if( empty($account) ) {
468
+            if (empty($account)) {
469 469
                 $this->unauthorised();
470 470
             }
471 471
 
Please login to merge, or discard this patch.