Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public static function parseResponse(Response $response) |
||
40 | { |
||
41 | $jsonData = \GuzzleHttp\json_decode($response->getBody(), true); |
||
42 | if ($jsonData && 0 == $jsonData['retcode']) { |
||
43 | return $jsonData['result']['account']; |
||
44 | } |
||
45 | throw new ResponseException($jsonData['retcode'], $response); |
||
46 | } |
||
47 | } |
||
48 |