Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function __invoke( |
||
27 | string $resourceClass, |
||
28 | string $operation, |
||
29 | array $groups, |
||
30 | int $recursion, |
||
31 | OpenApiSchemaGenerator $generator |
||
32 | ): ?Schema { |
||
33 | if ($recursion > 0 && $operation === 'get') { |
||
34 | return SchemaFactory::createStringSchema( |
||
35 | 'path', |
||
36 | $this->connection->getExampleUrl($resourceClass), |
||
37 | true |
||
38 | ); |
||
39 | } |
||
40 | return $generator->createSchema($resourceClass, $operation, $groups); |
||
41 | } |
||
43 |
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