| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function render() |
||
| 29 | { |
||
| 30 | $return = '<fieldset' . $this->renderAttributes() . '>'; |
||
| 31 | $return .= '<legend>' . $this->getGroup()->getLegend() . '</legend>'; |
||
| 32 | |||
| 33 | if (count($this->getGroup())) { |
||
| 34 | $renderer = clone $this->getGroup()->getForm()->getRenderer(); |
||
| 35 | $renderer->setElements($this->getGroup()->toArray()); |
||
| 36 | $return .= $renderer->renderElements(); |
||
| 37 | } |
||
| 38 | $return .= '</fieldset>'; |
||
| 39 | return $return; |
||
| 40 | } |
||
| 63 |