| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ElementContent extends BaseElement |
||
| 10 | { |
||
| 11 | private static $icon = 'font-icon-block-content'; |
||
|
|
|||
| 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 | /** |
||
| 26 | * Re-title the HTML field to Content |
||
| 27 | * |
||
| 28 | * {@inheritDoc} |
||
| 29 | */ |
||
| 30 | public function getCMSFields() |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getSummary() |
||
| 41 | { |
||
| 42 | return DBField::create_field('HTMLText', $this->HTML)->Summary(20); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getType() |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
This check marks private properties in classes that are never used. Those properties can be removed.