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/UtilityApiController.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Controller/UtilityApiController.php')
-rw-r--r-- | lib/Controller/UtilityApiController.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Controller/UtilityApiController.php b/lib/Controller/UtilityApiController.php index f88230c3b..ee9ca0900 100644 --- a/lib/Controller/UtilityApiController.php +++ b/lib/Controller/UtilityApiController.php @@ -23,7 +23,6 @@ use \OCP\AppFramework\Http; use \OCA\News\Utility\Updater; use \OCA\News\Service\StatusService; - class UtilityApiController extends ApiController { @@ -31,7 +30,8 @@ class UtilityApiController extends ApiController private $settings; private $statusService; - public function __construct($appName, + public function __construct( + $appName, IRequest $request, IUserSession $userSession, Updater $updater, @@ -50,7 +50,7 @@ class UtilityApiController extends ApiController * @NoCSRFRequired * @CORS */ - public function version() + public function version() { $version = $this->settings->getAppValue( $this->appName, @@ -64,7 +64,7 @@ class UtilityApiController extends ApiController * @NoCSRFRequired * @CORS */ - public function beforeUpdate() + public function beforeUpdate() { $this->updater->beforeUpdate(); } @@ -74,7 +74,7 @@ class UtilityApiController extends ApiController * @NoCSRFRequired * @CORS */ - public function afterUpdate() + public function afterUpdate() { $this->updater->afterUpdate(); } @@ -85,10 +85,8 @@ class UtilityApiController extends ApiController * @NoCSRFRequired * @NoAdminRequired */ - public function status() + public function status() { return $this->statusService->getStatus(); } - - } |