Total Complexity | 8 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class DeleteAction extends Action |
||
18 | { |
||
19 | public $softDeleteAttribute = 'deleted_at'; |
||
20 | public $preventAjaxRedirect = false; |
||
21 | public $messageOnDelete = 'Model deleted'; |
||
22 | |||
23 | public function run($id) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param ActiveRecord $model |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function hasSoftDeleteError($model): bool |
||
51 | } |
||
52 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.