| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 14 | public function updateCMSFields(FieldList $fields)  | 
            ||
| 15 |     { | 
            ||
| 16 | $tags = $this->getAllTagsMap();  | 
            ||
| 17 |         $tagField = ListboxField::create('Tags', _t('DMSDocumentTaxonomyExtension.TAGS', 'Tags')) | 
            ||
| 18 | ->setMultiple(true)  | 
            ||
| 19 | ->setSource($tags);  | 
            ||
| 20 | |||
| 21 |         if (empty($tags)) { | 
            ||
| 22 |             $tagField->setAttribute('data-placeholder', _t('DMSDocumentTaxonomyExtension.NOTAGS', 'No tags found')); | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 |         $fields->insertAfter('Description', $tagField); | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 56 | 
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.