Conditions | 3 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
102 | private function createCache(): void |
||
103 | { |
||
104 | $rules = $this->getRulesFileContent(); |
||
105 | |||
106 | $major = 1; |
||
107 | $minor = 0; |
||
108 | |||
109 | do { |
||
110 | $version = constant("\\VGirol\\JsonApiConstant\\Versions::VERSION_{$major}_{$minor}"); |
||
111 | if (!\array_key_exists($version, $rules)) { |
||
112 | $minor = 0; |
||
113 | $major++; |
||
114 | } |
||
115 | |||
116 | $this->cache = \array_merge_recursive($this->cache, $rules[$version]); |
||
117 | $minor++; |
||
118 | } while ($version != $this->version); |
||
119 | } |
||
121 |
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