From d883ba098418bb974c86a12c3c2bf72981bfb02f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 15 May 2015 16:02:48 +0200 Subject: [PATCH] fixed CS --- .../Helper/{AssetsHelper.php => AssetsHelperTest.php} | 0 src/Symfony/Component/Finder/Tests/GlobTest.php | 1 - src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php | 2 +- src/Symfony/Component/Validator/Constraints/IpValidator.php | 1 - .../Component/Validator/Constraints/UuidValidator.php | 6 +++--- 5 files changed, 4 insertions(+), 6 deletions(-) rename src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/{AssetsHelper.php => AssetsHelperTest.php} (100%) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelper.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php similarity index 100% rename from src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelper.php rename to src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/AssetsHelperTest.php diff --git a/src/Symfony/Component/Finder/Tests/GlobTest.php b/src/Symfony/Component/Finder/Tests/GlobTest.php index 22ee373389..24cad96e05 100755 --- a/src/Symfony/Component/Finder/Tests/GlobTest.php +++ b/src/Symfony/Component/Finder/Tests/GlobTest.php @@ -22,5 +22,4 @@ class GlobTest extends \PHPUnit_Framework_TestCase $this->assertEquals(Glob::toRegex('.*', true, true, ''), '^\.[^/]*$'); $this->assertEquals(Glob::toRegex('.*', true, true, '/'), '/^\.[^/]*$/'); } - } diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php index 15aed67f6d..97e68f66f9 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php @@ -66,7 +66,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase // should set a response, but does not }); - $kernel = new HttpKernel($dispatcher, $this->getResolver(function () use($exception) { throw $exception; })); + $kernel = new HttpKernel($dispatcher, $this->getResolver(function () use ($exception) { throw $exception; })); try { $kernel->handle(new Request(), HttpKernelInterface::MASTER_REQUEST, true); diff --git a/src/Symfony/Component/Validator/Constraints/IpValidator.php b/src/Symfony/Component/Validator/Constraints/IpValidator.php index 15e5720de2..8ec8068e79 100644 --- a/src/Symfony/Component/Validator/Constraints/IpValidator.php +++ b/src/Symfony/Component/Validator/Constraints/IpValidator.php @@ -108,4 +108,3 @@ class IpValidator extends ConstraintValidator } } } - diff --git a/src/Symfony/Component/Validator/Constraints/UuidValidator.php b/src/Symfony/Component/Validator/Constraints/UuidValidator.php index d64e6a49a5..08f9e27b73 100644 --- a/src/Symfony/Component/Validator/Constraints/UuidValidator.php +++ b/src/Symfony/Component/Validator/Constraints/UuidValidator.php @@ -238,15 +238,15 @@ class UuidValidator extends ConstraintValidator ) ->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR) ->addViolation(); - } else { - $this->buildViolation($constraint->message) + } else { + $this->buildViolation($constraint->message) ->setParameter( '{{ value }}', $this->formatValue($value) ) ->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR) ->addViolation(); - } + } return; }