Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function process(Parser $parser, $node, $variable, $data, array $options) |
|
17 | { |
||
18 | 1 | parent::process($parser, $node, $variable, $data, $options); |
|
19 | |||
20 | 1 | $highlighter = new Highlighter(); |
|
21 | 1 | $highlighted = $highlighter->highlight($node->getLanguage(), $node->getValue()); |
|
22 | |||
23 | 1 | $node->setValue($highlighted->value); |
|
24 | 1 | } |
|
25 | } |
||
26 |