diff options
author | Dominique Bongiraud <doume031@wanadoo.fr> | 2010-10-23 09:58:54 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2010-10-24 09:55:31 +0200 |
commit | e96c4eb4c5c97bdad7d93ce2f666ffedf453572a (patch) | |
tree | 92d324c9dc091c2448ba4a80d739cce080025a1f /Authentication/Token | |
parent | 459534e8cca52e07607949922b588b3a33be9f39 (diff) | |
download | symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.zip symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.tar.gz symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.tar.bz2 |
[Security]Fixed CS
Diffstat (limited to 'Authentication/Token')
-rw-r--r-- | Authentication/Token/TokenInterface.php | 2 | ||||
-rw-r--r-- | Authentication/Token/UsernamePasswordToken.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Authentication/Token/TokenInterface.php b/Authentication/Token/TokenInterface.php index a56c01d..9dcc820 100644 --- a/Authentication/Token/TokenInterface.php +++ b/Authentication/Token/TokenInterface.php @@ -23,7 +23,7 @@ interface TokenInterface extends \Serializable * * @return string A string representation */ - public function __toString(); + function __toString(); /** * Returns the user roles. diff --git a/Authentication/Token/UsernamePasswordToken.php b/Authentication/Token/UsernamePasswordToken.php index 5356f8d..ae248e8 100644 --- a/Authentication/Token/UsernamePasswordToken.php +++ b/Authentication/Token/UsernamePasswordToken.php @@ -36,8 +36,7 @@ class UsernamePasswordToken extends Token */ public function setAuthenticated($isAuthenticated) { - if ($isAuthenticated) - { + if ($isAuthenticated) { throw new \LogicException('Cannot set this token to trusted after instantiation.'); } |