Commit 30a5aa59 authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent 9ae407fc
......@@ -11,7 +11,6 @@
namespace Silex\Application;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
use Symfony\Component\Security\Core\User\UserInterface;
......
......@@ -14,8 +14,6 @@ namespace Silex\Provider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Symfony\Component\Form\Extension\Csrf\CsrfExtension;
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\DefaultCsrfProvider;
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider;
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationExtension;
use Symfony\Component\Form\Extension\Validator\ValidatorExtension as FormValidatorExtension;
use Symfony\Component\Form\Forms;
......
......@@ -15,7 +15,7 @@ use Symfony\Component\HttpKernel\EventListener\ResponseListener;
class KernelServiceProvider implements ServiceProviderInterface, EventListenerProviderInterface
{
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function register(Container $pimple)
{
......@@ -25,7 +25,7 @@ class KernelServiceProvider implements ServiceProviderInterface, EventListenerPr
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function subscribe(Container $app, EventDispatcherInterface $dispatcher)
{
......
......@@ -21,7 +21,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\RequestMatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\Security\Core\SecurityContextInterface;
use Symfony\Component\Security\Core\User\UserChecker;
use Symfony\Component\Security\Core\User\InMemoryUserProvider;
......
......@@ -31,7 +31,7 @@ class SessionListener extends BaseSessionListener
protected function getSession()
{
if (!isset($this->app['session'])) {
return null;
return;
}
return $this->app['session'];
......
......@@ -31,7 +31,7 @@ class TestSessionListener extends BaseTestSessionListener
protected function getSession()
{
if (!isset($this->app['session'])) {
return null;
return;
}
return $this->app['session'];
......
......@@ -71,7 +71,6 @@ class TranslationServiceProvider implements ServiceProviderInterface, EventListe
$app['translator.cache_dir'] = null;
}
public function subscribe(Container $app, EventDispatcherInterface $dispatcher)
{
$dispatcher->addSubscriber($app['translator.listener']);
......
......@@ -14,10 +14,7 @@ namespace Silex\Provider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Silex\Provider\Validator\ConstraintValidatorFactory;
use Silex\Application;
use Symfony\Component\Validator\Validator;
use Symfony\Component\Validator\DefaultTranslator;
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
use Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory;
use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader;
use Symfony\Component\Validator\Validation;
......
......@@ -30,7 +30,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
$requestMatcher = $this->getMock('Symfony\Component\Routing\Matcher\RequestMatcherInterface');
$matcher = new LazyRequestMatcher(function () use ($requestMatcher, &$callCounter) {
$callCounter++;
++$callCounter;
return $requestMatcher;
});
......
......@@ -12,7 +12,6 @@
namespace Silex\Tests\Provider;
use Silex\Application;
use Silex\Provider\RoutingServiceProvider;
use Symfony\Component\HttpFoundation\Request;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment