Passed
Branch master (374312)
by Rick
02:08
created
src/CallbackTask.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,9 @@
 block discarded – undo
52 52
 
53 53
 	public function cancel(): void
54 54
 	{
55
-		$this->callback = function () {};
55
+		$this->callback = function ()
56
+		{
57
+};
56 58
 		$this->setExpiryTime(0);
57 59
 	}
58 60
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
 	public function cancel(): void
54 54
 	{
55
-		$this->callback = function () {};
55
+		$this->callback = function() {};
56 56
 		$this->setExpiryTime(0);
57 57
 	}
58 58
 
Please login to merge, or discard this patch.
src/RepeatableTask.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	}
42 42
 
43 43
 	/**
44
-	 * @return null|TaskInterface
44
+	 * @return RepeatableTask|null
45 45
 	 */
46 46
 	public function run(): ?TaskInterface
47 47
 	{
Please login to merge, or discard this patch.
src/TaskController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
 
66 66
     public function removeAll()
67 67
     {
68
-        foreach ($this->tasks as $task)
69
-        {
70
-            $task->cancel();
71
-            $this->remove($task);
72
-        }
68
+	foreach ($this->tasks as $task)
69
+	{
70
+	    $task->cancel();
71
+	    $this->remove($task);
72
+	}
73 73
 	}
74 74
 
75 75
 	/**
Please login to merge, or discard this patch.