@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * @param ResponseInterface|null $response |
| 74 | 74 | */ |
| 75 | - function (?ResponseInterface $response): ResponseInterface { |
|
| 75 | + function(?ResponseInterface $response): ResponseInterface { |
|
| 76 | 76 | $this->response = $response; |
| 77 | 77 | $this->state = self::FULFILLED; |
| 78 | 78 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * @param mixed $reason |
| 83 | 83 | */ |
| 84 | - function ($reason): void { |
|
| 84 | + function($reason): void { |
|
| 85 | 85 | $this->state = self::REJECTED; |
| 86 | 86 | |
| 87 | 87 | if ($reason instanceof HttplugException) { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $loop = $this->loop; |
| 120 | 120 | while (HttpPromise::PENDING === $this->getState()) { |
| 121 | - $loop->futureTick(function () use ($loop) { |
|
| 121 | + $loop->futureTick(function() use ($loop) { |
|
| 122 | 122 | $loop->stop(); |
| 123 | 123 | }); |
| 124 | 124 | $loop->run(); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - $this->loop = $loop ?: ReactFactory::buildEventLoop(); |
|
| 46 | + $this->loop = $loop ?: ReactFactory::buildEventLoop(); |
|
| 47 | 47 | $this->client = $client ?: ReactFactory::buildHttpClient($this->loop); |
| 48 | 48 | } |
| 49 | 49 | |