| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 2 | class Nip_Form_Renderer_Button_Input extends Nip_Form_Renderer_Button_Abstract |
||
|
|
|||
| 3 | { |
||
| 4 | public function generateItem() |
||
| 5 | { |
||
| 6 | $this->getItem()->setValue($this->getItem()->getLabel()); |
||
| 7 | $return = '<input ' . $this->renderAttributes() . ' />'; |
||
| 8 | return $return; |
||
| 9 | } |
||
| 10 | |||
| 11 | public function getItemAttribs() |
||
| 17 | } |
||
| 18 | } |
||
| 19 |
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.