summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appinfo/routes.php2
-rw-r--r--lib/Controller/ApiController.php2
-rw-r--r--lib/Controller/ApiV2ResponseTrait.php13
-rw-r--r--lib/Controller/FolderApiV2Controller.php1
-rw-r--r--lib/Db/Feed.php3
-rw-r--r--lib/Db/Folder.php3
-rw-r--r--lib/Db/FolderMapperV2.php2
-rw-r--r--lib/Db/IAPI.php2
-rw-r--r--lib/Db/Item.php2
-rw-r--r--lib/Service/FolderServiceV2.php2
-rw-r--r--tests/Unit/Controller/FolderApiV2ControllerTest.php9
11 files changed, 29 insertions, 12 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 6e565088f..139d4b2db 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
return ['routes' => [
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 <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @author David Guillot <david@guillot.me>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @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 @@
<?php
+/**
+ * Nextcloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Paul Tirk <paultirk@paultirk.com>
+ * @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);
}
}
-
}
diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php
index 008390e2b..137416563 100644
--- a/lib/Db/Feed.php
+++ b/lib/Db/Feed.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Db;
@@ -683,5 +685,4 @@ class Feed extends Entity implements IAPI, \JsonSerializable
return $result;
}
-
}
diff --git a/lib/Db/Folder.php b/lib/Db/Folder.php
index 1845d8e82..4e3cdeaf1 100644
--- a/lib/Db/Folder.php
+++ b/lib/Db/Folder.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Db;
@@ -177,5 +179,4 @@ class Folder extends Entity implements IAPI, \JsonSerializable
{
return $this->toAPI();
}
-
}
diff --git a/lib/Db/FolderMapperV2.php b/lib/Db/FolderMapperV2.php
index 3b71460e4..7afce8c75 100644
--- a/lib/Db/FolderMapperV2.php
+++ b/lib/Db/FolderMapperV2.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Db;
diff --git a/lib/Db/IAPI.php b/lib/Db/IAPI.php
index 58897e9d3..120d5551c 100644
--- a/lib/Db/IAPI.php
+++ b/lib/Db/IAPI.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Db;
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index 6e09fde31..9fae011f1 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Db;
diff --git a/lib/Service/FolderServiceV2.php b/lib/Service/FolderServiceV2.php
index 827ca4bfb..c0439af48 100644
--- a/lib/Service/FolderServiceV2.php
+++ b/lib/Service/FolderServiceV2.php
@@ -7,8 +7,10 @@
*
* @author Alessandro Cosentino <cosenal@gmail.com>
* @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @author Paul Tirk <paultirk@paultirk.com>
* @copyright 2012 Alessandro Cosentino
* @copyright 2012-2014 Bernhard Posselt
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Service;
diff --git a/tests/Unit/Controller/FolderApiV2ControllerTest.php b/tests/Unit/Controller/FolderApiV2ControllerTest.php
index 10c18040c..06b11c099 100644
--- a/tests/Unit/Controller/FolderApiV2ControllerTest.php
+++ b/tests/Unit/Controller/FolderApiV2ControllerTest.php
@@ -5,12 +5,8 @@
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
- * @author Alessandro Cosentino <cosenal@gmail.com>
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @author David Guillot <david@guillot.me>
- * @copyright 2012 Alessandro Cosentino
- * @copyright 2012-2014 Bernhard Posselt
- * @copyright 2018 David Guillot
+ * @author Paul Tirk <paultirk@paultirk.com>
+ * @copyright 2020 Paul Tirk
*/
namespace OCA\News\Tests\Unit\Controller;
@@ -31,7 +27,6 @@ use OCP\IUserSession;
use PHPUnit\Framework\TestCase;
-
class FolderApiV2ControllerTest extends TestCase
{