@@ -217,7 +217,7 @@ |
||
217 | 217 | throw new CittaException(strtr('HTTP Status {code} Error: {error}', [ |
218 | 218 | '{error}' => \yii\helpers\ArrayHelper::getValue($error, 'message', null), |
219 | 219 | '{code}' => $result->http_status_code |
220 | - ]) |
|
220 | + ]) |
|
221 | 221 | ); |
222 | 222 | } |
223 | 223 |
@@ -208,8 +208,7 @@ |
||
208 | 208 | try { |
209 | 209 | // catch json error |
210 | 210 | $error = \yii\helpers\Json::decode($result->response, true); |
211 | - } |
|
212 | - catch (\yii\base\InvalidArgumentException $e) { |
|
211 | + } catch (\yii\base\InvalidArgumentException $e) { |
|
213 | 212 | // catch html error |
214 | 213 | $error['message'] = strip_tags(\yii\helpers\BaseHtmlPurifier::process($result->response)); |
215 | 214 | } |