Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | final class HeadingParser extends AbstractBlockContinueParser |
||
25 | { |
||
26 | /** |
||
27 | * @var Heading |
||
28 | * |
||
29 | * @psalm-readonly |
||
30 | */ |
||
31 | private $block; |
||
32 | |||
33 | /** @var string */ |
||
34 | private $content; |
||
35 | |||
36 | 207 | public function __construct(int $level, string $content) |
|
40 | 207 | } |
|
41 | |||
42 | 207 | public function getBlock(): AbstractBlock |
|
45 | } |
||
46 | |||
47 | 126 | public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue |
|
50 | } |
||
51 | |||
52 | 207 | public function parseInlines(InlineParserEngineInterface $inlineParser): void |
|
57 |
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.