| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 3 | public function processResponse(\GuzzleHttp\Message\ResponseInterface $response) |
|
| 45 | { |
||
| 46 | 3 | $xml = simplexml_load_string($response->getBody()->getContents()); |
|
| 47 | |||
| 48 | 3 | $languages = []; |
|
| 49 | |||
| 50 | 3 | foreach ($xml->string as $language) { |
|
| 51 | 3 | $languages[] = (string)$language; |
|
| 52 | 3 | } |
|
| 53 | |||
| 54 | 3 | return $languages; |
|
| 55 | } |
||
| 56 | } |
||
| 57 |