| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 14 | public function getCMSFields() { |
||
| 15 | $fields = parent::getCMSFields(); |
||
| 16 | $fields->renameField('Name', _t('ContactPageMessage.NAME', 'Name')); |
||
| 17 | $fields->renameField('Email', _t('ContactPageMessage.EMAIL', 'Email')); |
||
| 18 | $fields->renameField('Comments', _t('ContactPageMessage.COMMENTS', 'Comments')); |
||
| 19 | $fields->renameField('RepliedTo', _t('ContactPageMessage.REPLIED_TO', 'Replied To')); |
||
| 20 | return $fields; |
||
| 21 | } |
||
| 22 | |||
| 25 |
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.