summaryrefslogtreecommitdiffstats
path: root/lib/Command/Config
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/Config')
-rw-r--r--lib/Command/Config/FeedAdd.php2
-rw-r--r--lib/Command/Config/FeedDelete.php7
-rw-r--r--lib/Command/Config/FeedList.php2
-rw-r--r--lib/Command/Config/FolderAdd.php4
-rw-r--r--lib/Command/Config/FolderDelete.php5
-rw-r--r--lib/Command/Config/FolderList.php3
-rw-r--r--lib/Command/Config/OpmlExport.php4
7 files changed, 16 insertions, 11 deletions
diff --git a/lib/Command/Config/FeedAdd.php b/lib/Command/Config/FeedAdd.php
index 86121ad06..4b4279267 100644
--- a/lib/Command/Config/FeedAdd.php
+++ b/lib/Command/Config/FeedAdd.php
@@ -32,6 +32,8 @@ class FeedAdd extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
diff --git a/lib/Command/Config/FeedDelete.php b/lib/Command/Config/FeedDelete.php
index fae1abdb2..6773a6525 100644
--- a/lib/Command/Config/FeedDelete.php
+++ b/lib/Command/Config/FeedDelete.php
@@ -2,13 +2,10 @@
namespace OCA\News\Command\Config;
-use OCA\News\Db\Feed;
use OCA\News\Service\FeedServiceV2;
-use OCA\News\Service\FolderServiceV2;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class FeedDelete extends Command
@@ -27,6 +24,8 @@ class FeedDelete extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
@@ -47,7 +46,7 @@ class FeedDelete extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$user = $input->getArgument('user-id');
- $id = $input->getArgument('feed-id');
+ $id = (int) $input->getArgument('feed-id');
$this->feedService->delete($user, $id);
diff --git a/lib/Command/Config/FeedList.php b/lib/Command/Config/FeedList.php
index 3462ff5c8..41beb1bfc 100644
--- a/lib/Command/Config/FeedList.php
+++ b/lib/Command/Config/FeedList.php
@@ -28,6 +28,8 @@ class FeedList extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
diff --git a/lib/Command/Config/FolderAdd.php b/lib/Command/Config/FolderAdd.php
index 03ad72535..503d63a31 100644
--- a/lib/Command/Config/FolderAdd.php
+++ b/lib/Command/Config/FolderAdd.php
@@ -2,8 +2,6 @@
namespace OCA\News\Command\Config;
-use OCA\News\Db\Feed;
-use OCA\News\Service\FeedServiceV2;
use OCA\News\Service\FolderServiceV2;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
@@ -27,6 +25,8 @@ class FolderAdd extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
diff --git a/lib/Command/Config/FolderDelete.php b/lib/Command/Config/FolderDelete.php
index 397eda999..a80875682 100644
--- a/lib/Command/Config/FolderDelete.php
+++ b/lib/Command/Config/FolderDelete.php
@@ -2,14 +2,11 @@
namespace OCA\News\Command\Config;
-use OCA\News\Db\Feed;
use OCA\News\Service\Exceptions\ServiceException;
-use OCA\News\Service\FeedServiceV2;
use OCA\News\Service\FolderServiceV2;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class FolderDelete extends Command
@@ -28,6 +25,8 @@ class FolderDelete extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
diff --git a/lib/Command/Config/FolderList.php b/lib/Command/Config/FolderList.php
index 6340f4d57..158747be5 100644
--- a/lib/Command/Config/FolderList.php
+++ b/lib/Command/Config/FolderList.php
@@ -3,7 +3,6 @@
namespace OCA\News\Command\Config;
use OCA\News\Controller\ApiPayloadTrait;
-use OCA\News\Service\FeedServiceV2;
use OCA\News\Service\FolderServiceV2;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
@@ -29,6 +28,8 @@ class FolderList extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
diff --git a/lib/Command/Config/OpmlExport.php b/lib/Command/Config/OpmlExport.php
index f51aed555..eec93ddbf 100644
--- a/lib/Command/Config/OpmlExport.php
+++ b/lib/Command/Config/OpmlExport.php
@@ -24,6 +24,8 @@ class OpmlExport extends Command
/**
* Configure command
+ *
+ * @return void
*/
protected function configure()
{
@@ -38,7 +40,7 @@ class OpmlExport extends Command
* @param InputInterface $input
* @param OutputInterface $output
*
- * @return int|void
+ * @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{