| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 84 | public function parse(string $match, InlineParserContext $inlineContext): bool |
|
| 33 | { |
||
| 34 | 84 | $cursor = $inlineContext->getCursor(); |
|
| 35 | |||
| 36 | 84 | $cursor->advanceBy(2); |
|
| 37 | 84 | $node = new Text('![', ['delim' => true]); |
|
| 38 | 84 | $inlineContext->getContainer()->appendChild($node); |
|
| 39 | |||
| 40 | // Add entry to stack for this opener |
||
| 41 | 84 | $delimiter = new Delimiter('!', 1, $node, true, false, $cursor->getPosition()); |
|
| 42 | 84 | $inlineContext->getDelimiterStack()->push($delimiter); |
|
| 43 | |||
| 44 | 84 | return true; |
|
| 45 | } |
||
| 47 |