diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index 149a2a63ba..219636fa71 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -120,7 +120,7 @@ public function downloadBinaries(): Response { } #[NoAdminRequired] - public function downloadStatus(): dataResponse { + public function downloadStatus(): DataResponse { $return = $this->installService->getTotalSize(); return new DataResponse($return); } diff --git a/lib/Controller/RequestSignatureController.php b/lib/Controller/RequestSignatureController.php index 33d5cf1db1..10e1230f31 100644 --- a/lib/Controller/RequestSignatureController.php +++ b/lib/Controller/RequestSignatureController.php @@ -52,17 +52,11 @@ public function __construct( * Request signature * * Request that a file be signed by a group of people - * - * @param array $file - * @param array $users - * @param string $name - * @param string|null $callback - * @return JSONResponse */ #[NoAdminRequired] #[NoCSRFRequired] #[RequireManager] - public function request(array $file, array $users, string $name, ?string $callback = null, ?int $status = 1) { + public function request(array $file, array $users, string $name, ?string $callback = null, ?int $status = 1): JSONResponse { $user = $this->userSession->getUser(); $data = [ 'file' => $file, @@ -96,15 +90,10 @@ public function request(array $file, array $users, string $name, ?string $callba ); } - /** - * @param string $uuid - * @param array $users - * @return JSONResponse - */ #[NoAdminRequired] #[NoCSRFRequired] #[RequireManager] - public function updateSign(?array $users = [], ?string $uuid = null, ?array $visibleElements = null, ?array $file = [], ?int $status = null) { + public function updateSign(?array $users = [], ?string $uuid = null, ?array $visibleElements = null, ?array $file = [], ?int $status = null): JSONResponse { $user = $this->userSession->getUser(); $data = [ 'uuid' => $uuid, @@ -145,7 +134,7 @@ public function updateSign(?array $users = [], ?string $uuid = null, ?array $vis #[NoAdminRequired] #[NoCSRFRequired] #[RequireManager] - public function deleteOneRequestSignatureUsingFileId(int $fileId, int $fileUserId) { + public function deleteOneRequestSignatureUsingFileId(int $fileId, int $fileUserId): JSONResponse { try { $data = [ 'userManager' => $this->userSession->getUser(), @@ -176,7 +165,7 @@ public function deleteOneRequestSignatureUsingFileId(int $fileId, int $fileUserI #[NoAdminRequired] #[NoCSRFRequired] #[RequireManager] - public function deleteAllRequestSignatureUsingFileId(int $fileId) { + public function deleteAllRequestSignatureUsingFileId(int $fileId): JSONResponse { try { $data = [ 'userManager' => $this->userSession->getUser(),