Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
43 | 186 | public function render(Node $node, ChildNodeRendererInterface $childRenderer) |
|
44 | { |
||
45 | 186 | if (! ($node instanceof HtmlBlock)) { |
|
46 | 3 | throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node)); |
|
47 | } |
||
48 | |||
49 | 183 | $htmlInput = $this->config->get('html_input'); |
|
50 | |||
51 | 183 | return HtmlFilter::filter($node->getLiteral(), $htmlInput); |
|
52 | } |
||
59 |