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