Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function checkAccess( |
||
15 | ActiveRecordInterface $model, |
||
16 | array $params = [] |
||
17 | ) { |
||
18 | $this->controller->checkAccess($this->id, $model, $params); |
||
19 | if ($model->hasMethod('checkAccess')) { |
||
20 | $model->checkAccess($params); |
||
|
|||
21 | } |
||
22 | if (isset($this->checkAccess)) { |
||
23 | call_user_func($this->checkAccess, $this, $model, $params); |
||
24 | } |
||
25 | } |
||
26 | } |
||
27 |
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.