| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CacheCollector implements ModuleFederationProviderInterface |
||
| 12 | { |
||
| 13 | use CollectorTrait; |
||
| 14 | |||
| 15 | public array $set = []; |
||
| 16 | private array $get = []; |
||
| 17 | |||
| 18 | public function collectGet(string $key): void |
||
| 19 | { |
||
| 20 | $this->get[$key] = [ |
||
| 21 | 'key' => $key, |
||
| 22 | 'count' => ($this->get[$key]['count'] ?? 0) + 1, |
||
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function collectSet(string $key, mixed $value, DateInterval|int|null $ttl): void |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getCollected(): array |
||
| 37 | { |
||
| 38 | return [ |
||
| 39 | 'cache' => [ |
||
| 40 | 'get' => array_values($this->get), |
||
| 41 | 'set' => array_values($this->set), |
||
| 42 | ], |
||
| 43 | ]; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getIndexData(): array |
||
| 55 | ], |
||
| 56 | ], |
||
| 57 | ]; |
||
| 58 | } |
||
| 59 | |||
| 60 | public static function getViewPath(): string |
||
| 61 | { |
||
| 62 | return '@views/debug/index'; |
||
| 63 | } |
||
| 64 | |||
| 65 | public static function getAsset(): CacheCollectorAsset |
||
| 68 | } |
||
| 69 | } |
||
| 70 |
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