Completed
Push — master ( d844ef...ce40ae )
by Will
13s
created

FileBlock::getCMSFields()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 15
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 24
rs 8.9713
1
<?php
2
3
namespace SilverStripe\ElementalBlocks;
4
5
use DNADesign\Elemental\Models\BaseElement;
6
use SilverStripe\Assets\File;
7
8
class FileBlock extends BaseElement
9
{
10
    private static $has_one = [
0 ignored issues
show
Unused Code introduced by
The property $has_one is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
11
        'File' => File::class,
12
    ];
13
14
    private static $owns = [
0 ignored issues
show
Unused Code introduced by
The property $owns is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
15
        'File',
16
    ];
17
18
    private static $singular_name = 'file';
0 ignored issues
show
Unused Code introduced by
The property $singular_name is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
19
20
    private static $plural_name = 'files';
0 ignored issues
show
Unused Code introduced by
The property $plural_name is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
21
22
    public function getType()
23
    {
24
        return _t(__CLASS__ . '.BlockType', 'File');
25
    }
26
}
27