diff --git a/src/Symfony/Component/Debug/DebugClassLoader.php b/src/Symfony/Component/Debug/DebugClassLoader.php index 95ccc8798e..c3882fba64 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -224,7 +224,7 @@ class DebugClassLoader $i = count($tail) - 1; $j = count($real) - 1; - while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) { + while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) { --$i; --$j; } diff --git a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php index 2f948d7572..50ffa7fd3c 100644 --- a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php +++ b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php @@ -175,7 +175,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase */ public function testDeprecatedSuper($class, $super, $type) { - set_error_handler(function() { return false; }); + set_error_handler(function () { return false; }); $e = error_reporting(0); trigger_error('', E_USER_DEPRECATED); @@ -205,7 +205,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase public function testDeprecatedSuperInSameNamespace() { - set_error_handler(function() { return false; }); + set_error_handler(function () { return false; }); $e = error_reporting(0); trigger_error('', E_USER_NOTICE); @@ -231,7 +231,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase $this->markTestSkipped('PHP7 already prevents using reserved names.'); } - set_error_handler(function() { return false; }); + set_error_handler(function () { return false; }); $e = error_reporting(0); trigger_error('', E_USER_NOTICE); diff --git a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php index 334127a379..fd5b00cd20 100644 --- a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php +++ b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php @@ -78,7 +78,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * */ public function setFactoryClass($class) { diff --git a/src/Symfony/Component/Filesystem/LockHandler.php b/src/Symfony/Component/Filesystem/LockHandler.php index b53d9f4d52..67e6f8f522 100644 --- a/src/Symfony/Component/Filesystem/LockHandler.php +++ b/src/Symfony/Component/Filesystem/LockHandler.php @@ -69,7 +69,7 @@ class LockHandler } // Silence error reporting - set_error_handler(function() {}); + set_error_handler(function () {}); if (!$this->handle = fopen($this->file, 'r')) { if ($this->handle = fopen($this->file, 'x')) { diff --git a/src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php b/src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php index 857dd5d5a7..6ada02f1ee 100644 --- a/src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php +++ b/src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php @@ -16,7 +16,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; /** * @author Paráda József - */ + */ class ChoiceSubType extends AbstractType { /** diff --git a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php index 9158c5ba06..2dc4362375 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php @@ -1102,7 +1102,7 @@ class OptionsResolver2Dot6Test extends \PHPUnit_Framework_TestCase $this->resolver->setNormalizer('catcher', function (Options $options) { try { return $options['thrower']; - } catch(\Exception $e) { + } catch (\Exception $e) { return false; } }); @@ -1126,7 +1126,7 @@ class OptionsResolver2Dot6Test extends \PHPUnit_Framework_TestCase $this->resolver->setDefault('catcher', function (Options $options) { try { return $options['thrower']; - } catch(\Exception $e) { + } catch (\Exception $e) { return false; } }); diff --git a/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php b/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php index f0a4aa4aed..b4b4f45a83 100644 --- a/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php +++ b/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php @@ -160,7 +160,7 @@ class RouteCompilerTest extends \PHPUnit_Framework_TestCase array('variable', '.', '[^/]++', '_format'), array('variable', '/', '[^/\.]++', 'bar'), array('text', '/foo'), - ), + ), ), ); } diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php index 381936ad00..a2d1a063d3 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php @@ -510,4 +510,3 @@ class StaticPropertyDummy { private static $property = 'value'; } - diff --git a/src/Symfony/Component/Validator/ConstraintViolationInterface.php b/src/Symfony/Component/Validator/ConstraintViolationInterface.php index 1ed09b3d96..ecd07e32b0 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationInterface.php @@ -60,7 +60,6 @@ interface ConstraintViolationInterface * that appear in the message template. * * @see getMessageTemplate() - * * @deprecated since version 2.7, to be replaced by getParameters() in 3.0. */ public function getMessageParameters(); diff --git a/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitRequire54.php b/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitRequire54.php index 240cc926aa..54f86a59db 100644 --- a/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitRequire54.php +++ b/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitRequire54.php @@ -14,7 +14,7 @@ namespace Symfony\Component\VarDumper\Tests\Test; use Symfony\Component\VarDumper\Test\VarDumperTestCase; use Symfony\Component\VarDumper\Test\VarDumperTestTrait; -class VarDumperTestTraitTest extends VarDumperTestCase +class VarDumperTestTraitRequire54 extends VarDumperTestCase { use VarDumperTestTrait; diff --git a/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitTest.php b/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitTest.php index 2be2f8c2a4..a87476be75 100644 --- a/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitTest.php @@ -13,4 +13,3 @@ if (PHP_VERSION_ID >= 50400) { require __DIR__.'/VarDumperTestTraitRequire54.php'; } -