Passed
Push — master ( 5b0e70...e7ae85 )
by Morris
14:24 queued 10s
created
apps/dav/lib/BackgroundJob/RegisterRegenerateBirthdayCalendars.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -30,37 +30,37 @@
 block discarded – undo
30 30
 
31 31
 class RegisterRegenerateBirthdayCalendars extends QueuedJob {
32 32
 
33
-	/** @var IUserManager */
34
-	private $userManager;
33
+    /** @var IUserManager */
34
+    private $userManager;
35 35
 
36
-	/** @var IJobList */
37
-	private $jobList;
36
+    /** @var IJobList */
37
+    private $jobList;
38 38
 
39
-	/**
40
-	 * RegisterRegenerateBirthdayCalendars constructor.
41
-	 *
42
-	 * @param ITimeFactory $time
43
-	 * @param IUserManager $userManager
44
-	 * @param IJobList $jobList
45
-	 */
46
-	public function __construct(ITimeFactory $time,
47
-								IUserManager $userManager,
48
-								IJobList $jobList) {
49
-		parent::__construct($time);
50
-		$this->userManager = $userManager;
51
-		$this->jobList = $jobList;
52
-	}
39
+    /**
40
+     * RegisterRegenerateBirthdayCalendars constructor.
41
+     *
42
+     * @param ITimeFactory $time
43
+     * @param IUserManager $userManager
44
+     * @param IJobList $jobList
45
+     */
46
+    public function __construct(ITimeFactory $time,
47
+                                IUserManager $userManager,
48
+                                IJobList $jobList) {
49
+        parent::__construct($time);
50
+        $this->userManager = $userManager;
51
+        $this->jobList = $jobList;
52
+    }
53 53
 
54
-	/**
55
-	 * @inheritDoc
56
-	 */
57
-	public function run($argument) {
58
-		$this->userManager->callForSeenUsers(function(IUser $user) {
59
-			$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
60
-				'userId' => $user->getUID(),
61
-				'purgeBeforeGenerating' => true
62
-			]);
63
-		});
64
-	}
54
+    /**
55
+     * @inheritDoc
56
+     */
57
+    public function run($argument) {
58
+        $this->userManager->callForSeenUsers(function(IUser $user) {
59
+            $this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
60
+                'userId' => $user->getUID(),
61
+                'purgeBeforeGenerating' => true
62
+            ]);
63
+        });
64
+    }
65 65
 
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
apps/dav/lib/Migration/RegenerateBirthdayCalendars.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -30,43 +30,43 @@
 block discarded – undo
30 30
 
31 31
 class RegenerateBirthdayCalendars implements IRepairStep {
32 32
 
33
-	/** @var IJobList */
34
-	private $jobList;
33
+    /** @var IJobList */
34
+    private $jobList;
35 35
 
36
-	/** @var IConfig */
37
-	private $config;
36
+    /** @var IConfig */
37
+    private $config;
38 38
 
39
-	/**
40
-	 * @param IJobList $jobList
41
-	 * @param IConfig $config
42
-	 */
43
-	public function __construct(IJobList $jobList,
44
-								IConfig $config) {
45
-		$this->jobList = $jobList;
46
-		$this->config = $config;
47
-	}
39
+    /**
40
+     * @param IJobList $jobList
41
+     * @param IConfig $config
42
+     */
43
+    public function __construct(IJobList $jobList,
44
+                                IConfig $config) {
45
+        $this->jobList = $jobList;
46
+        $this->config = $config;
47
+    }
48 48
 
49
-	/**
50
-	 * @return string
51
-	 */
52
-	public function getName() {
53
-		return 'Regenerating birthday calendars to use new icons and fix old birthday events without year';
54
-	}
49
+    /**
50
+     * @return string
51
+     */
52
+    public function getName() {
53
+        return 'Regenerating birthday calendars to use new icons and fix old birthday events without year';
54
+    }
55 55
 
56
-	/**
57
-	 * @param IOutput $output
58
-	 */
59
-	public function run(IOutput $output) {
60
-		// only run once
61
-		if ($this->config->getAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix') === 'yes') {
62
-			$output->info('Repair step already executed');
63
-			return;
64
-		}
56
+    /**
57
+     * @param IOutput $output
58
+     */
59
+    public function run(IOutput $output) {
60
+        // only run once
61
+        if ($this->config->getAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix') === 'yes') {
62
+            $output->info('Repair step already executed');
63
+            return;
64
+        }
65 65
 
66
-		$output->info('Adding background jobs to regenerate birthday calendar');
67
-		$this->jobList->add(RegisterRegenerateBirthdayCalendars::class);
66
+        $output->info('Adding background jobs to regenerate birthday calendar');
67
+        $this->jobList->add(RegisterRegenerateBirthdayCalendars::class);
68 68
 
69
-		// if all were done, no need to redo the repair during next upgrade
70
-		$this->config->setAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix', 'yes');
71
-	}
69
+        // if all were done, no need to redo the repair during next upgrade
70
+        $this->config->setAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix', 'yes');
71
+    }
72 72
 }
Please login to merge, or discard this patch.