Passed
Branch master (8d4084)
by Antony
03:09 queued 01:05
created

UnleashedExtension::updateCMSFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AntonyThorpe\SilvershopUnleashed\Extension;
4
5
use SilverStripe\Forms\FieldList;
6
use SilverStripe\ORM\DataExtension;
7
8
/**
9
 * Member, Product, ProductCategory, Order, OrderItem
10
 */
11
class UnleashedExtension extends DataExtension
12
{
13
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
14
        'Guid' => 'Varchar(64)'
15
    ];
16
17
    public function updateCMSFields(FieldList $fields)
18
    {
19
        $fields->removeByName('Guid');
20
    }
21
}
22