| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 1 | public function getFormField() |
|
| 25 | { |
||
| 26 | 1 | $field = EmailField::create($this->Name, $this->EscapedTitle, $this->Default) |
|
| 27 | 1 | ->setFieldHolderTemplate('UserFormsField_holder') |
|
| 28 | 1 | ->setTemplate('UserFormsField'); |
|
| 29 | |||
| 30 | 1 | $this->doUpdateFormField($field); |
|
| 31 | |||
| 32 | 1 | return $field; |
|
| 33 | } |
||
| 34 | |||
| 47 |
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.