summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Token/AbstractToken.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-12-18 14:42:59 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-12-18 14:42:59 +0100
commit1df44a7f54710ec4f270e7398bf1908af8f8ada8 (patch)
tree065956ec1dbd8d78834238a2b1cfbe9a72301186 /Core/Authentication/Token/AbstractToken.php
parentc7a14cf650b68dc67a5bb6f5056ee7ce88b849c5 (diff)
downloadsymfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.zip
symfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.tar.gz
symfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.tar.bz2
fixed CS
Diffstat (limited to 'Core/Authentication/Token/AbstractToken.php')
-rw-r--r--Core/Authentication/Token/AbstractToken.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php
index ee6b207..dc21684 100644
--- a/Core/Authentication/Token/AbstractToken.php
+++ b/Core/Authentication/Token/AbstractToken.php
@@ -42,7 +42,7 @@ abstract class AbstractToken implements TokenInterface
foreach ($roles as $role) {
if (is_string($role)) {
$role = new Role($role);
- } else if (!$role instanceof RoleInterface) {
+ } elseif (!$role instanceof RoleInterface) {
throw new \InvalidArgumentException(sprintf('$roles must be an array of strings, or RoleInterface instances, but got %s.', gettype($role)));
}
@@ -83,13 +83,13 @@ abstract class AbstractToken implements TokenInterface
if (null === $this->user) {
$changed = false;
- } else if ($this->user instanceof UserInterface) {
+ } elseif ($this->user instanceof UserInterface) {
if (!$user instanceof UserInterface) {
$changed = true;
} else {
$changed = !$this->user->equals($user);
}
- } else if ($user instanceof UserInterface) {
+ } elseif ($user instanceof UserInterface) {
$changed = true;
} else {
$changed = (string) $this->user !== (string) $user;