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