| Total Complexity | 13 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FileExtension extends DataExtension implements TestOnly |
||
| 12 | { |
||
| 13 | public function canView($member = null) |
||
|
|
|||
| 14 | { |
||
| 15 | if ($this->owner->Name === 'disallowCanView.txt') { |
||
| 16 | return false; |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | public function canEdit($member = null) |
||
| 21 | { |
||
| 22 | if ($this->owner->Name === 'disallowCanEdit.txt') { |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | public function canDelete($member = null) |
||
| 28 | { |
||
| 29 | if ($this->owner->Name === 'disallowCanDelete.txt') { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | public function canArchive($member = null) |
||
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | public function canCreate($member = null, $context = []) |
||
| 50 | } |
||
| 51 | } |
||
| 53 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.