Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
1 | <?php |
||
18 | public function getCMSFields() |
||
19 | { |
||
20 | $fields = parent::getCMSFields(); |
||
21 | $fields->addFieldToTab('Root.Image', new UploadField('MainImage')); |
||
22 | $fields->addFieldToTab('Root.Layout', new CheckboxField('LinkToIndividualStaffPages', 'If biographies are short, leave this as false to only show a single page of staff')); |
||
23 | |||
24 | return $fields; |
||
25 | } |
||
26 | |||
64 |
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.