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