Conditions | 3 |
Paths | 4 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
29 | 3 | public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, bool $inTightList = false) |
|
30 | { |
||
31 | 3 | $out = ''; |
|
32 | |||
33 | 3 | if ($block instanceof InlineContainerInterface) { |
|
34 | /** @var iterable<AbstractInline> $children */ |
||
|
|||
35 | 3 | $children = $block->children(); |
|
36 | 3 | $out .= $htmlRenderer->renderInlines($children); |
|
37 | } else { |
||
38 | /** @var iterable<AbstractBlock> $children */ |
||
39 | 3 | $children = $block->children(); |
|
40 | 3 | $out .= $htmlRenderer->renderBlocks($children); |
|
41 | } |
||
42 | |||
43 | 3 | if (!($block instanceof Document)) { |
|
44 | 3 | $out .= "\n"; |
|
45 | } |
||
46 | |||
47 | 3 | return $out; |
|
48 | } |
||
49 | } |
||
50 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.