| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 3 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
| 33 | { |
||
| 34 | /** @var AccountingDocument $instance */ |
||
| 35 | 3 | $instance = $resource->getInstance(); |
|
| 36 | 3 | $expenseClaim = $instance->getExpenseClaim(); |
|
| 37 | |||
| 38 | 3 | if (!$expenseClaim) { |
|
| 39 | return true; |
||
| 40 | } |
||
| 41 | |||
| 42 | 3 | $assertion = new StatusIsNew(); |
|
| 43 | |||
| 44 | 3 | return $assertion->assert($acl, $role, new ModelResource(ExpenseClaim::class, $expenseClaim), $privilege); |
|
| 45 | } |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths