Skip to content

Commit eefc100

Browse files
committed
Fix CS
1 parent 3503e3e commit eefc100

16 files changed

+20
-17
lines changed

Config/FileLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class FileLocator extends BaseFileLocator
2828
*/
2929
private $path;
3030

31-
public function __construct(KernelInterface $kernel/*, string $path = null, array $paths = [], bool $triggerDeprecation = true*/)
31+
public function __construct(KernelInterface $kernel/* , string $path = null, array $paths = [], bool $triggerDeprecation = true */)
3232
{
3333
$this->kernel = $kernel;
3434

DataCollector/AjaxDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AjaxDataCollector extends DataCollector
2828
*
2929
* @param \Throwable|null $exception
3030
*/
31-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
31+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
3232
{
3333
// all collecting is done client side
3434
}

DataCollector/ConfigDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function setKernel(KernelInterface $kernel = null)
5757
*
5858
* @param \Throwable|null $exception
5959
*/
60-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
60+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
6161
{
6262
$eom = \DateTime::createFromFormat('d/m/Y', '01/'.Kernel::END_OF_MAINTENANCE);
6363
$eol = \DateTime::createFromFormat('d/m/Y', '01/'.Kernel::END_OF_LIFE);

DataCollector/DataCollectorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface DataCollectorInterface extends ResetInterface
2727
*
2828
* @param \Throwable|null $exception
2929
*/
30-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/);
30+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */);
3131

3232
/**
3333
* Returns the name of the collector.

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function dump(Data $data)
105105
*
106106
* @param \Throwable|null $exception
107107
*/
108-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
108+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
109109
{
110110
if (!$this->dataCount) {
111111
$this->data = [];

DataCollector/EventDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(EventDispatcherInterface $dispatcher = null, Request
4343
*
4444
* @param \Throwable|null $exception
4545
*/
46-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
46+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4747
{
4848
$this->currentRequest = $this->requestStack && $this->requestStack->getMasterRequest() !== $request ? $request : null;
4949
$this->data = [

DataCollector/ExceptionDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ExceptionDataCollector extends DataCollector
2929
*
3030
* @param \Throwable|null $exception
3131
*/
32-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
32+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
3333
{
3434
$exception = 2 < \func_num_args() ? func_get_arg(2) : null;
3535

DataCollector/LoggerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct($logger = null, string $containerPathPrefix = null,
4444
*
4545
* @param \Throwable|null $exception
4646
*/
47-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
47+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4848
{
4949
$this->currentRequest = $this->requestStack && $this->requestStack->getMasterRequest() !== $request ? $request : null;
5050
}

DataCollector/MemoryDataCollector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct()
3333
*
3434
* @param \Throwable|null $exception
3535
*/
36-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
36+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
3737
{
3838
$this->updateMemoryUsage();
3939
}
@@ -114,8 +114,11 @@ private function convertToBytes(string $memoryLimit)
114114

115115
switch (substr($memoryLimit, -1)) {
116116
case 't': $max *= 1024;
117+
// no break
117118
case 'g': $max *= 1024;
119+
// no break
118120
case 'm': $max *= 1024;
121+
// no break
119122
case 'k': $max *= 1024;
120123
}
121124

DataCollector/RequestDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct()
3939
*
4040
* @param \Throwable|null $exception
4141
*/
42-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
42+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4343
{
4444
// attributes are serialized and as they can be anything, they need to be converted to strings.
4545
$attributes = [];

DataCollector/RouterDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct()
3838
*
3939
* @final since Symfony 4.4
4040
*/
41-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
41+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4242
{
4343
if ($response instanceof RedirectResponse) {
4444
$this->data['redirect'] = true;

DataCollector/TimeDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(KernelInterface $kernel = null, Stopwatch $stopwatch
3838
*
3939
* @param \Throwable|null $exception
4040
*/
41-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
41+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
4242
{
4343
if (null !== $this->kernel) {
4444
$startTime = $this->kernel->getStartTime();

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function getBundle($name)
237237
/**
238238
* {@inheritdoc}
239239
*/
240-
public function locateResource($name/*, $dir = null, $first = true, $triggerDeprecation = true*/)
240+
public function locateResource($name/* , $dir = null, $first = true, $triggerDeprecation = true */)
241241
{
242242
if (2 <= \func_num_args()) {
243243
$dir = func_get_arg(1);

KernelInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getBundle($name);
8787
* @throws \InvalidArgumentException if the file cannot be found or the name is not valid
8888
* @throws \RuntimeException if the name contains invalid/unsafe characters
8989
*/
90-
public function locateResource($name/*, $dir = null, $first = true*/);
90+
public function locateResource($name/* , $dir = null, $first = true */);
9191

9292
/**
9393
* Gets the name of the kernel.

Profiler/Profiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function find($ip, $url, $limit, $method, $start, $end, $statusCode = nul
143143
*
144144
* @return Profile|null A Profile instance or null if the profiler is disabled
145145
*/
146-
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
146+
public function collect(Request $request, Response $response/* , \Throwable $exception = null */)
147147
{
148148
$exception = 2 < \func_num_args() ? func_get_arg(2) : null;
149149

Tests/EventListener/SessionListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testResponseIsPrivateIfSessionStarted()
8787
$this->assertTrue($response->headers->hasCacheControlDirective('private'));
8888
$this->assertTrue($response->headers->hasCacheControlDirective('must-revalidate'));
8989
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
90-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
90+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
9191
$this->assertFalse($response->headers->has(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER));
9292
}
9393

@@ -193,7 +193,7 @@ public function testSurrogateMasterRequestIsPublic()
193193
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
194194

195195
$this->assertTrue($response->headers->has('Expires'));
196-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
196+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
197197
}
198198

199199
public function testGetSessionIsCalledOnce()

0 commit comments

Comments
 (0)