@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | foreach ($headers_list as $index => $headValue) { |
190 | 190 | @list($key, $value) = explode(": ", $headValue); |
191 | 191 | |
192 | - if (!is_null($key) && !is_null($value) ) { |
|
192 | + if (!is_null($key) && !is_null($value)) { |
|
193 | 193 | $headers_list[$key] = $value; |
194 | 194 | unset($headers_list[$index]); |
195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | $apacheRequestHeaders = apache_request_headers(); |
202 | 202 | } |
203 | 203 | |
204 | - if( is_null($apacheRequestHeaders) || empty($apacheRequestHeaders) ) { |
|
204 | + if (is_null($apacheRequestHeaders) || empty($apacheRequestHeaders)) { |
|
205 | 205 | return []; |
206 | 206 | } |
207 | 207 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | '*', |
260 | 260 | )); |
261 | 261 | |
262 | - if( !array_key_exists('Access-Control-Allow-Methods', $this->getHeaders()) ) { |
|
262 | + if (!array_key_exists('Access-Control-Allow-Methods', $this->getHeaders())) { |
|
263 | 263 | $this->setHeader('Access-Control-Allow-Methods', array( |
264 | 264 | 'GET,POST,OPTIONS', |
265 | 265 | )); |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | ) |
459 | 459 | ); |
460 | 460 | |
461 | - if( empty($account) ) { |
|
461 | + if (empty($account)) { |
|
462 | 462 | $this->unauthorised(); |
463 | 463 | } |
464 | 464 |