Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | 57 | public function parse(InlineParserContext $inlineContext): bool |
|
38 | { |
||
39 | 57 | if ($m = $inlineContext->getCursor()->match('/^' . RegexHelper::PARTIAL_ENTITY . '/i')) { |
|
40 | 42 | $inlineContext->getContainer()->appendChild(new Text(Html5EntityDecoder::decode($m))); |
|
41 | |||
42 | 42 | return true; |
|
43 | } |
||
44 | |||
45 | 24 | return false; |
|
46 | } |
||
47 | } |
||
48 |