POIMapPage_Controller
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 3
ccs 0
cts 0
cp 0
1
<?php
2
3
class POIMapPage extends Page
4
{
5 1
    public function getCMSFields()
6
    {
7 1
        $fields = parent::getCMSFields();
8 1
        $fields->removeByName('Location');
9
10 1
        return $fields;
11
    }
12
}
13
14
class POIMapPage_Controller extends Page_Controller
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
15
{
16
}
17