LocationFormPageExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A SetLocationForm() 0 3 1
1
<?php
2
3
namespace SilverShop\Extension;
4
5
use SilverShop\Forms\SetLocationForm;
6
use SilverStripe\Core\Extension;
7
8
class LocationFormPageExtension extends Extension
9
{
10
    private static $allowed_actions = [
0 ignored issues
show
introduced by
The private property $allowed_actions is not used, and could be removed.
Loading history...
11
        'SetLocationForm',
12
    ];
13
14
    public function SetLocationForm()
15
    {
16
        return SetLocationForm::create($this->owner);
17
    }
18
}
19