1 | <?php |
||
8 | 12 | class CustomerServiceBlock extends Block |
|
9 | { |
||
10 | 12 | /** |
|
11 | * @return string |
||
12 | */ |
||
13 | public function singular_name() |
||
17 | |||
18 | 1 | /** |
|
19 | * @return string |
||
20 | */ |
||
21 | public function plural_name() |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private static $db = array( |
||
30 | 'Title' => 'Varchar(255)', |
||
31 | 'Website' => 'Varchar(255)', |
||
32 | 'Phone' => 'Varchar(40)', |
||
33 | 'Email' => 'Varchar(255)', |
||
34 | 1 | ); |
|
35 | |||
36 | 1 | /** |
|
37 | * @return FieldList |
||
38 | 1 | */ |
|
39 | public function getCMSFields() |
||
60 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.