From 06a45387ef36ec29fb0b80e6481db09911ad1935 Mon Sep 17 00:00:00 2001 From: Paul Tirk Date: Sun, 27 Dec 2020 18:47:22 +0000 Subject: lint & add missing copyright/author information Signed-off-by: Paul Tirk --- lib/Controller/ApiController.php | 2 ++ lib/Controller/ApiV2ResponseTrait.php | 13 +++++++++++-- lib/Controller/FolderApiV2Controller.php | 1 - 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'lib/Controller') diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 71168b598..35924c261 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -8,9 +8,11 @@ * @author Alessandro Cosentino * @author Bernhard Posselt * @author David Guillot + * @author Paul Tirk * @copyright 2012 Alessandro Cosentino * @copyright 2012-2014 Bernhard Posselt * @copyright 2018 David Guillot + * @copyright 2020 Paul Tirk */ namespace OCA\News\Controller; diff --git a/lib/Controller/ApiV2ResponseTrait.php b/lib/Controller/ApiV2ResponseTrait.php index 8f0ff5866..2a8ed18ab 100644 --- a/lib/Controller/ApiV2ResponseTrait.php +++ b/lib/Controller/ApiV2ResponseTrait.php @@ -1,5 +1,15 @@ + * @copyright 2020 Paul Tirk + */ + namespace OCA\News\Controller; use \OCP\AppFramework\Http; @@ -36,7 +46,7 @@ trait ApiV2ResponseTrait return $return; } - public function response($data, $code=Http::STATUS_OK) + public function response($data, $code = Http::STATUS_OK) { return new JSONResponse($data, $code); } @@ -55,5 +65,4 @@ trait ApiV2ResponseTrait ] ], $code); } - } diff --git a/lib/Controller/FolderApiV2Controller.php b/lib/Controller/FolderApiV2Controller.php index ea788c686..4f98c0902 100644 --- a/lib/Controller/FolderApiV2Controller.php +++ b/lib/Controller/FolderApiV2Controller.php @@ -126,5 +126,4 @@ class FolderApiV2Controller extends ApiController return $this->errorResponse($ex, Http::STATUS_NOT_FOUND); } } - } -- cgit v1.2.3