SiteTreeBacklinksTest_DOD   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A updateCMSFields() 0 3 1
1
<?php
2
3
namespace SilverStripe\CMS\Tests\Model;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\Forms\FieldList;
7
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
8
use SilverStripe\ORM\DataExtension;
9
10
class SiteTreeBacklinksTest_DOD extends DataExtension implements TestOnly
11
{
12
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        'ExtraContent' => 'HTMLText',
14
    ];
15
16
    public function updateCMSFields(FieldList $fields)
17
    {
18
        $fields->addFieldToTab("Root.Content", new HTMLEditorField("ExtraContent"));
19
    }
20
}
21