diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Controller/ApiController.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r-- | lib/Controller/ApiController.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index d2a787a28..68caf9236 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -40,7 +40,8 @@ class ApiController extends BaseApiController * @param IRequest $request The request * @param IUserSession $userSession The user session */ - public function __construct($appName, IRequest $request, IUserSession $userSession) { + public function __construct($appName, IRequest $request, IUserSession $userSession) + { parent::__construct($appName, $request); $this->userSession = $userSession; } @@ -48,14 +49,16 @@ class ApiController extends BaseApiController /** * @return IUser */ - protected function getUser() { + protected function getUser() + { return $this->userSession->getUser(); } /** * @return string */ - protected function getUserId() { + protected function getUserId() + { return $this->getUser()->getUID(); } @@ -74,5 +77,4 @@ class ApiController extends BaseApiController 'apiLevels' => ['v1-2'] ]; } - } |