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/Cron | |
parent | f3c9d13551cef5968baea99c2f25085baee0ed5f (diff) |
Core: Fix compatibility with nextcloud codestyle (#280)
Diffstat (limited to 'lib/Cron')
-rw-r--r-- | lib/Cron/Updater.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/Cron/Updater.php b/lib/Cron/Updater.php index b26b11b45..5247ea6f5 100644 --- a/lib/Cron/Updater.php +++ b/lib/Cron/Updater.php @@ -6,7 +6,7 @@ * later. See the COPYING file. * * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Bernhard Posselt 2012, 2014 + * @copyright 2012-2014 Bernhard Posselt */ namespace OCA\News\Cron; @@ -17,7 +17,8 @@ use OCA\News\Config\Config; use OCA\News\Service\StatusService; use OCA\News\Utility\Updater as UpdaterService; -class Updater extends Job { +class Updater extends Job +{ /** * @var Config @@ -33,15 +34,18 @@ class Updater extends Job { private $updaterService; public function __construct(Config $config, StatusService $status, - UpdaterService $updaterService) { + UpdaterService $updaterService + ) { $this->config = $config; $this->status = $status; $this->updaterService = $updaterService; } - protected function run($argument) { - if ($this->config->getUseCronUpdates() && - $this->status->isProperlyConfigured()) { + protected function run($argument) + { + if ($this->config->getUseCronUpdates() + && $this->status->isProperlyConfigured() + ) { $this->updaterService->beforeUpdate(); $this->updaterService->update(); $this->updaterService->afterUpdate(); |