Passed
Push — master ( eb9f5d...c5bf56 )
by Markus
06:52
created
src/Concerns/AssertsPromises.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.