| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 11 | public function parse($resultString) |
||
| 12 | { |
||
| 13 | $parsed = []; |
||
| 14 | $xml = simplexml_load_string($resultString, null, LIBXML_NOCDATA); |
||
| 15 | $parsed['text'] = (string) $xml->source->index->symbol[0]->data; |
||
| 16 | $parsed['format'] = (string) $xml->source->index->symbol[0]['type']; |
||
| 17 | return $parsed; |
||
| 18 | } |
||
| 19 | |||
| 20 | } |