Passed
Push — master ( 6af401...73b946 )
by Markus
05:28
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->assertSame(
42 42
                 $expectedValue,
43 43
                 $result,
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     protected function getLoop(): LoopInterface
50 50
     {
51
-        if (! $this->loop) {
51
+        if (!$this->loop) {
52 52
             $this->loop = LoopFactory::create();
53 53
         }
54 54
 
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
         $rejected = false;
64 64
 
65 65
         $promise->then(
66
-            function ($c) use (&$resolved, &$wait) {
66
+            function($c) use (&$resolved, &$wait) {
67 67
                 $resolved = $c;
68 68
                 $wait = false;
69 69
                 $this->getLoop()->stop();
70 70
             },
71
-            function ($error) use (&$exception, &$rejected, &$wait) {
71
+            function($error) use (&$exception, &$rejected, &$wait) {
72 72
                 $exception = $error;
73 73
                 $rejected = true;
74 74
                 $wait = false;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
 
87 87
         if ($rejected) {
88
-            if (! $exception instanceof Exception) {
88
+            if (!$exception instanceof Exception) {
89 89
                 $type = is_object($exception) ? get_class($exception) : gettype($exception);
90 90
                 $exception = new \UnexpectedValueException(
91 91
                     'Promise rejected with unexpected value of type ' . $type,
Please login to merge, or discard this patch.