@@ -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,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | private static function _decodeJSON(string $json) : string |
76 | 76 | { |
77 | - if(empty($json)) { |
|
77 | + if (empty($json)) { |
|
78 | 78 | return ''; // or also like in your code just return $json |
79 | 79 | } |
80 | 80 | return http_build_query(\GuzzleHttp\json_decode($json, true), '', '&'); |