@@ -19,6 +19,6 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function hasErrorStatusCode(ResponseInterface $response) : bool |
| 21 | 21 | { |
| 22 | - return \in_array(+ \mb_substr($response->getStatusCode(), 0, 1), [4, 5], true); |
|
| 22 | + return \in_array(+\mb_substr($response->getStatusCode(), 0, 1), [4, 5], true); |
|
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -74,9 +74,12 @@ |
||
| 74 | 74 | */ |
| 75 | 75 | private static function _decodeJSON(string $json) : string |
| 76 | 76 | { |
| 77 | - try { |
|
| 77 | + try |
|
| 78 | + { |
|
| 78 | 79 | return http_build_query(\GuzzleHttp\json_decode($json, true), '', '&'); |
| 79 | - } catch (\Exception $e) { |
|
| 80 | + } |
|
| 81 | + catch (\Exception $e) |
|
| 82 | + { |
|
| 80 | 83 | return $json; |
| 81 | 84 | } |
| 82 | 85 | } |