| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 2106 | public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart |
|
| 22 | { |
||
| 23 | 2106 | if ($cursor->isIndented()) { |
|
| 24 | 183 | return BlockStart::none(); |
|
| 25 | } |
||
| 26 | |||
| 27 | 2022 | if ($cursor->getNextNonSpaceCharacter() !== '>') { |
|
| 28 | 1959 | return BlockStart::none(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 147 | $cursor->advanceToNextNonSpaceOrTab(); |
|
| 32 | 147 | $cursor->advanceBy(1); |
|
| 33 | 147 | $cursor->advanceBySpaceOrTab(); |
|
| 34 | |||
| 35 | 147 | return BlockStart::of(new BlockQuoteParser())->at($cursor); |
|
| 36 | } |
||
| 37 | } |
||
| 38 |