| 1 | <?php | ||
| 11 | class ApiController extends AuthAdminController | ||
| 12 | { | ||
| 13 | const PSFS_DOC = 'psfs'; | ||
| 14 | const SWAGGER_DOC = 'swagger'; | ||
| 15 | const POSTMAN_DOC = 'postman'; | ||
| 16 | const HTML_DOC = 'html'; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @Inyectable | ||
| 20 | * @var \PSFS\services\DocumentorService $srv | ||
| 21 | */ | ||
| 22 | protected $srv; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @GET | ||
| 26 | * @route /admin/api/docs | ||
| 27 | * @label Documentación api | ||
| 28 | * @return string HTML | ||
|  | |||
| 29 | */ | ||
| 30 |     public function documentorHome() { | ||
| 42 | } | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.