summaryrefslogtreecommitdiffstats
path: root/Authentication/Token
diff options
context:
space:
mode:
authorDominique Bongiraud <doume031@wanadoo.fr>2010-10-23 09:58:54 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2010-10-24 09:55:31 +0200
commite96c4eb4c5c97bdad7d93ce2f666ffedf453572a (patch)
tree92d324c9dc091c2448ba4a80d739cce080025a1f /Authentication/Token
parent459534e8cca52e07607949922b588b3a33be9f39 (diff)
downloadsymfony-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.php2
-rw-r--r--Authentication/Token/UsernamePasswordToken.php3
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.');
}