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 | 2235 | public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart |
|
24 | { |
||
25 | 2235 | if ($cursor->isIndented()) { |
|
26 | 186 | return BlockStart::none(); |
|
1 ignored issue
–
show
|
|||
27 | } |
||
28 | |||
29 | 2151 | if ($cursor->getNextNonSpaceCharacter() !== '>') { |
|
30 | 2088 | return BlockStart::none(); |
|
1 ignored issue
–
show
|
|||
31 | } |
||
32 | |||
33 | 150 | $cursor->advanceToNextNonSpaceOrTab(); |
|
34 | 150 | $cursor->advanceBy(1); |
|
35 | 150 | $cursor->advanceBySpaceOrTab(); |
|
36 | |||
37 | 150 | return BlockStart::of(new BlockQuoteParser())->at($cursor); |
|
38 | } |
||
40 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.