| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | #[OA\Get( |
||
| 25 | path: '/api/info/v2', |
||
| 26 | description: '', |
||
| 27 | summary: 'Returns info about the API', |
||
| 28 | responses: [ |
||
| 29 | new OA\Response( |
||
| 30 | response:'200', |
||
| 31 | description:'Success', |
||
| 32 | content: new OA\JsonContent( |
||
| 33 | allOf: [ |
||
| 34 | new OA\Schema(ref: '#/components/schemas/Response'), |
||
| 35 | new OA\Schema(properties: [ |
||
| 36 | new OA\Property(property: 'data', properties: [ |
||
| 37 | new OA\Property(property: 'version', type: 'string', example: '2.0'), |
||
| 38 | new OA\Property(property: 'author', type: 'string', example: 'yiisoft'), |
||
| 39 | ], type: 'object'), |
||
| 40 | ]), |
||
| 41 | ] |
||
| 42 | ), |
||
| 43 | ), |
||
| 44 | ] |
||
| 45 | )] |
||
| 46 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 47 | { |
||
| 48 | return $this->responseFactory->createResponse(['version' => '2.0', 'author' => 'yiisoft']); |
||
| 49 | } |
||
| 51 |
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