diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-09-21 20:53:12 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-09-22 10:32:35 +0200 |
commit | 2d2a3fa99c5d006c67dcaed702ac9a306ebe9c41 (patch) | |
tree | 302513f87846d4bc57246b93ba90977ad8b8540b /Core/Authentication | |
parent | 4368c75cbeb587fede098da5a6c5c705fe19f238 (diff) | |
download | symfony-security-2d2a3fa99c5d006c67dcaed702ac9a306ebe9c41.zip symfony-security-2d2a3fa99c5d006c67dcaed702ac9a306ebe9c41.tar.gz symfony-security-2d2a3fa99c5d006c67dcaed702ac9a306ebe9c41.tar.bz2 |
fixed CS
Diffstat (limited to 'Core/Authentication')
-rw-r--r-- | Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php | 16 | ||||
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php index 21ce8d0..b1e6c38 100644 --- a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php +++ b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php @@ -56,9 +56,9 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn return; } - if (!$user = $token->getUser()) { - throw new BadCredentialsException('No pre-authenticated principal found in request.'); - } + if (!$user = $token->getUser()) { + throw new BadCredentialsException('No pre-authenticated principal found in request.'); + } /* if (null === $token->getCredentials()) { throw new BadCredentialsException('No pre-authenticated credentials found in request.'); @@ -66,13 +66,13 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn */ $user = $this->userProvider->loadUserByUsername($user); - $this->userChecker->checkPostAuth($user); + $this->userChecker->checkPostAuth($user); - $authenticatedToken = new PreAuthenticatedToken($user, $token->getCredentials(), $this->providerKey, $user->getRoles()); - $authenticatedToken->setAttributes($token->getAttributes()); + $authenticatedToken = new PreAuthenticatedToken($user, $token->getCredentials(), $this->providerKey, $user->getRoles()); + $authenticatedToken->setAttributes($token->getAttributes()); - return $authenticatedToken; - } + return $authenticatedToken; + } /** * {@inheritdoc} diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index 993960b..6813adf 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -154,7 +154,7 @@ abstract class AbstractToken implements TokenInterface is_object($this->user) ? clone $this->user : $this->user, $this->authenticated, $this->roles, - $this->attributes + $this->attributes, ) ); } |