Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected function request($ip) |
||
22 | { |
||
23 | $driverResponse = json_decode($this->executeRequest($this->url($ip)), true); |
||
|
|||
24 | |||
25 | if (null === $driverResponse) { |
||
26 | throw new AddressNotFoundException("The IP address {$ip} could not be found."); |
||
27 | } |
||
28 | |||
29 | return new Response($driverResponse); |
||
30 | } |
||
32 |