@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | $this->addToAssertionCount(1); |
24 | 24 | |
25 | - if (! $promise instanceof PromiseInterface) { |
|
25 | + if (!$promise instanceof PromiseInterface) { |
|
26 | 26 | $promise = all($promise); |
27 | 27 | } |
28 | 28 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return; |
38 | 38 | } |
39 | 39 | |
40 | - if (! is_null($expectedValue)) { |
|
40 | + if (!is_null($expectedValue)) { |
|
41 | 41 | $this->assertEquals( |
42 | 42 | $expectedValue, |
43 | 43 | $result, |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | protected function getLoop(): LoopInterface |
51 | 51 | { |
52 | - if (! $this->loop) { |
|
52 | + if (!$this->loop) { |
|
53 | 53 | $this->loop = LoopFactory::create(); |
54 | 54 | } |
55 | 55 | |
@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | $rejected = false; |
65 | 65 | |
66 | 66 | $promise->then( |
67 | - function ($c) use (&$resolved, &$wait) { |
|
67 | + function($c) use (&$resolved, &$wait) { |
|
68 | 68 | $resolved = $c; |
69 | 69 | $wait = false; |
70 | 70 | $this->getLoop()->stop(); |
71 | 71 | }, |
72 | - function ($error) use (&$exception, &$rejected, &$wait) { |
|
72 | + function($error) use (&$exception, &$rejected, &$wait) { |
|
73 | 73 | $exception = $error; |
74 | 74 | $rejected = true; |
75 | 75 | $wait = false; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | if ($rejected) { |
89 | - if (! $exception instanceof Exception) { |
|
89 | + if (!$exception instanceof Exception) { |
|
90 | 90 | $type = is_object($exception) ? get_class($exception) : gettype($exception); |
91 | 91 | $exception = new \UnexpectedValueException( |
92 | 92 | 'Promise rejected with unexpected value of type ' . $type, |