Skip to content

Commit 48eb520

Browse files
committed
Merge branch '2.4' into 2.5
* 2.4: fixed CS [Process] fixed some volatile tests [HttpKernel] fixed a volatile test [HttpFoundation] fixed some volatile tests [Tests] PHPUnit Optimizations Use getPathname() instead of string casting to get BinaryFileReponse file path Conflicts: src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php src/Symfony/Component/Process/Tests/AbstractProcessTest.php src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php src/Symfony/Component/Validator/Constraints/ChoiceValidator.php src/Symfony/Component/Validator/Constraints/CollectionValidator.php src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php src/Symfony/Component/Validator/Tests/ValidationVisitorTest.php src/Symfony/Component/Yaml/Parser.php
2 parents e667a9e + aac1dff commit 48eb520

22 files changed

+23
-38
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)) {

Debug/TraceableEventDispatcher.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ protected function preDispatch($eventName, Event $event)
6565
// which must be caught.
6666
try {
6767
$this->stopwatch->openSection($token);
68-
} catch (\LogicException $e) {}
68+
} catch (\LogicException $e) {
69+
}
6970
break;
7071
}
7172
}
@@ -89,7 +90,8 @@ protected function postDispatch($eventName, Event $event)
8990
$token = $event->getResponse()->headers->get('X-Debug-Token');
9091
try {
9192
$this->stopwatch->stopSection($token);
92-
} catch (\LogicException $e) {}
93+
} catch (\LogicException $e) {
94+
}
9395
break;
9496
}
9597
}

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);

Profiler/MongoDbProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function write(Profile $profile)
8282
'ip' => $profile->getIp(),
8383
'method' => $profile->getMethod(),
8484
'url' => $profile->getUrl(),
85-
'time' => $profile->getTime()
85+
'time' => $profile->getTime(),
8686
);
8787

8888
$result = $this->getMongo()->update(array('_id' => $profile->getToken()), array_filter($record, function ($v) { return !empty($v); }), array('upsert' => true));

0 commit comments

Comments
 (0)