summaryrefslogtreecommitdiffstats
path: root/lib/Command/Updater/AllFeeds.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-01-28 22:32:49 +0100
committerGitHub <noreply@github.com>2019-01-28 22:32:49 +0100
commit9cd871983a368752d122a73da244606bdeba312f (patch)
treed1882e1e677d7cee12926e5688ccfbfd31a505f5 /lib/Command/Updater/AllFeeds.php
parent31b2f194af74bdba60bdd2640e5fc47340157795 (diff)
parentbecce6b7520912257c3d72697a3aefec9923a467 (diff)
Merge pull request #382 from SMillerDev/codestyle_psr2
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Command/Updater/AllFeeds.php')
-rw-r--r--lib/Command/Updater/AllFeeds.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Command/Updater/AllFeeds.php b/lib/Command/Updater/AllFeeds.php
index 2337f7aa8..93ef4e59a 100644
--- a/lib/Command/Updater/AllFeeds.php
+++ b/lib/Command/Updater/AllFeeds.php
@@ -19,18 +19,17 @@ use Symfony\Component\Console\Output\OutputInterface;
use OCA\News\Service\FeedService;
-
class AllFeeds extends Command
{
private $feedService;
- public function __construct(FeedService $feedService)
+ public function __construct(FeedService $feedService)
{
parent::__construct();
$this->feedService = $feedService;
}
- protected function configure()
+ protected function configure()
{
$json = '{"feeds": [{"id": 39, "userId": "john"}, // etc ]}';
@@ -41,7 +40,7 @@ class AllFeeds extends Command
);
}
- protected function execute(InputInterface $input, OutputInterface $output)
+ protected function execute(InputInterface $input, OutputInterface $output)
{
$feeds = $this->feedService->findAllFromAllUsers();
$result = ['feeds' => []];
@@ -56,5 +55,4 @@ class AllFeeds extends Command
print(json_encode($result));
}
-
}