Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 4c33676

Browse files
committed
Merge pull request #17 from php-http/analysis-qyAGNq
Applied fixes from StyleCI
2 parents 98b61e0 + 525b029 commit 4c33676

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Guzzle6HttpAdapter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use GuzzleHttp\ClientInterface;
77
use Http\Client\HttpAsyncClient;
88
use Http\Client\HttpClient;
9-
use Http\Client\Promise;
109
use Http\Client\Tools\HttpClientEmulator;
1110
use Psr\Http\Message\RequestInterface;
1211

src/Guzzle6Promise.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@ class Guzzle6Promise implements Promise
4848
public function __construct(PromiseInterface $promise, RequestInterface $request)
4949
{
5050
$this->request = $request;
51-
$this->state = self::PENDING;
51+
$this->state = self::PENDING;
5252
$this->promise = $promise->then(function ($response) {
5353
$this->response = $response;
5454
$this->state = self::FULFILLED;
5555

5656
return $response;
5757
}, function ($reason) use ($request) {
5858
if ($reason instanceof HttplugException) {
59-
$this->state = self::REJECTED;
59+
$this->state = self::REJECTED;
6060
$this->exception = $reason;
6161

6262
throw $this->exception;
6363
}
6464

6565
if (!($reason instanceof GuzzleExceptions\GuzzleException)) {
66-
throw new \RuntimeException("Invalid reason");
66+
throw new \RuntimeException('Invalid reason');
6767
}
6868

69-
$this->state = self::REJECTED;
69+
$this->state = self::REJECTED;
7070
$this->exception = $this->handleException($reason, $request);
7171

7272
throw $this->exception;

0 commit comments

Comments
 (0)