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