Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
53 | public function getCMSFields() |
||
54 | 1 | { |
|
55 | 1 | $fields = parent::getCMSFields(); |
|
56 | 1 | ||
57 | 1 | $fields->removeByName(array( |
|
58 | 'Sort', |
||
59 | 1 | 'AccordionID', |
|
60 | )); |
||
61 | 1 | ||
62 | $fields->addFieldToTab( |
||
63 | 'Root.Main', |
||
64 | ImageUploadField::create('Image') |
||
65 | ->setFolderName('Uploads/Elements/Accordions'), |
||
66 | 'Content' |
||
67 | 1 | ); |
|
68 | |||
69 | 1 | $fields->addFieldToTab( |
|
70 | 'Root.Main', |
||
71 | 1 | LinkField::create('BlockLinkID', 'Link'), |
|
72 | 1 | 'Image' |
|
73 | 1 | ); |
|
74 | |||
75 | 1 | return $fields; |
|
76 | } |
||
77 | |||
132 |
This check marks private properties in classes that are never used. Those properties can be removed.