Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0417 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 75 | public function render(AbstractInline $inline, ElementRendererInterface $htmlRenderer) |
|
37 | { |
||
38 | 75 | if (!($inline instanceof HtmlInline)) { |
|
39 | 3 | throw new \InvalidArgumentException('Incompatible inline type: ' . get_class($inline)); |
|
40 | } |
||
41 | |||
42 | 72 | if ($this->config->getConfig('safe') === true) { |
|
43 | return ''; |
||
44 | } |
||
45 | |||
46 | 72 | return $inline->getContent(); |
|
47 | } |
||
48 | |||
57 |