Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 5 | public function parseResponse($responseLine, $responseData) |
|
28 | { |
||
29 | 5 | if ($responseLine == Response::RESPONSE_NOT_FOUND) { |
|
30 | 1 | throw new Exception\ServerException(sprintf( |
|
31 | 1 | 'Server reported %s', |
|
32 | 1 | $responseLine |
|
33 | )); |
||
34 | } |
||
35 | 4 | unset($responseData['@attributes']); |
|
36 | 4 | $content = $responseData; |
|
|
|||
37 | 4 | return new Response\ArrayResponse('OK', $responseData); |
|
38 | } |
||
40 |