@@ -111,25 +111,25 @@ |
||
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 | - } |
|
122 | - |
|
123 | - /** |
|
124 | - * Get status code of response |
|
125 | - * |
|
126 | - * @return int |
|
127 | - */ |
|
128 | - protected function getResponseStatusCode() |
|
129 | - { |
|
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 | + |
|
123 | + /** |
|
124 | + * Get status code of response |
|
125 | + * |
|
126 | + * @return int |
|
127 | + */ |
|
128 | + protected function getResponseStatusCode() |
|
129 | + { |
|
130 | 130 | $response = $this->getResponse(); |
131 | 131 | |
132 | 132 | return $response ? $response->getStatusCode() : 0; |
133 | - } |
|
133 | + } |
|
134 | 134 | } |
135 | 135 |