Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-07-24 12:52:57 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-07-24 12:52:57 +0300
commitacf4dc53bb1a3ebb401e0161be3a7862245b8c32 (patch)
tree02eccc04bd8c22e421418deceb5b285264147ff2 /lib/Controller/AliasesController.php
parent74c460ba6881462a5a92a97204de264113bcbda5 (diff)
Make AliasesController strict
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/AliasesController.php')
-rw-r--r--lib/Controller/AliasesController.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Controller/AliasesController.php b/lib/Controller/AliasesController.php
index c51beab9a..ac9a4ca1b 100644
--- a/lib/Controller/AliasesController.php
+++ b/lib/Controller/AliasesController.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @author Tahaa Karim <tahaalibra@gmail.com>
*
@@ -57,7 +60,7 @@ class AliasesController extends Controller {
* @param int $accountId
* @return JSONResponse
*/
- public function index($accountId) {
+ public function index($accountId): JSONResponse {
return new JSONResponse($this->aliasService->findAll($accountId, $this->currentUser->getUID()));
}
@@ -84,7 +87,7 @@ class AliasesController extends Controller {
* @param int $id
* @return JSONResponse
*/
- public function destroy($id) {
+ public function destroy($id): JSONResponse {
return new JSONResponse($this->aliasService->delete($id, $this->currentUser->getUID()));
}
@@ -97,7 +100,7 @@ class AliasesController extends Controller {
* @param string $aliasName
* @return JSONResponse
*/
- public function create($accountId, $alias, $aliasName) {
+ public function create($accountId, $alias, $aliasName): JSONResponse {
return new JSONResponse($this->aliasService->create($accountId, $alias, $aliasName), Http::STATUS_CREATED);
}
}