summaryrefslogtreecommitdiffstats
path: root/Authentication/Token
diff options
context:
space:
mode:
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.');
}