Skip to content

Commit c6975e5

Browse files
committed
latest cs fixes
1 parent 427e734 commit c6975e5

12 files changed

+8
-44
lines changed

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Tests
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- '[0-9]+.x'
6+
- '[0-9]+.[0-9]+'
7+
- '[0-9]+.[0-9]+.x'
8+
pull_request:
39

410
jobs:
511
build:

src/Client.php

-6
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,11 @@ public static function createWithConfig(array $config): Client
4343
return new self(self::buildClient($config));
4444
}
4545

46-
/**
47-
* {@inheritdoc}
48-
*/
4946
public function sendRequest(RequestInterface $request): ResponseInterface
5047
{
5148
return $this->sendAsyncRequest($request)->wait();
5249
}
5350

54-
/**
55-
* {@inheritdoc}
56-
*/
5751
public function sendAsyncRequest(RequestInterface $request)
5852
{
5953
$promise = $this->guzzle->sendAsync($request);

src/Promise.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,16 @@ public function __construct(PromiseInterface $promise, RequestInterface $request
7070
});
7171
}
7272

73-
/**
74-
* {@inheritdoc}
75-
*/
76-
public function then(callable $onFulfilled = null, callable $onRejected = null)
73+
public function then(?callable $onFulfilled = null, ?callable $onRejected = null)
7774
{
7875
return new static($this->promise->then($onFulfilled, $onRejected), $this->request);
7976
}
8077

81-
/**
82-
* {@inheritdoc}
83-
*/
8478
public function getState()
8579
{
8680
return $this->state;
8781
}
8882

89-
/**
90-
* {@inheritdoc}
91-
*/
9283
public function wait($unwrap = true)
9384
{
9485
$this->promise->wait(false);

tests/CurlHttpAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class CurlHttpAdapterTest extends HttpAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new CurlHandler();

tests/CurlHttpAsyncAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class CurlHttpAsyncAdapterTest extends HttpAsyncAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new CurlHandler();

tests/DefaultHttpAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
*/
1414
class DefaultHttpAdapterTest extends HttpClientTest
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
protected function createHttpAdapter(): ClientInterface
2017
{
2118
return new Client();

tests/HttpAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
*/
1515
abstract class HttpAdapterTest extends HttpClientTest
1616
{
17-
/**
18-
* {@inheritdoc}
19-
*/
2017
protected function createHttpAdapter(): ClientInterface
2118
{
2219
return new Client(new GuzzleClient(['handler' => $this->createHandler()]));

tests/HttpAsyncAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
*/
1515
abstract class HttpAsyncAdapterTest extends HttpAsyncClientTest
1616
{
17-
/**
18-
* {@inheritdoc}
19-
*/
2017
protected function createHttpAsyncClient(): HttpAsyncClient
2118
{
2219
return new Client(new GuzzleClient(['handler' => $this->createHandler()]));

tests/MultiCurlHttpAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class MultiCurlHttpAdapterTest extends HttpAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new CurlMultiHandler();

tests/MultiCurlHttpAsyncAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class MultiCurlHttpAsyncAdapterTest extends HttpAsyncAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new CurlMultiHandler();

tests/StreamHttpAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class StreamHttpAdapterTest extends HttpAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new StreamHandler();

tests/StreamHttpAsyncAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class StreamHttpAsyncAdapterTest extends HttpAsyncAdapterTest
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
protected function createHandler()
1815
{
1916
return new StreamHandler();

0 commit comments

Comments
 (0)