Passed
Push — master ( 7c37b9...08924a )
by Rick
02:09
created
src/RepeatableTask.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	/**
44 44
 	 * @return null|TaskInterface
45 45
 	 */
46
-	public function run(): ?TaskInterface
46
+	public function run(): ? TaskInterface
47 47
 	{
48 48
 		if (time() >= $this->childTask->getExpiryTime())
49 49
 		{
Please login to merge, or discard this 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/TaskInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	 * Pass back a new instance of TaskInterface to run a new task.
22 22
 	 * @return null|TaskInterface
23 23
 	 */
24
-	public function run(): ?TaskInterface;
24
+	public function run(): ? TaskInterface;
25 25
 
26 26
 	/**
27 27
 	 * @return void
Please login to merge, or discard this patch.
src/CallbackTask.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		$this->setStoredArguments($args);
41 41
 	}
42 42
 
43
-	public function run(): ?TaskInterface
43
+	public function run(): ? TaskInterface
44 44
 	{
45 45
 		$result = call_user_func_array($this->getCallback(), $this->getStoredArguments());
46 46
 
@@ -52,7 +52,7 @@  discard block
 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.
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.