From 3a8b2eded11932f41d617c285ffeb67e5614ccc9 Mon Sep 17 00:00:00 2001 From: GDIBass Date: Thu, 17 Aug 2017 23:45:14 -0700 Subject: [PATCH] Code standard fixes --- src/Symfony/Component/Workflow/EventListener/GuardListener.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Symfony/Component/Workflow/EventListener/GuardListener.php b/src/Symfony/Component/Workflow/EventListener/GuardListener.php index 798af6ae61..3e402e9280 100644 --- a/src/Symfony/Component/Workflow/EventListener/GuardListener.php +++ b/src/Symfony/Component/Workflow/EventListener/GuardListener.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Workflow\EventListener; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface; -use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; @@ -57,7 +56,7 @@ class GuardListener $token = $this->tokenStorage->getToken(); if (null === $token) { - throw new \Exception("No token is set"); + throw new \Exception('No token is set'); } if (null !== $this->roleHierarchy) {