Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | 12 | public function match(array $payload): bool |
|
42 | { |
||
43 | 12 | $match = false; |
|
44 | |||
45 | /** @var mixed $value */ |
||
46 | 12 | foreach ($this->criteria as $key => $value) { |
|
47 | 10 | if (array_key_exists($key, $payload) && $value === $payload[$key]) { |
|
48 | 6 | $match = true; |
|
49 | 6 | continue; |
|
50 | } |
||
51 | |||
52 | 4 | return false; |
|
53 | } |
||
54 | |||
55 | 8 | return $match; |
|
56 | } |
||
72 |
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