diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-01-28 22:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-28 22:32:49 +0100 |
commit | 9cd871983a368752d122a73da244606bdeba312f (patch) | |
tree | d1882e1e677d7cee12926e5688ccfbfd31a505f5 /lib/Controller/UtilityApiController.php | |
parent | 31b2f194af74bdba60bdd2640e5fc47340157795 (diff) | |
parent | becce6b7520912257c3d72697a3aefec9923a467 (diff) |
Merge pull request #382 from SMillerDev/codestyle_psr2
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(); } - - } |