Test Failed
Push — main ( c3c525...b39c71 )
by Teodoro
02:30
created
tests/AsyncTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function add(): void
29 29
     {
30
-        $this->async->add(static function () {
30
+        $this->async->add(static function() {
31 31
             usleep(8000);
32 32
 
33 33
             return 555;
34 34
         });
35
-        $this->async->add(static function () {
35
+        $this->async->add(static function() {
36 36
             return 2;
37 37
         });
38 38
 
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function then(): void
46 46
     {
47
-        $this->async->add(static function () {
47
+        $this->async->add(static function() {
48 48
             return 555;
49
-        })->then(static function (int $value) {
49
+        })->then(static function(int $value) {
50 50
             static::assertEquals(555, $value);
51 51
         });
52 52
 
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function failed(): void
60 60
     {
61
-        $this->async->add(static function () {
61
+        $this->async->add(static function() {
62 62
             throw new Exception('Test message');
63
-        })->catch(function ($exception) {
63
+        })->catch(function($exception) {
64 64
             static::assertEquals('Test message', $exception->getMessage());
65 65
         });
66 66
 
Please login to merge, or discard this patch.
src/TaskFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             __DIR__ . '/../../../' . $file,
46 46
             __DIR__ . '/../../' . $file,
47 47
             __DIR__ . '/../' . $file,
48
-        ], static function (string $path) {
48
+        ], static function(string $path) {
49 49
             return file_exists($path);
50 50
         });
51 51
 
Please login to merge, or discard this patch.