| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 72 | 422 | protected function run(): string |
|
| 73 | { |
||
| 74 | 422 | $content = $this->hasFormModelAndAttribute() |
|
| 75 | 342 | ? $this->content ?? $this->getAttributeHint() |
|
| 76 | 82 | : (string) $this->content; |
|
| 77 | |||
| 78 | 422 | return $content === '' |
|
| 79 | 367 | ? '' |
|
| 80 | 55 | : Html::tag($this->tag, $content, $this->tagAttributes) |
|
| 81 | 55 | ->encode($this->encode) |
|
| 82 | 422 | ->render(); |
|
| 83 | } |
||
| 85 |