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