| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 3 | public function baseHtml(): string |
|
| 40 | { |
||
| 41 | 3 | $return = sprintf("<div id='%s'>", $this->getName()); |
|
| 42 | 3 | foreach ($this->getElements() as $data) { |
|
| 43 | // $data->setAttribute(AttributeFactory::create('placeholder', $data->getLabel())); |
||
| 44 | // $data->setLabel(null); |
||
| 45 | 3 | $return .= HtmlRenderer::createTypeRender($data)->render(); |
|
| 46 | } |
||
| 47 | 3 | $return .= '</div>'; |
|
| 48 | 3 | return $return; |
|
| 49 | } |
||
| 56 |