| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1828 | public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart |
|
| 24 | { |
||
| 25 | 1828 | if ($cursor->isIndented()) { |
|
| 26 | 142 | return BlockStart::none(); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1770 | if ($cursor->getNextNonSpaceCharacter() !== '>') { |
|
| 30 | 1724 | return BlockStart::none(); |
|
| 31 | } |
||
| 32 | |||
| 33 | 112 | $cursor->advanceToNextNonSpaceOrTab(); |
|
| 34 | 112 | $cursor->advanceBy(1); |
|
| 35 | 112 | $cursor->advanceBySpaceOrTab(); |
|
| 36 | |||
| 37 | 112 | return BlockStart::of(new BlockQuoteParser())->at($cursor); |
|
| 38 | } |
||
| 40 |