Skip to content

Commit 18b4f0a

Browse files
authored
Merge pull request #548 from FriendsOfSymfony/cs-fixer
cs fix
2 parents 4f54d89 + c4e495c commit 18b4f0a

34 files changed

Lines changed: 13 additions & 196 deletions

.readthedocs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
38
sphinx:
49
configuration: doc/conf.py
510

@@ -8,6 +13,5 @@ formats:
813
- pdf
914

1015
python:
11-
version: "3.7"
1216
install:
1317
- requirements: doc/requirements.txt

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,10 @@
5555
"psr-4": {
5656
"FOS\\HttpCache\\Tests\\": "tests/"
5757
}
58+
},
59+
"config": {
60+
"allow-plugins": {
61+
"php-http/discovery": true
62+
}
5863
}
5964
}

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# General information about the project.
5656
project = 'FOSHttpCache'
57-
copyright = u'2014–2018, FriendsOfSymfony'
57+
copyright = u'2014–now, FriendsOfSymfony'
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the

src/EventListener/LogListener.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public function __construct(LoggerInterface $logger)
3232
$this->logger = $logger;
3333
}
3434

35-
/**
36-
* {@inheritdoc}
37-
*/
3835
public static function getSubscribedEvents(): array
3936
{
4037
return [

src/ProxyClient/Cloudflare.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ public function invalidateTags(array $tags)
8282
}
8383

8484
/**
85-
* {@inheritdoc}
86-
*
8785
* @see https://api.cloudflare.com/#zone-purge-files-by-url
8886
* @see https://developers.cloudflare.com/cache/how-to/purge-cache#purge-by-single-file-by-url For details on headers you can pass to clear the cache correctly
8987
*/
@@ -102,8 +100,6 @@ public function purge($url, array $headers = [])
102100
}
103101

104102
/**
105-
* {@inheritdoc}
106-
*
107103
* @see https://api.cloudflare.com/#zone-purge-all-files
108104
*/
109105
public function clear()
@@ -153,9 +149,6 @@ protected function queueRequest($method, $url, array $headers, $validateHost = t
153149
);
154150
}
155151

156-
/**
157-
* {@inheritdoc}
158-
*/
159152
protected function configureOptions()
160153
{
161154
$resolver = parent::configureOptions();

src/ProxyClient/Fastly.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public function __construct(
5858
}
5959

6060
/**
61-
* {@inheritdoc}
62-
*
6361
* @see https://docs.fastly.com/api/purge#purge_db35b293f8a724717fcf25628d713583
6462
*/
6563
public function invalidateTags(array $tags)
@@ -85,8 +83,6 @@ public function invalidateTags(array $tags)
8583
}
8684

8785
/**
88-
* {@inheritdoc}
89-
*
9086
* @see https://docs.fastly.com/api/purge#soft_purge_0c4f56f3d68e9bed44fb8b638b78ea36
9187
* @see https://docs.fastly.com/guides/purging/authenticating-api-purge-requests#purging-urls-with-an-api-token
9288
*/
@@ -106,9 +102,6 @@ public function purge($url, array $headers = [])
106102
return $this;
107103
}
108104

109-
/**
110-
* {@inheritdoc}
111-
*/
112105
public function refresh($url, array $headers = [])
113106
{
114107
// First soft purge url
@@ -131,8 +124,6 @@ public function refresh($url, array $headers = [])
131124
}
132125

133126
/**
134-
* {@inheritdoc}
135-
*
136127
* @see https://docs.fastly.com/api/purge#purge_bee5ed1a0cfd541e8b9f970a44718546
137128
*
138129
* Warning:
@@ -165,9 +156,6 @@ protected function queueRequest($method, $url, array $headers, $validateHost = t
165156
);
166157
}
167158

168-
/**
169-
* {@inheritdoc}
170-
*/
171159
protected function configureOptions()
172160
{
173161
$resolver = parent::configureOptions();

src/ProxyClient/HttpDispatcher.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ public function __construct(
107107
$this->setBaseUri($baseUri);
108108
}
109109

110-
/**
111-
* {@inheritdoc}
112-
*/
113110
public function invalidate(RequestInterface $invalidationRequest, $validateHost = true)
114111
{
115112
if ($validateHost && !$this->baseUri && !$invalidationRequest->getUri()->getHost()) {
@@ -125,9 +122,6 @@ public function invalidate(RequestInterface $invalidationRequest, $validateHost
125122
$this->queue[$signature] = $invalidationRequest;
126123
}
127124

128-
/**
129-
* {@inheritdoc}
130-
*/
131125
public function flush()
132126
{
133127
$queue = $this->queue;

src/ProxyClient/HttpProxyClient.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ public function __construct(
6363
$this->requestFactory = $messageFactory ?: MessageFactoryDiscovery::find();
6464
}
6565

66-
/**
67-
* {@inheritdoc}
68-
*/
6966
public function flush()
7067
{
7168
return $this->httpDispatcher->flush();

src/ProxyClient/Nginx.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ class Nginx extends HttpProxyClient implements PurgeCapable, RefreshCapable
3131

3232
public const HTTP_HEADER_REFRESH = 'X-Refresh';
3333

34-
/**
35-
* {@inheritdoc}
36-
*/
3734
public function refresh($url, array $headers = [])
3835
{
3936
$headers = array_merge($headers, [self::HTTP_HEADER_REFRESH => '1']);
@@ -42,9 +39,6 @@ public function refresh($url, array $headers = [])
4239
return $this;
4340
}
4441

45-
/**
46-
* {@inheritdoc}
47-
*/
4842
public function purge($url, array $headers = [])
4943
{
5044
$purgeUrl = $this->buildPurgeUrl($url);
@@ -53,9 +47,6 @@ public function purge($url, array $headers = [])
5347
return $this;
5448
}
5549

56-
/**
57-
* {@inheritdoc}
58-
*/
5950
protected function configureOptions()
6051
{
6152
$resolver = parent::configureOptions();

src/ProxyClient/Noop.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,57 +28,36 @@
2828
*/
2929
class Noop implements ProxyClient, BanCapable, PurgeCapable, RefreshCapable, TagCapable, ClearCapable
3030
{
31-
/**
32-
* {@inheritdoc}
33-
*/
3431
public function ban(array $headers)
3532
{
3633
return $this;
3734
}
3835

39-
/**
40-
* {@inheritdoc}
41-
*/
4236
public function banPath($path, $contentType = null, $hosts = null)
4337
{
4438
return $this;
4539
}
4640

47-
/**
48-
* {@inheritdoc}
49-
*/
5041
public function invalidateTags(array $tags)
5142
{
5243
return $this;
5344
}
5445

55-
/**
56-
* {@inheritdoc}
57-
*/
5846
public function purge($url, array $headers = [])
5947
{
6048
return $this;
6149
}
6250

63-
/**
64-
* {@inheritdoc}
65-
*/
6651
public function refresh($url, array $headers = [])
6752
{
6853
return $this;
6954
}
7055

71-
/**
72-
* {@inheritdoc}
73-
*/
7456
public function flush()
7557
{
7658
return 0;
7759
}
7860

79-
/**
80-
* {@inheritdoc}
81-
*/
8261
public function clear()
8362
{
8463
return $this;

0 commit comments

Comments
 (0)