| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 24 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
| 32 | { |
||
| 33 | /** @var HasSiteInterface $object */ |
||
| 34 | 24 | $object = $resource->getInstance(); |
|
| 35 | |||
| 36 | 24 | return User::getCurrent() && User::getCurrent()->getSite() === $object->getSite(); |
|
| 37 | } |
||
| 39 |
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.