Skip to content

Commit d3b6c2f

Browse files
keradusnicolas-grekas
authored andcommitted
chore: CS fixes
1 parent 000d449 commit d3b6c2f

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Adapter/ConnectionInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public function isBound(): bool;
2828
/**
2929
* Binds the connection against a user's DN and password.
3030
*
31-
* @return void
32-
*
3331
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
3432
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
3533
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error

Adapter/ExtLdap/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ private function getSingleEntry($con, $current): Entry
123123
private function cleanupAttributes(array $entry): array
124124
{
125125
$attributes = array_diff_key($entry, array_flip(range(0, $entry['count'] - 1)) + [
126-
'count' => null,
127-
'dn' => null,
128-
]);
126+
'count' => null,
127+
'dn' => null,
128+
]);
129129
array_walk($attributes, function (&$value) {
130130
unset($value['count']);
131131
});

Tests/Security/LdapUserProviderTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public function testLoadUserByIdentifierFailsIfMoreThanOneLdapPasswordsInEntry()
123123
->method('offsetGet')
124124
->with(0)
125125
->willReturn(new Entry('foo', [
126-
'sAMAccountName' => ['foo'],
127-
'userpassword' => ['bar', 'baz'],
126+
'sAMAccountName' => ['foo'],
127+
'userpassword' => ['bar', 'baz'],
128128
]))
129129
;
130130
$result
@@ -308,9 +308,9 @@ public function testLoadUserByIdentifierIsSuccessfulWithPasswordAttribute()
308308
->method('offsetGet')
309309
->with(0)
310310
->willReturn(new Entry('foo', [
311-
'sAMAccountName' => ['foo'],
312-
'userpassword' => ['bar'],
313-
'email' => ['elsa@symfony.com'],
311+
'sAMAccountName' => ['foo'],
312+
'userpassword' => ['bar'],
313+
'email' => ['elsa@symfony.com'],
314314
]))
315315
;
316316
$result

0 commit comments

Comments
 (0)