@@ -111,14 +111,14 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * Check if response is 4xx or 5xx error |
|
| 115 | - * |
|
| 116 | - * @return boolean |
|
| 117 | - */ |
|
| 118 | - public function isError() |
|
| 119 | - { |
|
| 120 | - return $this->isClientError() || $this->isServerError(); |
|
| 121 | - } |
|
| 114 | + * Check if response is 4xx or 5xx error |
|
| 115 | + * |
|
| 116 | + * @return boolean |
|
| 117 | + */ |
|
| 118 | + public function isError() |
|
| 119 | + { |
|
| 120 | + return $this->isClientError() || $this->isServerError(); |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Encode data to send to client |
@@ -184,16 +184,16 @@ discard block |
||
| 184 | 184 | return $request && !empty($request->getQueryParams()['callback']); |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | - /** |
|
| 188 | - * Get status code of response |
|
| 189 | - * |
|
| 190 | - * @return int |
|
| 191 | - */ |
|
| 192 | - protected function getResponseStatusCode() |
|
| 193 | - { |
|
| 187 | + /** |
|
| 188 | + * Get status code of response |
|
| 189 | + * |
|
| 190 | + * @return int |
|
| 191 | + */ |
|
| 192 | + protected function getResponseStatusCode() |
|
| 193 | + { |
|
| 194 | 194 | $response = $this->getResponse(); |
| 195 | 195 | |
| 196 | 196 | return $response ? $response->getStatusCode() : 0; |
| 197 | - } |
|
| 197 | + } |
|
| 198 | 198 | } |
| 199 | 199 | |