Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class FileExtension extends DataExtension implements TestOnly |
||
13 | { |
||
14 | // public flags to toggle permissions during tests |
||
15 | public static $canDelete = false; |
||
16 | public static $canPublish = true; |
||
17 | public static $canUnpublish = true; |
||
18 | public static $canEdit = true; |
||
19 | |||
20 | public function canDelete($member) |
||
21 | { |
||
22 | return self::$canDelete; |
||
23 | } |
||
24 | |||
25 | public function canPublish($member = null) |
||
|
|||
26 | { |
||
27 | return self::$canPublish; |
||
28 | } |
||
29 | |||
30 | public function canUnpublish($member = null) |
||
33 | } |
||
34 | |||
35 | public function canEdit($member = null) |
||
40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.