summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r--lib/Controller/ApiController.php10
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']
];
}
-
}