Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
65 | public function getDeleteLink() |
||
66 | { |
||
67 | if ($this->owner->getListingPage()->hasMethod('Link') && $this->owner->canDelete(Security::getCurrentUser())) { |
||
68 | $field = ($this->owner->config()->get('query_field')) |
||
69 | ? $this->owner->config()->get('query_field') |
||
70 | : 'ID'; |
||
71 | |||
72 | return Controller::join_links($this->owner->getListingPage()->Link('delete'), $this->owner->$field); |
||
73 | } |
||
74 | |||
75 | return false; |
||
76 | } |
||
79 |
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.