summaryrefslogtreecommitdiffstats
path: root/lib/Cron/Updater.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Cron/Updater.php')
-rw-r--r--lib/Cron/Updater.php16
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();