diff --git a/src/Symfony/Bridge/Propel1/Form/DataTransformer/CollectionToArrayTransformer.php b/src/Symfony/Bridge/Propel1/Form/DataTransformer/CollectionToArrayTransformer.php index 98b4e8f19e..6ec82bb099 100644 --- a/src/Symfony/Bridge/Propel1/Form/DataTransformer/CollectionToArrayTransformer.php +++ b/src/Symfony/Bridge/Propel1/Form/DataTransformer/CollectionToArrayTransformer.php @@ -14,7 +14,6 @@ namespace Symfony\Bridge\Propel1\Form\DataTransformer; use \PropelCollection; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\Exception\UnexpectedTypeException; -use Symfony\Component\Form\Exception\TransformationFailedException; /** * CollectionToArrayTransformer class. diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php index 55c0125ed7..e8df918236 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php @@ -11,7 +11,6 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; -use Symfony\Bundle\FrameworkBundle\Routing\Router; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher; @@ -58,4 +57,4 @@ class RedirectableUrlMatcherTest extends \PHPUnit_Framework_TestCase $matcher->match('/foo') ); } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/Extension/Csrf/Type/CsrfType.php b/src/Symfony/Component/Form/Extension/Csrf/Type/CsrfType.php index 0484b8feac..3e2ffc3280 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/Type/CsrfType.php +++ b/src/Symfony/Component/Form/Extension/Csrf/Type/CsrfType.php @@ -13,12 +13,9 @@ namespace Symfony\Component\Form\Extension\Csrf\Type; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormBuilder; -use Symfony\Component\Form\FormError; use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener; use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface; -use Symfony\Component\Form\CallbackValidator; class CsrfType extends AbstractType { diff --git a/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php b/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php index b4de49ba99..63e14e2951 100644 --- a/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php +++ b/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php @@ -248,4 +248,4 @@ class Section { return $this->events; } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php index 825eefe22a..ee8005dc73 100644 --- a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php +++ b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php @@ -37,6 +37,7 @@ abstract class RedirectableUrlMatcher extends UrlMatcher implements Redirectable try { parent::match($pathinfo.'/'); + return $this->redirect($pathinfo.'/', null); } catch (ResourceNotFoundException $e2) { throw $e; diff --git a/tests/Symfony/Tests/Component/HttpFoundation/Session/Flash/AutoExpireFlashBagTest.php b/tests/Symfony/Tests/Component/HttpFoundation/Session/Flash/AutoExpireFlashBagTest.php index 962635d333..c2b34c5611 100644 --- a/tests/Symfony/Tests/Component/HttpFoundation/Session/Flash/AutoExpireFlashBagTest.php +++ b/tests/Symfony/Tests/Component/HttpFoundation/Session/Flash/AutoExpireFlashBagTest.php @@ -12,7 +12,6 @@ namespace Symfony\Tests\Component\HttpFoundation\Session\Flash; use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag as FlashBag; -use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; /** * AutoExpireFlashBagTest diff --git a/tests/Symfony/Tests/Component/Routing/Matcher/UrlMatcherTest.php b/tests/Symfony/Tests/Component/Routing/Matcher/UrlMatcherTest.php index 4852a483a6..eed6cbe5a0 100644 --- a/tests/Symfony/Tests/Component/Routing/Matcher/UrlMatcherTest.php +++ b/tests/Symfony/Tests/Component/Routing/Matcher/UrlMatcherTest.php @@ -216,4 +216,4 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase $matcher = new UrlMatcher($coll, new RequestContext()); $matcher->match('/foo'); } -} \ No newline at end of file +} diff --git a/tests/Symfony/Tests/Component/Translation/Loader/IcuDatFileLoaderTest.php b/tests/Symfony/Tests/Component/Translation/Loader/IcuDatFileLoaderTest.php index 321cba06c7..b234cf3bec 100644 --- a/tests/Symfony/Tests/Component/Translation/Loader/IcuDatFileLoaderTest.php +++ b/tests/Symfony/Tests/Component/Translation/Loader/IcuDatFileLoaderTest.php @@ -12,7 +12,6 @@ namespace Symfony\Tests\Component\Translation\Loader; use Symfony\Component\Translation\Loader\IcuDatFileLoader; -use Symfony\Component\Config\Resource\DirectoryResource; use Symfony\Component\Config\Resource\FileResource; class IcuDatFileLoaderTest extends LocalizedTestCase diff --git a/tests/Symfony/Tests/Component/Translation/Loader/IcuResFileLoaderTest.php b/tests/Symfony/Tests/Component/Translation/Loader/IcuResFileLoaderTest.php index 90f615230c..e152a12c4f 100644 --- a/tests/Symfony/Tests/Component/Translation/Loader/IcuResFileLoaderTest.php +++ b/tests/Symfony/Tests/Component/Translation/Loader/IcuResFileLoaderTest.php @@ -13,7 +13,6 @@ namespace Symfony\Tests\Component\Translation\Loader; use Symfony\Component\Translation\Loader\IcuResFileLoader; use Symfony\Component\Config\Resource\DirectoryResource; -use Symfony\Component\Config\Resource\FileResource; class IcuResFileLoaderTest extends LocalizedTestCase {