summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander <iam.asm89@gmail.com>2013-01-07 20:34:14 +0100
committerAlexander <iam.asm89@gmail.com>2013-01-07 21:11:19 +0100
commitf116f931eaf85af90449300267c91bd8a22175c2 (patch)
tree7d88229d3dd017fe5d6032f0cea12c606b53bf8d
parentcd47f40584b192f6bc94e48dfbe7545280f382c9 (diff)
downloadsymfony-security-f116f931eaf85af90449300267c91bd8a22175c2.zip
symfony-security-f116f931eaf85af90449300267c91bd8a22175c2.tar.gz
symfony-security-f116f931eaf85af90449300267c91bd8a22175c2.tar.bz2
[Security] Fix CS + unreachable code
-rw-r--r--Core/Exception/AccountStatusException.php6
-rw-r--r--Core/Exception/UsernameNotFoundException.php6
-rw-r--r--Core/User/UserChecker.php2
3 files changed, 5 insertions, 9 deletions
diff --git a/Core/Exception/AccountStatusException.php b/Core/Exception/AccountStatusException.php
index d89d553..7819e4d 100644
--- a/Core/Exception/AccountStatusException.php
+++ b/Core/Exception/AccountStatusException.php
@@ -60,10 +60,8 @@ abstract class AccountStatusException extends AuthenticationException
*/
public function unserialize($str)
{
- list(
- $this->user,
- $parentData
- ) = unserialize($str);
+ list($this->user, $parentData) = unserialize($str);
+
parent::unserialize($parentData);
}
}
diff --git a/Core/Exception/UsernameNotFoundException.php b/Core/Exception/UsernameNotFoundException.php
index 9a9989f..0299f83 100644
--- a/Core/Exception/UsernameNotFoundException.php
+++ b/Core/Exception/UsernameNotFoundException.php
@@ -65,10 +65,8 @@ class UsernameNotFoundException extends AuthenticationException
*/
public function unserialize($str)
{
- list(
- $this->username,
- $parentData
- ) = unserialize($str);
+ list($this->username, $parentData) = unserialize($str);
+
parent::unserialize($parentData);
}
}
diff --git a/Core/User/UserChecker.php b/Core/User/UserChecker.php
index 414bc31..8dde3a6 100644
--- a/Core/User/UserChecker.php
+++ b/Core/User/UserChecker.php
@@ -55,7 +55,7 @@ class UserChecker implements UserCheckerInterface
}
if (!$user->isEnabled()) {
- throw new DisabledException('User account is disabled.');
+ $ex = new DisabledException('User account is disabled.');
$ex->setUser($user);
throw $ex;
}