| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function __construct(LibXMLError $error) |
||
| 29 | { |
||
| 30 | $message = sprintf( |
||
| 31 | 'Unable to parse XML - "%s[%d]": "%s" in "%s" at line %d on column %d"', |
||
| 32 | self::LEVELMAP[$error->level], |
||
| 33 | $error->code, |
||
| 34 | $error->message, |
||
| 35 | $error->file ?: '(string)', |
||
| 36 | $error->line, |
||
| 37 | $error->column, |
||
| 38 | ); |
||
| 39 | |||
| 40 | parent::__construct($message); |
||
| 41 | } |
||
| 43 |