diff options
author | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
---|---|---|
committer | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
commit | 5b94705cf3918dc7986c6043b1fbe776bf22958f (patch) | |
tree | 4e8059818a0a913d24938e35238913a721fa6373 /lib/Command/Updater/AllFeeds.php | |
parent | f3c9d13551cef5968baea99c2f25085baee0ed5f (diff) |
Core: Fix compatibility with nextcloud codestyle (#280)
Diffstat (limited to 'lib/Command/Updater/AllFeeds.php')
-rw-r--r-- | lib/Command/Updater/AllFeeds.php | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lib/Command/Updater/AllFeeds.php b/lib/Command/Updater/AllFeeds.php index 838ce1404..8947c714e 100644 --- a/lib/Command/Updater/AllFeeds.php +++ b/lib/Command/Updater/AllFeeds.php @@ -5,7 +5,7 @@ * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * - * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2016 */ @@ -20,23 +20,29 @@ use Symfony\Component\Console\Output\OutputInterface; use OCA\News\Service\FeedService; -class AllFeeds extends Command { +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 ]}'; $this->setName('news:updater:all-feeds') - ->setDescription('Prints a JSON string which contains all feed ' . - 'ids and user ids, e.g.: ' . $json); + ->setDescription( + 'Prints a JSON string which contains all feed ' . + 'ids and user ids, e.g.: ' . $json + ); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output) + { $feeds = $this->feedService->findAllFromAllUsers(); $result = ['feeds' => []]; |