Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public static function createFromCustomerVerificationResponse(ResponseInterface $response) |
||
22 | { |
||
23 | $content = $response->getBody()->getContents(); |
||
24 | $result = json_decode($content, true); |
||
25 | |||
26 | if (JSON_ERROR_NONE == json_last_error()) { |
||
27 | throw SkrillResponseException::fromSkillError($result->message); |
||
28 | } |
||
29 | |||
30 | return new Response($result); |
||
31 | } |
||
33 |