From 9cdb0e2cfa0987c38b408f5a287985215274b886 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Tue, 30 Apr 2024 13:45:57 +0200 Subject: [PATCH] fix: rest provider types --- src/QUI/Menu/Rest/Provider.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/QUI/Menu/Rest/Provider.php b/src/QUI/Menu/Rest/Provider.php index dd66fca..242af21 100644 --- a/src/QUI/Menu/Rest/Provider.php +++ b/src/QUI/Menu/Rest/Provider.php @@ -29,7 +29,7 @@ class Provider implements ProviderInterface * * @param Server $Server */ - public function register(Server $Server) + public function register(Server $Server): void { $Slim = $Server->getSlim(); @@ -158,12 +158,9 @@ public function create(RequestInterface $Request, ResponseInterface $Response): return Handler::getGenericExceptionResponse($Exception); } - return Handler::getGenericSuccessResponse( - 'Menu created.', - [ - 'id' => $newMenuId - ] - ); + return Handler::getGenericSuccessResponse('Menu created.', [ + 'id' => $newMenuId + ]); } /** @@ -318,11 +315,11 @@ public function delete(RequestInterface $Request, ResponseInterface $Response): } /** - * Get file containting OpenApi definition for this API. + * Get file containing OpenApi definition for this API. * * @return string|false - Absolute file path or false if no definition exists */ - public function getOpenApiDefinitionFile() + public function getOpenApiDefinitionFile(): bool|string { return false; } -- GitLab