Passed
Push — master ( 9fd291...a75f0e )
by Roeland
15:29 queued 11s
created
lib/public/BackgroundJob/TimedJob.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -36,31 +36,31 @@
 block discarded – undo
36 36
  * @since 15.0.0
37 37
  */
38 38
 abstract class TimedJob extends Job {
39
-	/** @var int */
40
-	protected $interval = 0;
39
+    /** @var int */
40
+    protected $interval = 0;
41 41
 
42
-	/**
43
-	 * set the interval for the job
44
-	 *
45
-	 * @param int $seconds the time to pass between two runs of the same job in seconds
46
-	 *
47
-	 * @since 15.0.0
48
-	 */
49
-	public function setInterval(int $seconds) {
50
-		$this->interval = $seconds;
51
-	}
42
+    /**
43
+     * set the interval for the job
44
+     *
45
+     * @param int $seconds the time to pass between two runs of the same job in seconds
46
+     *
47
+     * @since 15.0.0
48
+     */
49
+    public function setInterval(int $seconds) {
50
+        $this->interval = $seconds;
51
+    }
52 52
 
53
-	/**
54
-	 * run the job if the last run is is more than the interval ago
55
-	 *
56
-	 * @param JobList $jobList
57
-	 * @param ILogger|null $logger
58
-	 *
59
-	 * @since 15.0.0
60
-	 */
61
-	final public function execute($jobList, ILogger $logger = null) {
62
-		if (($this->time->getTime() - $this->lastRun) > $this->interval) {
63
-			parent::execute($jobList, $logger);
64
-		}
65
-	}
53
+    /**
54
+     * run the job if the last run is is more than the interval ago
55
+     *
56
+     * @param JobList $jobList
57
+     * @param ILogger|null $logger
58
+     *
59
+     * @since 15.0.0
60
+     */
61
+    final public function execute($jobList, ILogger $logger = null) {
62
+        if (($this->time->getTime() - $this->lastRun) > $this->interval) {
63
+            parent::execute($jobList, $logger);
64
+        }
65
+    }
66 66
 }
Please login to merge, or discard this patch.