diff options
author | Alexander <iam.asm89@gmail.com> | 2013-01-07 20:34:14 +0100 |
---|---|---|
committer | Alexander <iam.asm89@gmail.com> | 2013-01-07 21:11:19 +0100 |
commit | f116f931eaf85af90449300267c91bd8a22175c2 (patch) | |
tree | 7d88229d3dd017fe5d6032f0cea12c606b53bf8d | |
parent | cd47f40584b192f6bc94e48dfbe7545280f382c9 (diff) | |
download | symfony-security-f116f931eaf85af90449300267c91bd8a22175c2.zip symfony-security-f116f931eaf85af90449300267c91bd8a22175c2.tar.gz symfony-security-f116f931eaf85af90449300267c91bd8a22175c2.tar.bz2 |
[Security] Fix CS + unreachable code
-rw-r--r-- | Core/Exception/AccountStatusException.php | 6 | ||||
-rw-r--r-- | Core/Exception/UsernameNotFoundException.php | 6 | ||||
-rw-r--r-- | Core/User/UserChecker.php | 2 |
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; } |