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