| 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 | |||
| 19 | public function canDelete($member)  | 
            ||
| 23 | |||
| 24 | public function canPublish($member = null)  | 
            ||
| 28 | |||
| 29 | public function canUnpublish($member = null)  | 
            ||
| 33 | }  | 
            ||
| 34 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.