8000 removed unused code · symfony/symfony@c60bdf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit c60bdf5

Browse files
committed
removed unused code
1 parent d7999d7 commit c60bdf5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass;
1313

1414
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
15-
use Symfony\Component\HttpKernel\Kernel;
16-
1715
use Symfony\Component\DependencyInjection\ContainerBuilder;
1816
use Symfony\Component\DependencyInjection\Definition;
1917
use Symfony\Component\DependencyInjection\Reference;

src/Symfony/Component/Intl/Util/IntlTestHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public static function requireIntl(\PhpUnit_Framework_TestCase $testCase)
3939
// * the intl extension is loaded with version Intl::getIcuStubVersion()
4040
// * the intl extension is not loaded
4141

42-
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
42+
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', 1)) {
4343
$testCase->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion());
4444
}
4545

46-
if (IcuVersion::compare(Intl::getIcuDataVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
46+
if (IcuVersion::compare(Intl::getIcuDataVersion(), Intl::getIcuStubVersion(), '!=', 1)) {
4747
$testCase->markTestSkipped('Please change the Icu component to version 1.0.x or 1.' . IcuVersion::normalize(Intl::getIcuStubVersion(), 1) . '.x');
4848
}
4949

@@ -75,12 +75,12 @@ public static function requireFullIntl(\PhpUnit_Framework_TestCase $testCase)
7575
}
7676

7777
// ... and only if the version is *one specific version* ...
78-
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
78+
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', 1)) {
7979
$testCase->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion());
8080
}
8181

8282
// ... and only if the data in the Icu component matches that version.
83-
if (IcuVersion::compare(Intl::getIcuDataVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
83+
if (IcuVersion::compare(Intl::getIcuDataVersion(), Intl::getIcuStubVersion(), '!=', 1)) {
8484
$testCase->markTestSkipped('Please change the Icu component to version 1.0.x or 1.' . IcuVersion::normalize(Intl::getIcuStubVersion(), 1) . '.x');
8585
}
8686

0 commit comments

Comments
 (0)
0