Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function createField($fieldName, $defaultValue = null) |
||
44 | { |
||
45 | $numericField = parent::createField($fieldName, $defaultValue); |
||
46 | |||
47 | if (!empty($this->Min)) { |
||
48 | $numericField->setAttribute('min', $this->Min); |
||
49 | } |
||
50 | |||
51 | if (!empty($this->Max)) { |
||
52 | $numericField->setAttribute('max', $this->Max); |
||
53 | } |
||
54 | |||
55 | return $numericField; |
||
56 | } |
||
57 | } |
||
58 |
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.