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