| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | private function fakeResponse(string $schemaFile): array |
||
| 37 | { |
||
| 38 | if (! class_exists(Faker::class)) { |
||
| 39 | throw new LogicException('"koriym/json-schema-faker" not installed. Please run "composer require koriym/json-schema-faker --dev". See more at https://github.com/bearsunday/BEAR.Resource/wiki/json_schema_faker_required'); // @codeCoverageIgnore |
||
| 40 | } |
||
| 41 | |||
| 42 | /** @var Body $fakeObject */ |
||
| 43 | $fakeObject = (new Faker())->generate(new SplFileInfo($schemaFile)); |
||
| 44 | |||
| 45 | return $this->deepArray($fakeObject); |
||
| 46 | } |
||
| 64 |
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