Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 9 | private function parseResult($response) |
|
23 | { |
||
24 | 9 | $responseParts = explode(';', $response); |
|
25 | 9 | if (count($responseParts) == 4) { |
|
26 | 9 | list($this->status, $this->iso2, $this->iso3, $this->name) = $responseParts; |
|
27 | 9 | } else { |
|
28 | 1 | throw new \Exception('Inconsistent response from Ip2c', 1); |
|
29 | } |
||
30 | 9 | } |
|
31 | |||
64 |