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/Cron | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Cron')
-rw-r--r-- | lib/Cron/Updater.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Cron/Updater.php b/lib/Cron/Updater.php index 5247ea6f5..55afe0a38 100644 --- a/lib/Cron/Updater.php +++ b/lib/Cron/Updater.php @@ -33,7 +33,9 @@ class Updater extends Job */ private $updaterService; - public function __construct(Config $config, StatusService $status, + public function __construct( + Config $config, + StatusService $status, UpdaterService $updaterService ) { $this->config = $config; @@ -41,9 +43,9 @@ class Updater extends Job $this->updaterService = $updaterService; } - protected function run($argument) + protected function run($argument) { - if ($this->config->getUseCronUpdates() + if ($this->config->getUseCronUpdates() && $this->status->isProperlyConfigured() ) { $this->updaterService->beforeUpdate(); @@ -51,5 +53,4 @@ class Updater extends Job $this->updaterService->afterUpdate(); } } - } |