Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ElementContent extends BaseElement |
||
10 | { |
||
11 | private static $icon = 'dnadesign/silverstripe-elemental:images/content.svg'; |
||
|
|||
12 | |||
13 | private static $db = [ |
||
14 | 'HTML' => 'HTMLText' |
||
15 | ]; |
||
16 | |||
17 | private static $table_name = 'ElementContent'; |
||
18 | |||
19 | private static $singular_name = 'content block'; |
||
20 | |||
21 | private static $plural_name = 'content blocks'; |
||
22 | |||
23 | private static $description = 'HTML text block'; |
||
24 | |||
25 | public function getSummary() |
||
26 | { |
||
27 | return DBField::create_field('HTMLText', $this->HTML)->Summary(20); |
||
28 | } |
||
29 | |||
30 | public function getType() |
||
33 | } |
||
34 | } |
||
35 |
This check marks private properties in classes that are never used. Those properties can be removed.