Conditions | 2 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function parseResponse($response) |
||
43 | { |
||
44 | try { |
||
45 | $xmlElement = new SimpleXMLElement($response); |
||
46 | |||
47 | return new Response(0 == (string) $xmlElement->ErrorCode, $response); |
||
48 | } catch (Exception $exception) { |
||
49 | Log::error($exception); |
||
50 | |||
51 | return new Response(false, 'Robi did not respond!'); |
||
52 | } |
||
55 |