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