diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-07-24 12:52:57 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-07-24 12:52:57 +0300 |
commit | acf4dc53bb1a3ebb401e0161be3a7862245b8c32 (patch) | |
tree | 02eccc04bd8c22e421418deceb5b285264147ff2 /lib/Controller/AliasesController.php | |
parent | 74c460ba6881462a5a92a97204de264113bcbda5 (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.php | 9 |
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); } } |