Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
33 | 39 | public function parse(InlineParserContext $inlineContext): bool |
|
34 | { |
||
35 | 39 | $entity = $inlineContext->getFullMatch(); |
|
36 | |||
37 | 39 | $inlineContext->getCursor()->advanceBy($inlineContext->getFullMatchLength()); |
|
38 | 39 | $inlineContext->getContainer()->appendChild(new Text(Html5EntityDecoder::decode($entity))); |
|
39 | |||
40 | 39 | return true; |
|
41 | } |
||
43 |