Skip to content

Commit dcb74d5

Browse files
authored
Merge pull request #481 from FriendsOfSymfony/analysis-ajLmk0
Apply fixes from StyleCI
2 parents 90e10a2 + 7d1919f commit dcb74d5

File tree

5 files changed

+33
-16
lines changed

5 files changed

+33
-16
lines changed

src/ProxyClient/Symfony.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ public function invalidateTags(array $tags)
105105
public function clear()
106106
{
107107
$this->queueRequest(
108-
$this->options['purge_method'], '/',
108+
$this->options['purge_method'],
109+
'/',
109110
[$this->options['clear_cache_header'] => 'true'],
110111
false
111112
);

tests/Unit/ProxyClient/FastlyTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ function (RequestInterface $request) {
6969

7070
return true;
7171
}
72-
), false
72+
),
73+
false
7374
);
7475

7576
$fastly->invalidateTags(['post-1', 'post,type-3']);
@@ -91,7 +92,8 @@ function (RequestInterface $request) {
9192

9293
return true;
9394
}
94-
), false
95+
),
96+
false
9597
);
9698

9799
$fastly->invalidateTags(['post-1', 'post,type-3']);
@@ -130,7 +132,8 @@ function (RequestInterface $request) {
130132

131133
return true;
132134
}
133-
), false
135+
),
136+
false
134137
);
135138

136139
$fastly->purge('/url', ['X-Foo' => 'bar']);
@@ -149,7 +152,8 @@ function (RequestInterface $request) {
149152

150153
return true;
151154
}
152-
), false
155+
),
156+
false
153157
);
154158

155159
$fastly->refresh('/fresh');
@@ -173,7 +177,8 @@ function (RequestInterface $request) {
173177

174178
return true;
175179
}
176-
), false
180+
),
181+
false
177182
);
178183

179184
$fastly->clear();

tests/Unit/ProxyClient/HttpDispatcherTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ public function testSetServersThrowsInvalidServerException()
273273
public function testFlushEmpty()
274274
{
275275
$httpDispatcher = new HttpDispatcher(
276-
['127.0.0.1', '127.0.0.2'], 'fos.lo', $this->httpClient
276+
['127.0.0.1', '127.0.0.2'],
277+
'fos.lo',
278+
$this->httpClient
277279
);
278280
$this->assertEquals(0, $httpDispatcher->flush());
279281

tests/Unit/ProxyClient/SymfonyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function (RequestInterface $request) {
4646

4747
return true;
4848
}
49-
), true
49+
),
50+
true
5051
);
5152

5253
$symfony->purge('/url', ['X-Foo' => 'bar']);

tests/Unit/ProxyClient/VarnishTest.php

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ function (RequestInterface $request) {
5757

5858
return true;
5959
}
60-
), false
60+
),
61+
false
6162
);
6263

6364
$varnish->ban([
@@ -79,7 +80,8 @@ function (RequestInterface $request) {
7980

8081
return true;
8182
}
82-
), false
83+
),
84+
false
8385
);
8486
$hosts = ['fos.lo', 'fos2.lo'];
8587
$varnish->banPath('/articles/.*', 'text/html', $hosts);
@@ -100,7 +102,8 @@ function (RequestInterface $request) {
100102

101103
return true;
102104
}
103-
), false
105+
),
106+
false
104107
);
105108

106109
$varnish->invalidateTags(['post-1', 'post,type-3']);
@@ -122,7 +125,8 @@ function (RequestInterface $request) {
122125

123126
return true;
124127
}
125-
), false
128+
),
129+
false
126130
);
127131

128132
$varnish->invalidateTags(['post-1', 'post,type-3']);
@@ -159,7 +163,8 @@ function (RequestInterface $request) {
159163

160164
return true;
161165
}
162-
), false
166+
),
167+
false
163168
);
164169

165170
$varnish->invalidateTags(['mytag', 'othertag']);
@@ -180,7 +185,8 @@ function (RequestInterface $request) {
180185

181186
return true;
182187
}
183-
), false
188+
),
189+
false
184190
);
185191

186192
$varnish->invalidateTags(['post-1', 'post,type-3']);
@@ -208,7 +214,8 @@ function (RequestInterface $request) {
208214

209215
return true;
210216
}
211-
), true
217+
),
218+
true
212219
);
213220

214221
$varnish->purge('/url', ['X-Foo' => 'bar']);
@@ -226,7 +233,8 @@ function (RequestInterface $request) {
226233

227234
return true;
228235
}
229-
), true
236+
),
237+
true
230238
);
231239

232240
$varnish->refresh('/fresh');

0 commit comments

Comments
 (0)