| Total Complexity | 9 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FolderExtension extends DataExtension implements TestOnly |
||
| 9 | { |
||
| 10 | public function canView($member = null, $context = array()) |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | public function canEdit($member = null, $context = array()) |
||
| 18 | { |
||
| 19 | if ($this->owner->Name === 'disallowCanEdit') { |
||
| 20 | return false; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | public function canDelete($member = null, $context = array()) |
||
| 25 | { |
||
| 26 | if ($this->owner->Name === 'disallowCanDelete') { |
||
| 27 | return false; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | public function canCreate($member = null, $context = array()) |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.