| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 39 | public function render(Node $node, ChildNodeRendererInterface $childRenderer) |
|
| 32 | { |
||
| 33 | 39 | if (! ($node instanceof DescriptionTerm)) { |
|
| 34 | 3 | throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node)); |
|
| 35 | } |
||
| 36 | |||
| 37 | 36 | return new HtmlElement('dt', [], $childRenderer->renderNodes($node->children())); |
|
| 38 | } |
||
| 40 |