diff options
author | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
---|---|---|
committer | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
commit | 5b94705cf3918dc7986c6043b1fbe776bf22958f (patch) | |
tree | 4e8059818a0a913d24938e35238913a721fa6373 /lib/Controller/ApiController.php | |
parent | f3c9d13551cef5968baea99c2f25085baee0ed5f (diff) |
Core: Fix compatibility with nextcloud codestyle (#280)
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r-- | lib/Controller/ApiController.php | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index d16c6438d..f5052b49a 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -7,8 +7,8 @@ * * @author Alessandro Cosentino <cosenal@gmail.com> * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 + * @copyright 2012 Alessandro Cosentino + * @copyright 2012-2014 Bernhard Posselt */ namespace OCA\News\Controller; @@ -16,19 +16,35 @@ namespace OCA\News\Controller; use OCP\IRequest; use OCP\AppFramework\ApiController as BaseApiController; -class ApiController extends BaseApiController { - - public function __construct($appName, - IRequest $request){ +/** + * Class ApiController + * + * @package OCA\News\Controller + */ +class ApiController extends BaseApiController +{ + /** + * ApiController constructor. + * + * @param string $appName The name of the app + * @param IRequest $request The request + */ + public function __construct($appName, IRequest $request) + { parent::__construct($appName, $request); } /** + * Indication of the API levels + * * @PublicPage * @NoCSRFRequired * @CORS + * + * @return array */ - public function index() { + public function index() + { return [ 'apiLevels' => ['v1-2'] ]; |