@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'post' => $payload |
| 101 | 101 | ]; |
| 102 | 102 | |
| 103 | - if( isset($this->requestBody['payload']) ) { |
|
| 103 | + if (isset($this->requestBody['payload'])) { |
|
| 104 | 104 | array_merge($this->requestBody['payload'], $payloadPost); |
| 105 | 105 | return; |
| 106 | 106 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function getRequestBody() |
| 127 | 127 | { |
| 128 | - if( isset($this->requestBody['payload']) ) { |
|
| 128 | + if (isset($this->requestBody['payload'])) { |
|
| 129 | 129 | return $this->requestBody['payload']; |
| 130 | 130 | } |
| 131 | 131 | return $this->requestBody; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | 'MESSAGE' => $message, |
| 171 | 171 | ), JSON_PRETTY_PRINT); |
| 172 | 172 | |
| 173 | - if( isset($options['errors']) && $options['errors'] == 'catchAll' ) { |
|
| 173 | + if (isset($options['errors']) && $options['errors'] == 'catchAll') { |
|
| 174 | 174 | throw new \Exception($eMessage, 1); |
| 175 | 175 | } |
| 176 | 176 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | 'MESSAGE' => $message, |
| 186 | 186 | ), JSON_PRETTY_PRINT); |
| 187 | 187 | |
| 188 | - if( isset($options['errors']) && $options['errors'] == 'catchAll' ) { |
|
| 188 | + if (isset($options['errors']) && $options['errors'] == 'catchAll') { |
|
| 189 | 189 | throw new \Exception($eMessage, 1); |
| 190 | 190 | } |
| 191 | 191 | |
@@ -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 | } |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | '*', |
| 256 | 256 | )); |
| 257 | 257 | |
| 258 | - if( !array_key_exists('Access-Control-Allow-Methods', $this->getHeaders()) ) { |
|
| 258 | + if (!array_key_exists('Access-Control-Allow-Methods', $this->getHeaders())) { |
|
| 259 | 259 | $this->setHeader('Access-Control-Allow-Methods', array( |
| 260 | 260 | 'GET,POST,OPTIONS', |
| 261 | 261 | )); |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | ) |
| 455 | 455 | ); |
| 456 | 456 | |
| 457 | - if( empty($account) ) { |
|
| 457 | + if (empty($account)) { |
|
| 458 | 458 | $this->unauthorised(); |
| 459 | 459 | } |
| 460 | 460 | |