diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Command/Updater/AllFeeds.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Command/Updater/AllFeeds.php')
-rw-r--r-- | lib/Command/Updater/AllFeeds.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Command/Updater/AllFeeds.php b/lib/Command/Updater/AllFeeds.php index 8947c714e..21471379d 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' => []]; @@ -55,5 +54,4 @@ class AllFeeds extends Command print(json_encode($result)); } - } |