From 3fd5ebbc3e177a43571d74d85833d342e7eca600 Mon Sep 17 00:00:00 2001 From: Leny BERNARD Date: Thu, 20 Oct 2016 00:27:23 +0200 Subject: [PATCH] Applied fixes from StyleCI (#48) --- EventListener/AlertifyListener.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/EventListener/AlertifyListener.php b/EventListener/AlertifyListener.php index 1952931..82690a2 100644 --- a/EventListener/AlertifyListener.php +++ b/EventListener/AlertifyListener.php @@ -11,14 +11,12 @@ namespace Troopers\AlertifyBundle\EventListener; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Troopers\AlertifyBundle\Handler\AlertifySessionHandler; /** @@ -72,7 +70,7 @@ protected function injectAlertify(Response $response, Request $request) public static function getSubscribedEvents() { return [ - KernelEvents::RESPONSE => array('onKernelResponse'), + KernelEvents::RESPONSE => ['onKernelResponse'], ]; } }