Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 0 |
1 | <?php |
||
27 | 1 | protected function buildParser(ParserInterface $parser) |
|
28 | { |
||
29 | 1 | $parser = parent::buildParser($parser); |
|
30 | |||
31 | 1 | $xmlHeader = $this->getXmlHeader(); |
|
32 | 1 | if (!$xmlHeader) { |
|
33 | throw new RuntimeException('XML header not set'); |
||
34 | } |
||
35 | |||
36 | 1 | $parser->setXmlHeader($xmlHeader); |
|
37 | |||
38 | 1 | return $parser; |
|
39 | } |
||
40 | } |
||
41 |