Skip to content

Commit 8473863

Browse files
committed
[CS] Remove @inheritdoc PHPDoc
1 parent 55142b4 commit 8473863

28 files changed

+0
-259
lines changed

AmpHttpClient.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function __construct(array $defaultOptions = [], callable $clientConfigur
6868

6969
/**
7070
* @see HttpClientInterface::OPTIONS_DEFAULTS for available options
71-
*
72-
* {@inheritdoc}
7371
*/
7472
public function request(string $method, string $url, array $options = []): ResponseInterface
7573
{
@@ -141,9 +139,6 @@ public function request(string $method, string $url, array $options = []): Respo
141139
return new AmpResponse($this->multi, $request, $options, $this->logger);
142140
}
143141

144-
/**
145-
* {@inheritdoc}
146-
*/
147142
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
148143
{
149144
if ($responses instanceof AmpResponse) {

AsyncDecoratorTrait.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,10 @@ trait AsyncDecoratorTrait
2626
use DecoratorTrait;
2727

2828
/**
29-
* {@inheritdoc}
30-
*
3129
* @return AsyncResponse
3230
*/
3331
abstract public function request(string $method, string $url, array $options = []): ResponseInterface;
3432

35-
/**
36-
* {@inheritdoc}
37-
*/
3833
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
3934
{
4035
if ($responses instanceof AsyncResponse) {

CachingHttpClient.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ public function __construct(HttpClientInterface $client, StoreInterface $store,
6464
}
6565
}
6666

67-
/**
68-
* {@inheritdoc}
69-
*/
7067
public function request(string $method, string $url, array $options = []): ResponseInterface
7168
{
7269
[$url, $options] = $this->prepareRequest($method, $url, $options, $this->defaultOptions, true);
@@ -107,9 +104,6 @@ public function request(string $method, string $url, array $options = []): Respo
107104
return MockResponse::fromRequest($method, $url, $options, $response);
108105
}
109106

110-
/**
111-
* {@inheritdoc}
112-
*/
113107
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
114108
{
115109
if ($responses instanceof ResponseInterface) {

Chunk/DataChunk.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,57 +29,36 @@ public function __construct(int $offset = 0, string $content = '')
2929
$this->content = $content;
3030
}
3131

32-
/**
33-
* {@inheritdoc}
34-
*/
3532
public function isTimeout(): bool
3633
{
3734
return false;
3835
}
3936

40-
/**
41-
* {@inheritdoc}
42-
*/
4337
public function isFirst(): bool
4438
{
4539
return false;
4640
}
4741

48-
/**
49-
* {@inheritdoc}
50-
*/
5142
public function isLast(): bool
5243
{
5344
return false;
5445
}
5546

56-
/**
57-
* {@inheritdoc}
58-
*/
5947
public function getInformationalStatus(): ?array
6048
{
6149
return null;
6250
}
6351

64-
/**
65-
* {@inheritdoc}
66-
*/
6752
public function getContent(): string
6853
{
6954
return $this->content;
7055
}
7156

72-
/**
73-
* {@inheritdoc}
74-
*/
7557
public function getOffset(): int
7658
{
7759
return $this->offset;
7860
}
7961

80-
/**
81-
* {@inheritdoc}
82-
*/
8362
public function getError(): ?string
8463
{
8564
return null;

Chunk/ErrorChunk.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public function __construct(int $offset, \Throwable|string $error)
3939
}
4040
}
4141

42-
/**
43-
* {@inheritdoc}
44-
*/
4542
public function isTimeout(): bool
4643
{
4744
$this->didThrow = true;
@@ -53,53 +50,35 @@ public function isTimeout(): bool
5350
return true;
5451
}
5552

56-
/**
57-
* {@inheritdoc}
58-
*/
5953
public function isFirst(): bool
6054
{
6155
$this->didThrow = true;
6256
throw null !== $this->error ? new TransportException($this->errorMessage, 0, $this->error) : new TimeoutException($this->errorMessage);
6357
}
6458

65-
/**
66-
* {@inheritdoc}
67-
*/
6859
public function isLast(): bool
6960
{
7061
$this->didThrow = true;
7162
throw null !== $this->error ? new TransportException($this->errorMessage, 0, $this->error) : new TimeoutException($this->errorMessage);
7263
}
7364

74-
/**
75-
* {@inheritdoc}
76-
*/
7765
public function getInformationalStatus(): ?array
7866
{
7967
$this->didThrow = true;
8068
throw null !== $this->error ? new TransportException($this->errorMessage, 0, $this->error) : new TimeoutException($this->errorMessage);
8169
}
8270

83-
/**
84-
* {@inheritdoc}
85-
*/
8671
public function getContent(): string
8772
{
8873
$this->didThrow = true;
8974
throw null !== $this->error ? new TransportException($this->errorMessage, 0, $this->error) : new TimeoutException($this->errorMessage);
9075
}
9176

92-
/**
93-
* {@inheritdoc}
94-
*/
9577
public function getOffset(): int
9678
{
9779
return $this->offset;
9880
}
9981

100-
/**
101-
* {@inheritdoc}
102-
*/
10382
public function getError(): ?string
10483
{
10584
return $this->errorMessage;

Chunk/FirstChunk.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
*/
1919
class FirstChunk extends DataChunk
2020
{
21-
/**
22-
* {@inheritdoc}
23-
*/
2421
public function isFirst(): bool
2522
{
2623
return true;

Chunk/InformationalChunk.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ public function __construct(int $statusCode, array $headers)
2525
$this->status = [$statusCode, $headers];
2626
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function getInformationalStatus(): ?array
3229
{
3330
return $this->status;

Chunk/LastChunk.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
*/
1919
class LastChunk extends DataChunk
2020
{
21-
/**
22-
* {@inheritdoc}
23-
*/
2421
public function isLast(): bool
2522
{
2623
return true;

CurlHttpClient.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ public function setLogger(LoggerInterface $logger): void
8181

8282
/**
8383
* @see HttpClientInterface::OPTIONS_DEFAULTS for available options
84-
*
85-
* {@inheritdoc}
8684
*/
8785
public function request(string $method, string $url, array $options = []): ResponseInterface
8886
{
@@ -304,9 +302,6 @@ public function request(string $method, string $url, array $options = []): Respo
304302
return $pushedResponse ?? new CurlResponse($this->multi, $ch, $options, $this->logger, $method, self::createRedirectResolver($options, $host, $port), CurlClientState::$curlVersion['version_number'], $url);
305303
}
306304

307-
/**
308-
* {@inheritdoc}
309-
*/
310305
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
311306
{
312307
if ($responses instanceof CurlResponse) {

DataCollector/HttpClientDataCollector.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public function registerClient(string $name, TraceableHttpClient $client)
3636
$this->clients[$name] = $client;
3737
}
3838

39-
/**
40-
* {@inheritdoc}
41-
*/
4239
public function collect(Request $request, Response $response, \Throwable $exception = null)
4340
{
4441
$this->reset();
@@ -78,9 +75,6 @@ public function getErrorCount(): int
7875
return $this->data['error_count'] ?? 0;
7976
}
8077

81-
/**
82-
* {@inheritdoc}
83-
*/
8478
public function getName(): string
8579
{
8680
return 'http_client';

DecoratorTrait.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,16 @@ public function __construct(HttpClientInterface $client = null)
3030
$this->client = $client ?? HttpClient::create();
3131
}
3232

33-
/**
34-
* {@inheritdoc}
35-
*/
3633
public function request(string $method, string $url, array $options = []): ResponseInterface
3734
{
3835
return $this->client->request($method, $url, $options);
3936
}
4037

41-
/**
42-
* {@inheritdoc}
43-
*/
4438
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
4539
{
4640
return $this->client->stream($responses, $timeout);
4741
}
4842

49-
/**
50-
* {@inheritdoc}
51-
*/
5243
public function withOptions(array $options): static
5344
{
5445
$clone = clone $this;

DependencyInjection/HttpClientPass.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919

2020
final class HttpClientPass implements CompilerPassInterface
2121
{
22-
/**
23-
* {@inheritdoc}
24-
*/
2522
public function process(ContainerBuilder $container)
2623
{
2724
if (!$container->hasDefinition('data_collector.http_client')) {

HttpClientTrait.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ trait HttpClientTrait
2525
{
2626
private static int $CHUNK_SIZE = 16372;
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function withOptions(array $options): static
3229
{
3330
$clone = clone $this;

HttplugClient.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ public function __construct(HttpClientInterface $client = null, ResponseFactoryI
9595
$this->waitLoop = new HttplugWaitLoop($this->client, $this->promisePool, $this->responseFactory, $this->streamFactory);
9696
}
9797

98-
/**
99-
* {@inheritdoc}
100-
*/
10198
public function sendRequest(RequestInterface $request): Psr7ResponseInterface
10299
{
103100
try {
@@ -107,9 +104,6 @@ public function sendRequest(RequestInterface $request): Psr7ResponseInterface
107104
}
108105
}
109106

110-
/**
111-
* {@inheritdoc}
112-
*/
113107
public function sendAsyncRequest(RequestInterface $request): HttplugPromise
114108
{
115109
if (!$promisePool = $this->promisePool) {
@@ -148,9 +142,6 @@ public function wait(float $maxDuration = null, float $idleTimeout = null): int
148142
return $this->waitLoop->wait(null, $maxDuration, $idleTimeout);
149143
}
150144

151-
/**
152-
* {@inheritdoc}
153-
*/
154145
public function createRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1'): RequestInterface
155146
{
156147
if ($this->responseFactory instanceof RequestFactoryInterface) {
@@ -175,9 +166,6 @@ public function createRequest($method, $uri, array $headers = [], $body = null,
175166
return $request;
176167
}
177168

178-
/**
179-
* {@inheritdoc}
180-
*/
181169
public function createStream($body = null): StreamInterface
182170
{
183171
if ($body instanceof StreamInterface) {
@@ -199,9 +187,6 @@ public function createStream($body = null): StreamInterface
199187
return $stream;
200188
}
201189

202-
/**
203-
* {@inheritdoc}
204-
*/
205190
public function createUri($uri): UriInterface
206191
{
207192
if ($uri instanceof UriInterface) {

MockHttpClient.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ public function setResponseFactory($responseFactory): void
5959
$this->responseFactory = !\is_callable($responseFactory) ? $responseFactory : $responseFactory(...);
6060
}
6161

62-
/**
63-
* {@inheritdoc}
64-
*/
6562
public function request(string $method, string $url, array $options = []): ResponseInterface
6663
{
6764
[$url, $options] = $this->prepareRequest($method, $url, $options, $this->defaultOptions, true);
@@ -87,9 +84,6 @@ public function request(string $method, string $url, array $options = []): Respo
8784
return MockResponse::fromRequest($method, $url, $options, $response);
8885
}
8986

90-
/**
91-
* {@inheritdoc}
92-
*/
9387
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
9488
{
9589
if ($responses instanceof ResponseInterface) {
@@ -104,9 +98,6 @@ public function getRequestsCount(): int
10498
return $this->requestsCount;
10599
}
106100

107-
/**
108-
* {@inheritdoc}
109-
*/
110101
public function withOptions(array $options): static
111102
{
112103
$clone = clone $this;

NativeHttpClient.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public function __construct(array $defaultOptions = [], int $maxHostConnections
6161

6262
/**
6363
* @see HttpClientInterface::OPTIONS_DEFAULTS for available options
64-
*
65-
* {@inheritdoc}
6664
*/
6765
public function request(string $method, string $url, array $options = []): ResponseInterface
6866
{
@@ -254,9 +252,6 @@ public function request(string $method, string $url, array $options = []): Respo
254252
return new NativeResponse($this->multi, $context, implode('', $url), $options, $info, $resolver, $onProgress, $this->logger);
255253
}
256254

257-
/**
258-
* {@inheritdoc}
259-
*/
260255
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface
261256
{
262257
if ($responses instanceof NativeResponse) {

0 commit comments

Comments
 (0)