summaryrefslogtreecommitdiffstats
path: root/lib/Command/Updater/AllFeeds.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/Updater/AllFeeds.php')
-rw-r--r--lib/Command/Updater/AllFeeds.php20
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' => []];