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