| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | #[OA\Get( |
||
| 19 | path: '/', |
||
| 20 | description: '', |
||
| 21 | summary: 'Returns info about the API', |
||
| 22 | responses: [ |
||
| 23 | new OA\Response( |
||
| 24 | response:'200', |
||
| 25 | description:'Success', |
||
| 26 | content: new OA\JsonContent( |
||
| 27 | allOf: [ |
||
| 28 | new OA\Schema(ref: '#/components/schemas/Response'), |
||
| 29 | new OA\Schema(properties: [ |
||
| 30 | new OA\Property(property: 'data', properties: [ |
||
| 31 | new OA\Property(property: 'version', type: 'string', example: '3.0'), |
||
| 32 | new OA\Property(property: 'author', type: 'string', example: 'yiisoft'), |
||
| 33 | ], type: 'object'), |
||
| 34 | ]), |
||
| 35 | ] |
||
| 36 | ), |
||
| 37 | ), |
||
| 38 | ] |
||
| 39 | )] |
||
| 40 | public function index(DataResponseFactoryInterface $responseFactory): ResponseInterface |
||
| 41 | { |
||
| 42 | return $responseFactory->createResponse(['version' => $this->versionProvider->version, 'author' => 'yiisoft']); |
||
| 43 | } |
||
| 45 |
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