diff options
author | Graham Campbell <graham@mineuk.com> | 2014-12-04 20:26:11 +0000 |
---|---|---|
committer | Graham Campbell <graham@mineuk.com> | 2014-12-04 20:26:11 +0000 |
commit | 1aaa26cad526c885a0ffd4fcef8a855a63024725 (patch) | |
tree | 24442a903e08d2e8f01438820b48a26e3faafce3 /Http | |
parent | 3598ef3378bcfb03fba1e368e168f30bb8169eb2 (diff) | |
download | symfony-security-1aaa26cad526c885a0ffd4fcef8a855a63024725.zip symfony-security-1aaa26cad526c885a0ffd4fcef8a855a63024725.tar.gz symfony-security-1aaa26cad526c885a0ffd4fcef8a855a63024725.tar.bz2 |
CS fixes
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/SimplePreAuthenticationListener.php | 10 | ||||
-rw-r--r-- | Http/Tests/Firewall/SwitchUserListenerTest.php | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Http/Firewall/SimplePreAuthenticationListener.php b/Http/Firewall/SimplePreAuthenticationListener.php index a6f4f77..e80cc98 100644 --- a/Http/Firewall/SimplePreAuthenticationListener.php +++ b/Http/Firewall/SimplePreAuthenticationListener.php @@ -38,11 +38,11 @@ class SimplePreAuthenticationListener implements ListenerInterface /** * Constructor. * - * @param SecurityContextInterface $securityContext A SecurityContext instance - * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance - * @param string $providerKey - * @param SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance - * @param LoggerInterface $logger A LoggerInterface instance + * @param SecurityContextInterface $securityContext A SecurityContext instance + * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance + * @param string $providerKey + * @param SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance + * @param LoggerInterface $logger A LoggerInterface instance */ public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null) { diff --git a/Http/Tests/Firewall/SwitchUserListenerTest.php b/Http/Tests/Firewall/SwitchUserListenerTest.php index 9e149a2..9fb4e50 100644 --- a/Http/Tests/Firewall/SwitchUserListenerTest.php +++ b/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -157,7 +157,7 @@ class SwitchUserListenerTest extends \PHPUnit_Framework_TestCase $this->securityContext->expects($this->any())->method('getToken')->will($this->returnValue($token)); $this->request->expects($this->any())->method('get')->with('_switch_user')->will($this->returnValue('kuba')); $this->request->query->expects($this->once())->method('remove', '_switch_user'); - $this->request->query->expects($this->any())->method('all')->will($this->returnValue(array('page' => 3,'section' => 2))); + $this->request->query->expects($this->any())->method('all')->will($this->returnValue(array('page' => 3, 'section' => 2))); $this->request->expects($this->any())->method('getUri')->will($this->returnValue('/')); $this->request->server->expects($this->once())->method('set')->with('QUERY_STRING', 'page=3§ion=2'); |