Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 89ef687

Browse files
keradusfabpot
authored andcommitted
CS fixes
1 parent 5d5a4e2 commit 89ef687

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function authenticate(TokenInterface $token)
6060
throw new BadCredentialsException('No pre-authenticated principal found in request.');
6161
}
6262

63-
$user = $this->userProvider->loadUserByUsername($user);
63+
$user = $this->userProvider->loadUserByUsername($user);
6464

6565
$this->userChecker->checkPostAuth($user);
6666

Tests/Acl/Voter/AclVoterTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase
2727
*/
2828
public function testSupportsAttribute($attribute, $supported)
2929
{
30-
list($voter, , $permissionMap, ,) = $this->getVoter(true, false);
30+
list($voter, , $permissionMap) = $this->getVoter(true, false);
3131

3232
$permissionMap
3333
->expects($this->once())
@@ -44,7 +44,7 @@ public function testSupportsAttribute($attribute, $supported)
4444
*/
4545
public function testSupportsAttributeNonString($attribute)
4646
{
47-
list($voter, , , , ,) = $this->getVoter(true, false);
47+
list($voter) = $this->getVoter(true, false);
4848

4949
$this->assertFalse($voter->supportsAttribute($attribute));
5050
}
@@ -72,7 +72,7 @@ public function getSupportsAttributeNonStringTests()
7272
*/
7373
public function testSupportsClass($class)
7474
{
75-
list($voter, , , ,) = $this->getVoter();
75+
list($voter) = $this->getVoter();
7676

7777
$this->assertTrue($voter->supportsClass($class));
7878
}
@@ -88,7 +88,7 @@ public function getSupportsClassTests()
8888

8989
public function testVote()
9090
{
91-
list($voter, , $permissionMap, ,) = $this->getVoter();
91+
list($voter, , $permissionMap) = $this->getVoter();
9292
$permissionMap
9393
->expects($this->atLeastOnce())
9494
->method('getMasks')
@@ -103,7 +103,7 @@ public function testVote()
103103
*/
104104
public function testVoteWhenNoObjectIsPassed($allowIfObjectIdentityUnavailable)
105105
{
106-
list($voter, , $permissionMap, ,) = $this->getVoter($allowIfObjectIdentityUnavailable);
106+
list($voter, , $permissionMap) = $this->getVoter($allowIfObjectIdentityUnavailable);
107107
$permissionMap
108108
->expects($this->once())
109109
->method('getMasks')
@@ -124,7 +124,7 @@ public function testVoteWhenNoObjectIsPassed($allowIfObjectIdentityUnavailable)
124124
*/
125125
public function testVoteWhenOidStrategyReturnsNull($allowIfUnavailable)
126126
{
127-
list($voter, , $permissionMap, $oidStrategy,) = $this->getVoter($allowIfUnavailable);
127+
list($voter, , $permissionMap, $oidStrategy) = $this->getVoter($allowIfUnavailable);
128128
$permissionMap
129129
->expects($this->once())
130130
->method('getMasks')

Tests/Http/Firewall/RememberMeListenerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase
1919
{
2020
public function testOnCoreSecurityDoesNotTryToPopulateNonEmptySecurityContext()
2121
{
22-
list($listener, $context, $service, ,) = $this->getListener();
22+
list($listener, $context, $service) = $this->getListener();
2323

2424
$context
2525
->expects($this->once())
@@ -37,7 +37,7 @@ public function testOnCoreSecurityDoesNotTryToPopulateNonEmptySecurityContext()
3737

3838
public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet()
3939
{
40-
list($listener, $context, $service, ,) = $this->getListener();
40+
list($listener, $context, $service) = $this->getListener();
4141

4242
$context
4343
->expects($this->once())
@@ -63,7 +63,7 @@ public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet()
6363

6464
public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenticationManagerImplementation()
6565
{
66-
list($listener, $context, $service, $manager,) = $this->getListener();
66+
list($listener, $context, $service, $manager) = $this->getListener();
6767

6868
$context
6969
->expects($this->once())
@@ -101,7 +101,7 @@ public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenti
101101

102102
public function testOnCoreSecurity()
103103
{
104-
list($listener, $context, $service, $manager,) = $this->getListener();
104+
list($listener, $context, $service, $manager) = $this->getListener();
105105

106106
$context
107107
->expects($this->once())

0 commit comments

Comments
 (0)