| Conditions | 4 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function render(FormInterface $form, $parameter = array()) |
||
|
|
|||
| 32 | { |
||
| 33 | if (method_exists($form, 'prepare')) { |
||
| 34 | $form->prepare(); |
||
| 35 | } |
||
| 36 | $formContent = ''; |
||
| 37 | foreach ($form as $element) { |
||
| 38 | if ($element instanceof FieldsetInterface) { |
||
| 39 | $formContent.= $this->getView()->formCollection($element); |
||
| 40 | } else { |
||
| 41 | $formContent.= $this->getView()->formRowSimple($element); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return $this->openTag($form) . $formContent . $this->closeTag(); |
||
| 46 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.