Skip to content

Commit e5b0ee1

Browse files
GrahamCampbellfabpot
authored andcommitted
[2.6] CS Fixes And Removed An Unused Import
1 parent cbf46e9 commit e5b0ee1

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

EventListener/DumpListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class DumpListener implements EventSubscriberInterface
2828
private $dumper;
2929

3030
/**
31-
* @param ClonerInterface $cloner Cloner service.
32-
* @param DataDumperInterface $dumper Dumper service.
31+
* @param ClonerInterface $cloner Cloner service.
32+
* @param DataDumperInterface $dumper Dumper service.
3333
*/
3434
public function __construct(ClonerInterface $cloner, DataDumperInterface $dumper)
3535
{

HttpCache/Esi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function hasSurrogateCapability(Request $request)
7373
*
7474
* @param Request $request A Request instance
7575
*
76-
* @return bool true if one surrogate has ESI/1.0 capability, false otherwise
76+
* @return bool true if one surrogate has ESI/1.0 capability, false otherwise
7777
*
7878
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use hasSurrogateCapability() instead
7979
*/
@@ -142,7 +142,7 @@ public function needsParsing(Response $response)
142142
*
143143
* @param Response $response A Response instance
144144
*
145-
* @return bool true if the Response needs to be parsed, false otherwise
145+
* @return bool true if the Response needs to be parsed, false otherwise
146146
*
147147
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use needsParsing() instead
148148
*/

HttpCache/HttpCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public function getSurrogate()
167167
* Gets the Esi instance
168168
*
169169
* @throws \LogicException
170+
*
170171
* @return Esi An Esi instance
171172
*
172173
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use getSurrogate() instead

HttpCache/SurrogateInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function createCacheStrategy();
3535
*
3636
* @param Request $request A Request instance
3737
*
38-
* @return bool true if one surrogate has Surrogate capability, false otherwise
38+
* @return bool true if one surrogate has Surrogate capability, false otherwise
3939
*/
4040
public function hasSurrogateCapability(Request $request);
4141

@@ -60,17 +60,17 @@ public function addSurrogateControl(Response $response);
6060
*
6161
* @param Response $response A Response instance
6262
*
63-
* @return bool true if the Response needs to be parsed, false otherwise
63+
* @return bool true if the Response needs to be parsed, false otherwise
6464
*/
6565
public function needsParsing(Response $response);
6666

6767
/**
6868
* Renders a Surrogate tag.
6969
*
70-
* @param string $uri A URI
71-
* @param string $alt An alternate URI
72-
* @param bool $ignoreErrors Whether to ignore errors or not
73-
* @param string $comment A comment to add as an esi:include tag
70+
* @param string $uri A URI
71+
* @param string $alt An alternate URI
72+
* @param bool $ignoreErrors Whether to ignore errors or not
73+
* @param string $comment A comment to add as an esi:include tag
7474
*
7575
* @return string
7676
*/

Tests/DataCollector/DumpDataCollectorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function testDump()
2929

3030
$this->assertSame('dump', $collector->getName());
3131

32-
$collector->dump($data); $line = __LINE__;
32+
$collector->dump($data);
33+
$line = __LINE__;
3334
$this->assertSame(1, $collector->getDumpsCount());
3435

3536
$dump = $collector->getDumps('html');
@@ -61,7 +62,8 @@ public function testFlush()
6162
{
6263
$data = new Data(array(array(456)));
6364
$collector = new DumpDataCollector();
64-
$collector->dump($data); $line = __LINE__;
65+
$collector->dump($data);
66+
$line = __LINE__;
6567

6668
ob_start();
6769
$collector = null;

0 commit comments

Comments
 (0)