@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function add(): void |
28 | 28 | { |
29 | - $this->async->add(static function () { |
|
29 | + $this->async->add(static function() { |
|
30 | 30 | usleep(8000); |
31 | 31 | |
32 | 32 | return 555; |
33 | 33 | }); |
34 | - $this->async->add(static function () { |
|
34 | + $this->async->add(static function() { |
|
35 | 35 | return 2; |
36 | 36 | }); |
37 | 37 | |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function then(): void |
45 | 45 | { |
46 | - $this->async->add(static function () { |
|
46 | + $this->async->add(static function() { |
|
47 | 47 | return 555; |
48 | - })->then(static function (int $value) { |
|
48 | + })->then(static function(int $value) { |
|
49 | 49 | static::assertEquals(555, $value); |
50 | 50 | }); |
51 | 51 | |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function failed(): void |
59 | 59 | { |
60 | - $this->async->add(static function () { |
|
60 | + $this->async->add(static function() { |
|
61 | 61 | throw new \Exception('Test message'); |
62 | - })->catch(function ($exception) { |
|
62 | + })->catch(function($exception) { |
|
63 | 63 | static::assertEquals('Test message', $exception->getMessage()); |
64 | 64 | }); |
65 | 65 |