| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function rules() |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | ['identityId', 'required'], |
||
| 34 | ['identityId', 'integer'], |
||
| 35 | ['identityId', function ($attribute) { |
||
| 36 | if (!$this->user->hasLinkedIdentity($this->$attribute)) { |
||
|
|
|||
| 37 | $this->addError( |
||
| 38 | $attribute, |
||
| 39 | 'The current user does not have access to account ' . $this->$attribute |
||
| 40 | ); |
||
| 46 |
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.