| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function render() |
||
| 30 | { |
||
| 31 | $return = '<fieldset' . $this->renderAttributes() . '>'; |
||
| 32 | $return .= '<legend>' . $this->getGroup()->getLegend() . '</legend>'; |
||
| 33 | |||
| 34 | $renderer = clone $this->getGroup()->getForm()->getRenderer(); |
||
| 35 | $renderer->setElements($this->getGroup()->toArray()); |
||
| 36 | $return .= $renderer->renderElements(); |
||
| 37 | $return .= '</fieldset>'; |
||
| 38 | return $return; |
||
| 39 | } |
||
| 62 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.