for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DNADesign\Elemental\Models;
use SilverStripe\Forms\HTMLEditor\HtmlEditorField;
use SilverStripe\Forms\DropdownField;
use SilverStripe\ORM\FieldType\DBField;
class ElementContent extends BaseElement
{
private static $icon = 'dnadesign/silverstripe-elemental:images/content.svg';
$icon
This check marks private properties in classes that are never used. Those properties can be removed.
private static $db = [
$db
'HTML' => 'HTMLText'
];
private static $table_name = 'ElementContent';
$table_name
private static $singular_name = 'content block';
$singular_name
private static $plural_name = 'content blocks';
$plural_name
private static $description = 'HTML text block';
$description
public function getSummary()
return DBField::create_field('HTMLText', $this->HTML)->Summary(20);
HTML
DNADesign\Elemental\Models\ElementContent
__get
}
public function getType()
return _t(__CLASS__ . '.BlockType', 'Content');
This check marks private properties in classes that are never used. Those properties can be removed.