| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getCMSFields() |
||
| 20 | { |
||
| 21 | $fields = parent::getCMSFields(); |
||
| 22 | $fieldLabels = $this->Config()->get("field_labels"); |
||
| 23 | $fields->replaceField( |
||
| 24 | "CountryCode", |
||
| 25 | new DropDownField( |
||
| 26 | "CountryCode", |
||
| 27 | $fieldLabels["CountryCode"], |
||
| 28 | EcommerceCountry::get_country_dropdown() |
||
| 29 | ) |
||
| 30 | ); |
||
| 31 | return $fields; |
||
| 32 | } |
||
| 33 | |||
| 43 |
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.