Skip to content

Commit 3a8b2ed

Browse files
author
GDIBass
committed
Code standard fixes
1 parent 22b44e2 commit 3a8b2ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Workflow/EventListener/GuardListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Workflow\EventListener;
1313

1414
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
1615
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1716
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
1817
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
@@ -57,7 +56,7 @@ private function getVariables(GuardEvent $event)
5756
$token = $this->tokenStorage->getToken();
5857

5958
if (null === $token) {
60-
throw new \Exception("No token is set");
59+
throw new \Exception('No token is set');
6160
}
6261

6362
if (null !== $this->roleHierarchy) {

0 commit comments

Comments
 (0)