From 0b332ceac24ee93e82e25ee95841ae6fae3b889b Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 28 Mar 2024 16:13:19 +0100 Subject: fix: Apply new coding standard to all files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/tests/Group_LDAPTest.php | 2 +- .../user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php | 2 +- apps/user_ldap/tests/User/UserTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/user_ldap/tests') diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php index 5c994b8e3a5..1658001b31c 100644 --- a/apps/user_ldap/tests/Group_LDAPTest.php +++ b/apps/user_ldap/tests/Group_LDAPTest.php @@ -1356,7 +1356,7 @@ class Group_LDAPTest extends TestCase { * @param string[] $expectedMembers * @dataProvider groupMemberProvider */ - public function testGroupMembers(array $expectedResult, array $groupsInfo = null) { + public function testGroupMembers(array $expectedResult, ?array $groupsInfo = null) { $this->access->expects($this->any()) ->method('readAttribute') ->willReturnCallback(function ($group) use ($groupsInfo) { diff --git a/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php b/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php index 623d08d565d..a706aae9895 100644 --- a/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php +++ b/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php @@ -92,7 +92,7 @@ class IntegrationTestUserCleanUp extends AbstractIntegrationTest { } $user->delete(); - return null === \OC::$server->getUserManager()->get($username); + return \OC::$server->getUserManager()->get($username) === null; } } diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index 23ce407dfd7..d6530faa9b6 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -837,7 +837,7 @@ class UserTest extends \Test\TestCase { /** * @dataProvider extStorageHomeDataProvider */ - public function testUpdateExtStorageHome(string $expected, string $valueFromLDAP = null, bool $isSet = true) { + public function testUpdateExtStorageHome(string $expected, ?string $valueFromLDAP = null, bool $isSet = true) { if ($valueFromLDAP === null) { $this->connection->expects($this->once()) ->method('__get') -- cgit v1.2.3