From 1a4978c4ead55daa2726df5967c1377d61a57f7a Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Fri, 20 Sep 2024 17:38:36 +0200 Subject: chore: Apply rector configuration to apps folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Access.php | 2 +- apps/user_ldap/lib/AppInfo/Application.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/user_ldap/lib') diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 81f3dc6cb70..f1e47e90418 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -954,7 +954,7 @@ class Access extends LDAPUtility { }, []); $idsByDn = $this->getGroupMapper()->getListOfIdsByDn($listOfDNs); - array_walk($groupRecords, function (array $record) use ($idsByDn) { + array_walk($groupRecords, function (array $record) use ($idsByDn): void { $newlyMapped = false; $gid = $idsByDn[$record['dn'][0]] ?? null; if ($gid === null) { diff --git a/apps/user_ldap/lib/AppInfo/Application.php b/apps/user_ldap/lib/AppInfo/Application.php index e3f6f56152c..ae6092ae101 100644 --- a/apps/user_ldap/lib/AppInfo/Application.php +++ b/apps/user_ldap/lib/AppInfo/Application.php @@ -110,7 +110,7 @@ class Application extends App implements IBootstrap { User_Proxy $userBackend, Group_Proxy $groupBackend, Helper $helper, - ) { + ): void { $configPrefixes = $helper->getServerConfigurationPrefixes(true); if (count($configPrefixes) > 0) { $userPluginManager = $appContainer->get(UserPluginManager::class); @@ -140,7 +140,7 @@ class Application extends App implements IBootstrap { private function registerBackendDependents(IAppContainer $appContainer, IEventDispatcher $dispatcher): void { $dispatcher->addListener( 'OCA\\Files_External::loadAdditionalBackends', - function () use ($appContainer) { + function () use ($appContainer): void { $storagesBackendService = $appContainer->get(BackendService::class); $storagesBackendService->registerConfigHandler('home', function () use ($appContainer) { return $appContainer->get(ExtStorageConfigHandler::class); -- cgit v1.2.3