Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
32 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
33 | 3 | { |
|
34 | /** @var AccountingDocument $instance */ |
||
35 | $instance = $resource->getInstance(); |
||
36 | $expenseClaim = $instance->getExpenseClaim(); |
||
37 | 3 | ||
38 | if (!$expenseClaim) { |
||
39 | 3 | return true; |
|
40 | } |
||
41 | |||
42 | $assertion = new StatusIsNew(); |
||
43 | |||
44 | 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