| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getEditLink() |
||
| 50 | { |
||
| 51 | if ($this->owner->getListingPage()->hasMethod('Link') && $this->owner->canEdit(Security::getCurrentUser())) { |
||
| 52 | $field = ($this->owner->config()->get('query_field')) |
||
| 53 | ? $this->owner->config()->get('query_field') |
||
| 54 | : 'ID'; |
||
| 55 | |||
| 56 | return Controller::join_links($this->owner->getListingPage()->Link('edit'), $this->owner->$field); |
||
| 57 | } |
||
| 58 | |||
| 59 | return false; |
||
| 60 | } |
||
| 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.