| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function init(Abstract_\FormField $field, Submittable $control) |
||
| 31 | { |
||
| 32 | $this->setField($field); |
||
| 33 | $this->setControl($control); |
||
| 34 | |||
| 35 | $this['P']['LABEL']->addChild($field->getHtmlTitle()); |
||
| 36 | $this['P']['LABEL']->setAttribute('for', $this->field->getHtmlId()); |
||
| 37 | |||
| 38 | $control->setAttribute('name', $field->getHtmlName()); |
||
| 39 | $control->setId($field->getHtmlId()); |
||
| 40 | $this['P']['CONTROL'] = $control; |
||
| 41 | |||
| 42 | $hook = $this->postInitHook; |
||
| 43 | $hook($this); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.