Skip to content

Commit ce4e409

Browse files
committed
update with latest cs fixer
1 parent 1e19c05 commit ce4e409

34 files changed

+9
-115
lines changed

.github/workflows/static.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717

18+
- name: Remove phpspec
19+
run: composer remove --dev friends-of-phpspec/phpspec-code-coverage phpspec/phpspec
20+
1821
- name: PHPStan
1922
uses: OskarStark/[email protected]
2023
env:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## unreleased
4+
5+
- Cleaned up phpdoc.
6+
37
## 2.7.1 - 2023-11-30
48

59
- Allow installation with Symfony 7.

src/Deferred.php

-9
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public function __construct(callable $waitCallback)
5151
$this->onRejectedCallbacks = [];
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
5754
public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
5855
{
5956
$deferred = new self($this->waitCallback);
@@ -86,9 +83,6 @@ public function then(callable $onFulfilled = null, callable $onRejected = null):
8683
return $deferred;
8784
}
8885

89-
/**
90-
* {@inheritdoc}
91-
*/
9286
public function getState(): string
9387
{
9488
return $this->state;
@@ -128,9 +122,6 @@ public function reject(ClientExceptionInterface $exception): void
128122
}
129123
}
130124

131-
/**
132-
* {@inheritdoc}
133-
*/
134125
public function wait($unwrap = true)
135126
{
136127
if (Promise::PENDING === $this->state) {

src/HttpAsyncClientDecorator.php

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ trait HttpAsyncClientDecorator
2020
protected $httpAsyncClient;
2121

2222
/**
23-
* {@inheritdoc}
24-
*
2523
* @see HttpAsyncClient::sendAsyncRequest
2624
*/
2725
public function sendAsyncRequest(RequestInterface $request)

src/HttpAsyncClientEmulator.php

-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@
1717
trait HttpAsyncClientEmulator
1818
{
1919
/**
20-
* {@inheritdoc}
21-
*
2220
* @see HttpClient::sendRequest
2321
*/
2422
abstract public function sendRequest(RequestInterface $request): ResponseInterface;
2523

2624
/**
27-
* {@inheritdoc}
28-
*
2925
* @see HttpAsyncClient::sendAsyncRequest
3026
*/
3127
public function sendAsyncRequest(RequestInterface $request)

src/HttpClientDecorator.php

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ trait HttpClientDecorator
2121
protected $httpClient;
2222

2323
/**
24-
* {@inheritdoc}
25-
*
2624
* @see ClientInterface::sendRequest
2725
*/
2826
public function sendRequest(RequestInterface $request): ResponseInterface

src/HttpClientEmulator.php

-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
trait HttpClientEmulator
1616
{
1717
/**
18-
* {@inheritdoc}
19-
*
2018
* @see HttpClient::sendRequest
2119
*/
2220
public function sendRequest(RequestInterface $request): ResponseInterface
@@ -27,8 +25,6 @@ public function sendRequest(RequestInterface $request): ResponseInterface
2725
}
2826

2927
/**
30-
* {@inheritdoc}
31-
*
3228
* @see HttpAsyncClient::sendAsyncRequest
3329
*/
3430
abstract public function sendAsyncRequest(RequestInterface $request);

src/HttpClientPool/HttpClientPool.php

-6
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,11 @@ public function addHttpClient($client): void
5252
*/
5353
abstract protected function chooseHttpClient(): HttpClientPoolItem;
5454

55-
/**
56-
* {@inheritdoc}
57-
*/
5855
public function sendAsyncRequest(RequestInterface $request)
5956
{
6057
return $this->chooseHttpClient()->sendAsyncRequest($request);
6158
}
6259

63-
/**
64-
* {@inheritdoc}
65-
*/
6660
public function sendRequest(RequestInterface $request): ResponseInterface
6761
{
6862
return $this->chooseHttpClient()->sendRequest($request);

src/HttpClientPool/HttpClientPoolItem.php

-6
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ public function __construct($client, int $reenableAfter = null)
6969
$this->reenableAfter = $reenableAfter;
7070
}
7171

72-
/**
73-
* {@inheritdoc}
74-
*/
7572
public function sendRequest(RequestInterface $request): ResponseInterface
7673
{
7774
if ($this->isDisabled()) {
@@ -92,9 +89,6 @@ public function sendRequest(RequestInterface $request): ResponseInterface
9289
return $response;
9390
}
9491

95-
/**
96-
* {@inheritdoc}
97-
*/
9892
public function sendAsyncRequest(RequestInterface $request)
9993
{
10094
if ($this->isDisabled()) {

src/HttpClientPool/LeastUsedClientPool.php

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
final class LeastUsedClientPool extends HttpClientPool
1717
{
18-
/**
19-
* {@inheritdoc}
20-
*/
2118
protected function chooseHttpClient(): HttpClientPoolItem
2219
{
2320
$clientPool = array_filter($this->clientPool, function (HttpClientPoolItem $clientPoolItem) {

src/HttpClientPool/RandomClientPool.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
*/
1414
final class RandomClientPool extends HttpClientPool
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
protected function chooseHttpClient(): HttpClientPoolItem
2017
{
2118
$clientPool = array_filter($this->clientPool, function (HttpClientPoolItem $clientPoolItem) {

src/HttpClientPool/RoundRobinClientPool.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
*/
1414
final class RoundRobinClientPool extends HttpClientPool
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
protected function chooseHttpClient(): HttpClientPoolItem
2017
{
2118
$last = current($this->clientPool);

src/HttpClientRouter.php

-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
use Psr\Http\Message\ResponseInterface;
1313

1414
/**
15-
* {@inheritdoc}
16-
*
1715
* @author Joel Wurtz <[email protected]>
1816
*/
1917
final class HttpClientRouter implements HttpClientRouterInterface
@@ -23,17 +21,11 @@ final class HttpClientRouter implements HttpClientRouterInterface
2321
*/
2422
private $clients = [];
2523

26-
/**
27-
* {@inheritdoc}
28-
*/
2924
public function sendRequest(RequestInterface $request): ResponseInterface
3025
{
3126
return $this->chooseHttpClient($request)->sendRequest($request);
3227
}
3328

34-
/**
35-
* {@inheritdoc}
36-
*/
3729
public function sendAsyncRequest(RequestInterface $request)
3830
{
3931
return $this->chooseHttpClient($request)->sendAsyncRequest($request);

src/Plugin/AddHostPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ public function __construct(UriInterface $host, array $config = [])
4848
$this->replace = $options['replace'];
4949
}
5050

51-
/**
52-
* {@inheritdoc}
53-
*/
5451
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
5552
{
5653
if ($this->replace || '' === $request->getUri()->getHost()) {

src/Plugin/AuthenticationPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ public function __construct(Authentication $authentication)
2626
$this->authentication = $authentication;
2727
}
2828

29-
/**
30-
* {@inheritdoc}
31-
*/
3229
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3330
{
3431
$request = $this->authentication->authenticate($request);

src/Plugin/BaseUriPlugin.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class BaseUriPlugin implements Plugin
2424
/**
2525
* @var AddPathPlugin|null
2626
*/
27-
private $addPathPlugin = null;
27+
private $addPathPlugin;
2828

2929
/**
3030
* @param UriInterface $uri Has to contain a host name and can have a path
@@ -39,9 +39,6 @@ public function __construct(UriInterface $uri, array $hostConfig = [])
3939
}
4040
}
4141

42-
/**
43-
* {@inheritdoc}
44-
*/
4542
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
4643
{
4744
$addHostNext = function (RequestInterface $request) use ($next, $first) {

src/Plugin/ContentLengthPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
*/
1717
final class ContentLengthPlugin implements Plugin
1818
{
19-
/**
20-
* {@inheritdoc}
21-
*/
2219
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
2320
{
2421
if (!$request->hasHeader('Content-Length')) {

src/Plugin/ContentTypePlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public function __construct(array $config = [])
5757
$this->sizeLimit = $options['size_limit'];
5858
}
5959

60-
/**
61-
* {@inheritdoc}
62-
*/
6360
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
6461
{
6562
if (!$request->hasHeader('Content-Type')) {

src/Plugin/CookiePlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ public function __construct(CookieJar $cookieJar)
3333
$this->cookieJar = $cookieJar;
3434
}
3535

36-
/**
37-
* {@inheritdoc}
38-
*/
3936
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
4037
{
4138
$cookies = [];

src/Plugin/DecoderPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ public function __construct(array $config = [])
4848
$this->useContentEncoding = $options['use_content_encoding'];
4949
}
5050

51-
/**
52-
* {@inheritdoc}
53-
*/
5451
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
5552
{
5653
$encodings = extension_loaded('zlib') ? ['gzip', 'deflate'] : ['identity'];

src/Plugin/ErrorPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ public function __construct(array $config = [])
5454
$this->onlyServerException = $options['only_server_exception'];
5555
}
5656

57-
/**
58-
* {@inheritdoc}
59-
*/
6057
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
6158
{
6259
$promise = $next($request);

src/Plugin/HeaderAppendPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ public function __construct(array $headers)
3434
$this->headers = $headers;
3535
}
3636

37-
/**
38-
* {@inheritdoc}
39-
*/
4037
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
4138
{
4239
foreach ($this->headers as $header => $headerValue) {

src/Plugin/HeaderDefaultsPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ public function __construct(array $headers)
3030
$this->headers = $headers;
3131
}
3232

33-
/**
34-
* {@inheritdoc}
35-
*/
3633
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3734
{
3835
foreach ($this->headers as $header => $headerValue) {

src/Plugin/HeaderRemovePlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ public function __construct(array $headers)
2828
$this->headers = $headers;
2929
}
3030

31-
/**
32-
* {@inheritdoc}
33-
*/
3431
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3532
{
3633
foreach ($this->headers as $header) {

src/Plugin/HeaderSetPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ public function __construct(array $headers)
3030
$this->headers = $headers;
3131
}
3232

33-
/**
34-
* {@inheritdoc}
35-
*/
3633
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3734
{
3835
foreach ($this->headers as $header => $headerValue) {

src/Plugin/HistoryPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(Journal $journal)
2929
$this->journal = $journal;
3030
}
3131

32-
/**
33-
* {@inheritdoc}
34-
*/
3532
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3633
{
3734
$journal = $this->journal;

src/Plugin/QueryDefaultsPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ public function __construct(array $queryParams)
3131
$this->queryParams = $queryParams;
3232
}
3333

34-
/**
35-
* {@inheritdoc}
36-
*/
3734
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
3835
{
3936
$uri = $request->getUri();

src/Plugin/RedirectPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ public function __construct(array $config = [])
158158
$this->streamFactory = $options['stream_factory'];
159159
}
160160

161-
/**
162-
* {@inheritdoc}
163-
*/
164161
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
165162
{
166163
// Check in storage

src/Plugin/RequestMatcherPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public function __construct(RequestMatcher $requestMatcher, ?Plugin $delegateOnM
3838
$this->failurePlugin = $delegateOnNoMatch;
3939
}
4040

41-
/**
42-
* {@inheritdoc}
43-
*/
4441
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
4542
{
4643
if ($this->requestMatcher->matches($request)) {

src/Plugin/RequestSeekableBodyPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
final class RequestSeekableBodyPlugin extends SeekableBodyPlugin
1717
{
18-
/**
19-
* {@inheritdoc}
20-
*/
2118
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
2219
{
2320
if (!$request->getBody()->isSeekable()) {

src/Plugin/ResponseSeekableBodyPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
*/
1717
final class ResponseSeekableBodyPlugin extends SeekableBodyPlugin
1818
{
19-
/**
20-
* {@inheritdoc}
21-
*/
2219
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
2320
{
2421
return $next($request)->then(function (ResponseInterface $response) {

src/Plugin/RetryPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ public function __construct(array $config = [])
9696
$this->exceptionDelay = $options['exception_delay'];
9797
}
9898

99-
/**
100-
* {@inheritdoc}
101-
*/
10299
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
103100
{
104101
$chainIdentifier = spl_object_hash((object) $first);

0 commit comments

Comments
 (0)