| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class SimplePhpBaselineStorage implements BaselineStorageInterface |
||
| 10 | { |
||
| 11 | private string $path; |
||
| 12 | private array $baselineData = []; |
||
| 13 | |||
| 14 | public function init(string $path): void |
||
| 15 | { |
||
| 16 | $this->path = $path; |
||
| 17 | if (!file_exists($path)) { |
||
| 18 | file_put_contents($path, "<?php return [];"); |
||
| 19 | } |
||
| 20 | $this->baselineData = include $path; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function setComments(array $comments): void |
||
| 32 | } |
||
| 33 | |||
| 34 | public function filterComments(array $comments): array |
||
| 42 |
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