Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
102 | public function renderHtmlMarkup(): string |
||
103 | { |
||
104 | $html = ''; |
||
105 | |||
106 | foreach ($this->getItemsToRender() as $item => $label) { |
||
107 | |||
108 | $radio = (new Radio()) |
||
109 | ->setChecked($this->isItemSelected($item)) |
||
110 | ->setValue($item) |
||
111 | ->setName($this->name) |
||
112 | ->setClasslist(explode(' ', $this->classlist->parse())); |
||
113 | |||
114 | $html .= $this->createLabel($radio . $label, $this->labelOptions); |
||
115 | |||
116 | $html .= !$this->isInline ? '<br>' : ''; |
||
117 | } |
||
118 | |||
119 | return $html; |
||
120 | } |
||
122 |