| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 38 | public function createField($fieldName, $defaultValue = null)  | 
            ||
| 39 |     { | 
            ||
| 40 | $dateField = DateField::create($fieldName, $this->Title, $defaultValue);  | 
            ||
| 41 | |||
| 42 |         if ($this->MinDate) { | 
            ||
| 43 |             $dateField->setConfig('min', $this->dbObject('MinDate')->Format('Y-m-d')); | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 |         if ($this->MaxDate) { | 
            ||
| 47 |             $dateField->setConfig('max', $this->dbObject('MaxDate')->Format('Y-m-d')); | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | return $dateField;  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 | 
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.