| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 5 | public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null) |
|
| 27 | { |
||
| 28 | 5 | $object = $resource->getInstance()->getExpenseClaim(); |
|
| 29 | 5 | $assertion = new StatusIsNew(); |
|
| 30 | |||
| 31 | 5 | return $assertion->assert($acl, $role, new ModelResource(ExpenseClaim::class, $object), $privilege); |
|
| 32 | } |
||
| 34 |
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.