@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -52,7 +52,9 @@ |
||
| 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 | |