summaryrefslogtreecommitdiffstats
path: root/lib/Cron/Updater.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-01-28 22:32:49 +0100
committerGitHub <noreply@github.com>2019-01-28 22:32:49 +0100
commit9cd871983a368752d122a73da244606bdeba312f (patch)
treed1882e1e677d7cee12926e5688ccfbfd31a505f5 /lib/Cron/Updater.php
parent31b2f194af74bdba60bdd2640e5fc47340157795 (diff)
parentbecce6b7520912257c3d72697a3aefec9923a467 (diff)
Merge pull request #382 from SMillerDev/codestyle_psr2
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Cron/Updater.php')
-rw-r--r--lib/Cron/Updater.php9
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();
}
}
-
}