Skip to content

Commit aac1dff

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: fixed CS [Process] fixed some volatile tests [HttpKernel] fixed a volatile test [HttpFoundation] fixed some volatile tests Use getPathname() instead of string casting to get BinaryFileReponse file path Conflicts: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php src/Symfony/Component/Config/Definition/ReferenceDumper.php src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php src/Symfony/Component/Console/Application.php src/Symfony/Component/Console/Tests/ApplicationTest.php src/Symfony/Component/Filesystem/Exception/IOException.php src/Symfony/Component/Form/Extension/Templating/TemplatingExtension.php src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php src/Symfony/Component/PropertyAccess/PropertyAccessor.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTest.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php src/Symfony/Component/Routing/Tests/Loader/AnnotationClassLoaderTest.php src/Symfony/Component/Serializer/Encoder/XmlEncoder.php src/Symfony/Component/Validator/Constraints/CollectionValidator.php src/Symfony/Component/Validator/Tests/ExecutionContextTest.php
2 parents 6edad2e + a6af39b commit aac1dff

26 files changed

+41
-54
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function collect(Request $request, Response $response, \Exception $except
7070
'wincache_enabled' => extension_loaded('wincache') && ini_get('wincache.ocenabled'),
7171
'zend_opcache_enabled' => extension_loaded('Zend OPcache') && ini_get('opcache.enable'),
7272
'bundles' => array(),
73-
'sapi_name' => php_sapi_name()
73+
'sapi_name' => php_sapi_name(),
7474
);
7575

7676
if (isset($this->kernel)) {

DataCollector/LoggerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function lateCollect()
4949
$this->data = array(
5050
'error_count' => $this->logger->countErrors(),
5151
'logs' => $this->sanitizeLogs($this->logger->getLogs()),
52-
'deprecation_count' => $this->computeDeprecationCount()
52+
'deprecation_count' => $this->computeDeprecationCount(),
5353
);
5454
}
5555
}

Debug/TraceableEventDispatcher.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function getListenerInfo($listener, $eventId, $eventName)
268268
if ($listener instanceof \Closure) {
269269
$info += array(
270270
'type' => 'Closure',
271-
'pretty' => 'closure'
271+
'pretty' => 'closure',
272272
);
273273
} elseif (is_string($listener)) {
274274
try {
@@ -346,7 +346,8 @@ private function preDispatch($eventName, $eventId, Event $event)
346346
// which must be caught.
347347
try {
348348
$this->stopwatch->openSection($token);
349-
} catch (\LogicException $e) {}
349+
} catch (\LogicException $e) {
350+
}
350351
break;
351352
}
352353
}
@@ -367,7 +368,8 @@ private function postDispatch($eventName, $eventId, Event $event)
367368
$token = $event->getResponse()->headers->get('X-Debug-Token');
368369
try {
369370
$this->stopwatch->stopSection($token);
370-
} catch (\LogicException $e) {}
371+
} catch (\LogicException $e) {
372+
}
371373
break;
372374
}
373375

EventListener/FragmentListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\HttpKernel\KernelEvents;
1717
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
1818
use Symfony\Component\HttpKernel\UriSigner;
19-
use Symfony\Component\HttpKernel\HttpKernelInterface;
2019
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2120

2221
/**

EventListener/SessionListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

14-
use Symfony\Component\HttpKernel\HttpKernelInterface;
1514
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1615
use Symfony\Component\HttpKernel\KernelEvents;
1716
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

EventListener/TestSessionListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Symfony\Component\HttpFoundation\Cookie;
15-
use Symfony\Component\HttpKernel\HttpKernelInterface;
1615
use Symfony\Component\HttpKernel\KernelEvents;
1716
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
1817
use Symfony\Component\HttpKernel\Event\GetResponseEvent;

HttpCache/HttpCache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public function getKernel()
152152
return $this->kernel;
153153
}
154154

155-
156155
/**
157156
* Gets the Esi instance
158157
*

Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ protected function initializeBundles()
517517
array_pop($bundleMap);
518518
}
519519
}
520-
521520
}
522521

523522
/**

Profiler/BaseMemcacheProfilerStorage.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ public function find($ip, $url, $limit, $method, $start = null, $end = null)
5353
$result = array();
5454

5555
foreach ($profileList as $item) {
56-
5756
if ($limit === 0) {
5857
break;
5958
}
6059

61-
if ($item=='') {
60+
if ($item == '') {
6261
continue;
6362
}
6463

@@ -166,7 +165,6 @@ public function write(Profile $profile)
166165
$profileIndexed = false !== $this->getValue($this->getItemName($profile->getToken()));
167166

168167
if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime)) {
169-
170168
if (!$profileIndexed) {
171169
// Add to index
172170
$indexName = $this->getIndexName();
@@ -304,5 +302,4 @@ private function isItemNameValid($name)
304302

305303
return true;
306304
}
307-
308305
}

Profiler/MemcacheProfilerStorage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ protected function appendValue($key, $value, $expiration = 0)
9191
$memcache = $this->getMemcache();
9292

9393
if (method_exists($memcache, 'append')) {
94-
9594
// Memcache v3.0
9695
if (!$result = $memcache->append($key, $value, false, $expiration)) {
9796
return $memcache->set($key, $value, false, $expiration);

0 commit comments

Comments
 (0)