Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
84 | 42 | protected function run(): string |
|
85 | { |
||
86 | 42 | if ($this->content !== null) { |
|
87 | 5 | $content = $this->content; |
|
88 | } else { |
||
89 | 37 | $content = $this->getAttributeHint(); |
|
90 | 36 | if ($content === '') { |
|
91 | 15 | return ''; |
|
92 | } |
||
93 | } |
||
94 | |||
95 | 26 | return Html::tag($this->tag, $content, $this->attributes) |
|
96 | 26 | ->encode($this->encode) |
|
97 | 26 | ->render(); |
|
98 | } |
||
100 |