aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /apps
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/admin_audit/lib/Actions/Action.php4
-rw-r--r--apps/admin_audit/lib/Actions/Files.php16
-rw-r--r--apps/admin_audit/lib/Listener/FileEventListener.php2
-rw-r--r--apps/cloud_federation_api/lib/Controller/RequestHandlerController.php2
-rw-r--r--apps/comments/lib/Controller/NotificationsController.php2
-rw-r--r--apps/comments/lib/Notification/Listener.php2
-rw-r--r--apps/comments/lib/Notification/Notifier.php2
-rw-r--r--apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php2
-rw-r--r--apps/dav/lib/BackgroundJob/UserStatusAutomation.php6
-rw-r--r--apps/dav/lib/BulkUpload/BulkUploadPlugin.php2
-rw-r--r--apps/dav/lib/BulkUpload/MultipartRequestParser.php4
-rw-r--r--apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php2
-rw-r--r--apps/dav/lib/CalDAV/BirthdayService.php6
-rw-r--r--apps/dav/lib/CalDAV/CachedSubscriptionImpl.php2
-rw-r--r--apps/dav/lib/CalDAV/CachedSubscriptionProvider.php2
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php18
-rw-r--r--apps/dav/lib/CalDAV/Calendar.php4
-rw-r--r--apps/dav/lib/CalDAV/CalendarHome.php2
-rw-r--r--apps/dav/lib/CalDAV/CalendarRoot.php2
-rw-r--r--apps/dav/lib/CalDAV/EventReader.php14
-rw-r--r--apps/dav/lib/CalDAV/EventReaderRDate.php6
-rw-r--r--apps/dav/lib/CalDAV/EventReaderRRule.php6
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php10
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php2
-rw-r--r--apps/dav/lib/CalDAV/Sharing/Backend.php3
-rw-r--r--apps/dav/lib/CalDAV/Sharing/Service.php4
-rw-r--r--apps/dav/lib/CalDAV/Status/StatusService.php6
-rw-r--r--apps/dav/lib/CalDAV/TimezoneService.php6
-rw-r--r--apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php2
-rw-r--r--apps/dav/lib/CalDAV/UpcomingEvent.php6
-rw-r--r--apps/dav/lib/CalDAV/UpcomingEventsService.php6
-rw-r--r--apps/dav/lib/CalDAV/Validation/CalDavValidatePlugin.php2
-rw-r--r--apps/dav/lib/CalDAV/WebcalCaching/Connection.php6
-rw-r--r--apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php6
-rw-r--r--apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php6
-rw-r--r--apps/dav/lib/CardDAV/Sharing/Backend.php3
-rw-r--r--apps/dav/lib/CardDAV/Sharing/Service.php4
-rw-r--r--apps/dav/lib/CardDAV/Validation/CardDavValidatePlugin.php2
-rw-r--r--apps/dav/lib/Command/DeleteCalendar.php2
-rw-r--r--apps/dav/lib/Command/FixCalendarSyncCommand.php6
-rw-r--r--apps/dav/lib/Comments/CommentNode.php4
-rw-r--r--apps/dav/lib/Comments/CommentsPlugin.php2
-rw-r--r--apps/dav/lib/Comments/EntityCollection.php2
-rw-r--r--apps/dav/lib/Comments/EntityTypeCollection.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/Node.php4
-rw-r--r--apps/dav/lib/Connector/Sabre/ServerFactory.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/TagsPlugin.php2
-rw-r--r--apps/dav/lib/Controller/DirectController.php2
-rw-r--r--apps/dav/lib/Controller/OutOfOfficeController.php2
-rw-r--r--apps/dav/lib/DAV/GroupPrincipalBackend.php2
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php3
-rw-r--r--apps/dav/lib/DAV/Sharing/SharingMapper.php4
-rw-r--r--apps/dav/lib/DAV/Sharing/SharingService.php4
-rw-r--r--apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php2
-rw-r--r--apps/dav/lib/Direct/DirectHome.php2
-rw-r--r--apps/dav/lib/Listener/OutOfOfficeListener.php2
-rw-r--r--apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php4
-rw-r--r--apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php2
-rw-r--r--apps/dav/lib/Migration/DeleteSchedulingObjects.php5
-rw-r--r--apps/dav/lib/Migration/Version1027Date20230504122946.php6
-rw-r--r--apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php2
-rw-r--r--apps/dav/lib/Search/EventsSearchProvider.php2
-rw-r--r--apps/dav/lib/Settings/AvailabilitySettings.php6
-rw-r--r--apps/dav/lib/SystemTag/SystemTagPlugin.php2
-rw-r--r--apps/dav/lib/SystemTag/SystemTagsByIdCollection.php2
-rw-r--r--apps/dav/lib/SystemTag/SystemTagsInUseCollection.php2
-rw-r--r--apps/dav/lib/UserMigration/CalendarMigrator.php2
-rw-r--r--apps/dav/lib/UserMigration/ContactsMigrator.php2
-rw-r--r--apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php4
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php48
-rw-r--r--apps/dav/tests/unit/Command/DeleteCalendarTest.php2
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php2
-rw-r--r--apps/dav/tests/unit/Controller/DirectControllerTest.php2
-rw-r--r--apps/dav/tests/unit/DAV/GroupPrincipalTest.php2
-rw-r--r--apps/dav/tests/unit/Files/MultipartRequestParserTest.php10
-rw-r--r--apps/dav/tests/unit/Search/ContactsSearchProviderTest.php28
-rw-r--r--apps/dav/tests/unit/Search/EventsSearchProviderTest.php312
-rw-r--r--apps/dav/tests/unit/Search/TasksSearchProviderTest.php98
-rw-r--r--apps/dav/tests/unit/bootstrap.php2
-rw-r--r--apps/encryption/lib/Command/DropLegacyFileKey.php4
-rw-r--r--apps/encryption/lib/Controller/SettingsController.php2
-rw-r--r--apps/encryption/lib/Controller/StatusController.php2
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php6
-rw-r--r--apps/encryption/lib/Crypto/DecryptAll.php2
-rw-r--r--apps/encryption/lib/Crypto/EncryptAll.php2
-rw-r--r--apps/encryption/lib/KeyManager.php2
-rw-r--r--apps/encryption/lib/Settings/Admin.php2
-rw-r--r--apps/encryption/tests/Command/FixEncryptedVersionTest.php2
-rw-r--r--apps/federatedfilesharing/lib/AddressHandler.php2
-rw-r--r--apps/federatedfilesharing/lib/Controller/RequestHandlerController.php2
-rw-r--r--apps/federatedfilesharing/lib/Settings/Admin.php2
-rw-r--r--apps/federatedfilesharing/lib/Settings/Personal.php2
-rw-r--r--apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php2
-rw-r--r--apps/federatedfilesharing/tests/NotificationsTest.php2
-rw-r--r--apps/federation/lib/BackgroundJob/GetSharedSecret.php2
-rw-r--r--apps/federation/lib/Controller/OCSAuthAPIController.php4
-rw-r--r--apps/federation/lib/Controller/SettingsController.php2
-rw-r--r--apps/federation/lib/DbHandler.php2
-rw-r--r--apps/federation/lib/SyncFederationAddressBooks.php2
-rw-r--r--apps/federation/lib/TrustedServers.php2
-rw-r--r--apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php2
-rw-r--r--apps/files/lib/BackgroundJob/ScanFiles.php2
-rw-r--r--apps/files/lib/Command/ScanAppData.php2
-rw-r--r--apps/files/lib/Controller/ApiController.php3
-rw-r--r--apps/files/lib/Controller/DirectEditingController.php2
-rw-r--r--apps/files/lib/Controller/OpenLocalEditorController.php2
-rw-r--r--apps/files/lib/Controller/TemplateController.php2
-rw-r--r--apps/files_external/lib/BackgroundJob/CredentialsCleanup.php2
-rw-r--r--apps/files_external/lib/Command/Scan.php2
-rw-r--r--apps/files_external/lib/Controller/ApiController.php2
-rw-r--r--apps/files_external/lib/Controller/GlobalStoragesController.php6
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php4
-rw-r--r--apps/files_external/lib/Controller/UserGlobalStoragesController.php4
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php6
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php2
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php2
-rw-r--r--apps/files_external/lib/MountConfig.php2
-rw-r--r--apps/files_external/lib/Service/BackendService.php2
-rw-r--r--apps/files_external/lib/Service/LegacyStoragesService.php2
-rw-r--r--apps/files_external/lib/Service/StoragesService.php4
-rw-r--r--apps/files_external/lib/Service/UserGlobalStoragesService.php2
-rw-r--r--apps/files_external/lib/Service/UserStoragesService.php2
-rw-r--r--apps/files_external/lib/Settings/Admin.php2
-rw-r--r--apps/files_external/lib/Settings/Personal.php2
-rw-r--r--apps/files_external/lib/Settings/PersonalSection.php2
-rw-r--r--apps/files_external/templates/settings.php4
-rw-r--r--apps/files_external/tests/Controller/StoragesControllerTest.php4
-rw-r--r--apps/files_external/tests/Service/BackendServiceTest.php8
-rw-r--r--apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php2
-rw-r--r--apps/files_sharing/lib/Cache.php2
-rw-r--r--apps/files_sharing/lib/Controller/PublicPreviewController.php2
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php8
-rw-r--r--apps/files_sharing/lib/DeleteOrphanedSharesJob.php2
-rw-r--r--apps/files_sharing/lib/External/Manager.php2
-rw-r--r--apps/files_sharing/lib/Helper.php4
-rw-r--r--apps/files_sharing/lib/Listener/LoadSidebarListener.php5
-rw-r--r--apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php2
-rw-r--r--apps/files_sharing/lib/MountProvider.php2
-rw-r--r--apps/files_sharing/lib/Notification/Listener.php2
-rw-r--r--apps/files_sharing/lib/OrphanHelper.php2
-rw-r--r--apps/files_sharing/lib/SharedMount.php4
-rw-r--r--apps/files_sharing/lib/SharesReminderJob.php4
-rw-r--r--apps/files_sharing/tests/ApiTest.php32
-rw-r--r--apps/files_sharing/tests/CacheTest.php2
-rw-r--r--apps/files_sharing/tests/Controller/ShareAPIControllerTest.php2
-rw-r--r--apps/files_sharing/tests/ShareTest.php4
-rw-r--r--apps/files_sharing/tests/SharesReminderJobTest.php2
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php6
-rw-r--r--apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php2
-rw-r--r--apps/files_trashbin/lib/Command/Size.php2
-rw-r--r--apps/files_trashbin/lib/Controller/PreviewController.php2
-rw-r--r--apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php6
-rw-r--r--apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php4
-rw-r--r--apps/files_trashbin/lib/Sabre/RootCollection.php2
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashHome.php2
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashbinPlugin.php2
-rw-r--r--apps/files_trashbin/lib/Storage.php2
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
-rw-r--r--apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php20
-rw-r--r--apps/files_trashbin/tests/Command/CleanUpTest.php4
-rw-r--r--apps/files_versions/lib/Capabilities.php2
-rw-r--r--apps/files_versions/lib/Controller/PreviewController.php4
-rw-r--r--apps/files_versions/lib/Sabre/RootCollection.php2
-rw-r--r--apps/files_versions/lib/Sabre/VersionFile.php2
-rw-r--r--apps/files_versions/lib/Storage.php34
-rw-r--r--apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php1
-rw-r--r--apps/oauth2/lib/Controller/OauthApiController.php2
-rw-r--r--apps/oauth2/lib/Controller/SettingsController.php2
-rw-r--r--apps/oauth2/lib/Db/ClientMapper.php4
-rw-r--r--apps/oauth2/tests/Controller/OauthApiControllerTest.php6
-rw-r--r--apps/provisioning_api/lib/Controller/AppsController.php2
-rw-r--r--apps/provisioning_api/lib/Controller/PreferencesController.php2
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
-rw-r--r--apps/provisioning_api/lib/Controller/VerificationController.php2
-rw-r--r--apps/provisioning_api/tests/Controller/GroupsControllerTest.php2
-rw-r--r--apps/settings/lib/Command/AdminDelegation/Add.php2
-rw-r--r--apps/settings/lib/Command/AdminDelegation/Remove.php4
-rw-r--r--apps/settings/lib/Command/AdminDelegation/Show.php2
-rw-r--r--apps/settings/lib/Controller/AppSettingsController.php2
-rw-r--r--apps/settings/lib/Controller/UsersController.php2
-rw-r--r--apps/settings/lib/Listener/UserAddedToGroupActivityListener.php2
-rw-r--r--apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php2
-rw-r--r--apps/settings/lib/Settings/Admin/Delegation.php2
-rw-r--r--apps/settings/lib/Settings/Personal/PersonalInfo.php2
-rw-r--r--apps/settings/lib/SetupChecks/CronErrors.php2
-rw-r--r--apps/settings/lib/SetupChecks/DatabaseHasMissingColumns.php4
-rw-r--r--apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php4
-rw-r--r--apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php2
-rw-r--r--apps/settings/lib/SetupChecks/OcxProviders.php2
-rw-r--r--apps/settings/lib/SetupChecks/PhpModules.php2
-rw-r--r--apps/settings/lib/SetupChecks/SecurityHeaders.php16
-rw-r--r--apps/settings/lib/SetupChecks/TempSpaceAvailable.php2
-rw-r--r--apps/settings/lib/UserMigration/AccountMigrator.php2
-rw-r--r--apps/settings/tests/Controller/UsersControllerTest.php4
-rw-r--r--apps/settings/tests/SetupChecks/SecurityHeadersTest.php2
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php2
-rw-r--r--apps/systemtags/lib/Activity/Setting.php4
-rw-r--r--apps/systemtags/lib/Search/TagSearchProvider.php4
-rw-r--r--apps/testing/lib/Listener/GetDeclarativeSettingsValueListener.php4
-rw-r--r--apps/testing/lib/Listener/SetDeclarativeSettingsValueListener.php4
-rw-r--r--apps/testing/lib/Locking/FakeDBLockingProvider.php2
-rw-r--r--apps/theming/lib/Controller/IconController.php2
-rw-r--r--apps/theming/lib/IconBuilder.php6
-rw-r--r--apps/theming/lib/Jobs/MigrateBackgroundImages.php4
-rw-r--r--apps/theming/lib/Jobs/RestoreBackgroundImageColor.php6
-rw-r--r--apps/theming/lib/Listener/BeforeTemplateRenderedListener.php2
-rw-r--r--apps/theming/lib/Service/BackgroundService.php4
-rw-r--r--apps/theming/lib/Service/ThemesService.php3
-rw-r--r--apps/theming/lib/ThemingDefaults.php10
-rw-r--r--apps/theming/lib/Util.php2
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php6
-rw-r--r--apps/theming/tests/IconBuilderTest.php6
-rw-r--r--apps/updatenotification/lib/Command/Check.php2
-rw-r--r--apps/updatenotification/lib/Manager.php6
-rw-r--r--apps/updatenotification/lib/Settings/Admin.php2
-rw-r--r--apps/user_ldap/ajax/getNewServerConfigPrefix.php2
-rw-r--r--apps/user_ldap/ajax/wizard.php2
-rw-r--r--apps/user_ldap/lib/Access.php12
-rw-r--r--apps/user_ldap/lib/AppInfo/Application.php2
-rw-r--r--apps/user_ldap/lib/Command/CheckGroup.php8
-rw-r--r--apps/user_ldap/lib/Command/CheckUser.php2
-rw-r--r--apps/user_ldap/lib/Command/PromoteGroup.php2
-rw-r--r--apps/user_ldap/lib/Command/Search.php2
-rw-r--r--apps/user_ldap/lib/Configuration.php6
-rw-r--r--apps/user_ldap/lib/Connection.php14
-rw-r--r--apps/user_ldap/lib/Controller/ConfigAPIController.php2
-rw-r--r--apps/user_ldap/lib/GroupPluginManager.php2
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php12
-rw-r--r--apps/user_ldap/lib/Jobs/CleanUp.php2
-rw-r--r--apps/user_ldap/lib/LDAPProvider.php4
-rw-r--r--apps/user_ldap/lib/Proxy.php2
-rw-r--r--apps/user_ldap/lib/Settings/Admin.php2
-rw-r--r--apps/user_ldap/lib/SetupChecks/LdapConnection.php6
-rw-r--r--apps/user_ldap/lib/User/DeletedUsersIndex.php2
-rw-r--r--apps/user_ldap/lib/User/Manager.php2
-rw-r--r--apps/user_ldap/lib/User/OfflineUser.php2
-rw-r--r--apps/user_ldap/lib/User/User.php32
-rw-r--r--apps/user_ldap/lib/UserPluginManager.php4
-rw-r--r--apps/user_ldap/lib/User_LDAP.php24
-rw-r--r--apps/user_ldap/lib/Wizard.php22
-rw-r--r--apps/user_ldap/templates/part.wizard-server.php2
-rw-r--r--apps/user_ldap/templates/settings.php2
-rw-r--r--apps/user_ldap/tests/AccessTest.php2
-rw-r--r--apps/user_ldap/tests/Group_LDAPTest.php4
-rw-r--r--apps/user_ldap/tests/Integration/Bootstrap.php2
-rw-r--r--apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php2
-rw-r--r--apps/user_ldap/tests/Settings/AdminTest.php2
-rw-r--r--apps/user_ldap/tests/User/UserTest.php4
-rw-r--r--apps/user_ldap/tests/User_LDAPTest.php20
-rw-r--r--apps/user_status/lib/ContactsMenu/StatusProvider.php4
-rw-r--r--apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php2
-rw-r--r--apps/user_status/lib/Listener/OutOfOfficeStatusListener.php6
-rw-r--r--apps/user_status/lib/Listener/UserLiveStatusListener.php6
-rw-r--r--apps/user_status/lib/Migration/Version1008Date20230921144701.php4
-rw-r--r--apps/user_status/tests/bootstrap.php2
-rw-r--r--apps/weather_status/lib/Service/WeatherStatusService.php2
-rw-r--r--apps/webhook_listeners/lib/BackgroundJobs/WebhookCall.php6
-rw-r--r--apps/webhook_listeners/lib/Db/WebhookListener.php2
-rw-r--r--apps/webhook_listeners/lib/Db/WebhookListenerMapper.php2
-rw-r--r--apps/webhook_listeners/lib/Service/PHPMongoQuery.php10
-rw-r--r--apps/workflowengine/lib/Check/FileSystemTags.php2
-rw-r--r--apps/workflowengine/lib/Controller/AWorkflowController.php6
-rw-r--r--apps/workflowengine/lib/Controller/UserWorkflowsController.php2
-rw-r--r--apps/workflowengine/lib/Entity/File.php2
-rw-r--r--apps/workflowengine/lib/Manager.php6
-rw-r--r--apps/workflowengine/lib/Service/Logger.php2
-rw-r--r--apps/workflowengine/lib/Service/RuleMatcher.php2
-rw-r--r--apps/workflowengine/lib/Settings/ASettings.php2
271 files changed, 803 insertions, 747 deletions
diff --git a/apps/admin_audit/lib/Actions/Action.php b/apps/admin_audit/lib/Actions/Action.php
index 5d06cf4fbf5..2566025a8ce 100644
--- a/apps/admin_audit/lib/Actions/Action.php
+++ b/apps/admin_audit/lib/Actions/Action.php
@@ -32,13 +32,13 @@ class Action {
if (!isset($params[$element])) {
if ($obfuscateParameters) {
$this->logger->critical(
- '$params["'.$element.'"] was missing.',
+ '$params["' . $element . '"] was missing.',
['app' => 'admin_audit']
);
} else {
$this->logger->critical(
sprintf(
- '$params["'.$element.'"] was missing. Transferred value: %s',
+ '$params["' . $element . '"] was missing. Transferred value: %s',
print_r($params, true)
),
['app' => 'admin_audit']
diff --git a/apps/admin_audit/lib/Actions/Files.php b/apps/admin_audit/lib/Actions/Files.php
index 5c08640d2d2..86eba871ea7 100644
--- a/apps/admin_audit/lib/Actions/Files.php
+++ b/apps/admin_audit/lib/Actions/Files.php
@@ -42,7 +42,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file read: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file read: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -64,7 +64,7 @@ class Files extends Action {
$this->renamedNodes[$source->getId()] = $source;
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file rename: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file rename: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -86,7 +86,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file rename: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file rename: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -112,7 +112,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file create: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file create: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -141,7 +141,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file copy: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file copy: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -166,7 +166,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file write: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file write: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -194,7 +194,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file update: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file update: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
@@ -218,7 +218,7 @@ class Files extends Action {
];
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file delete: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file delete: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
diff --git a/apps/admin_audit/lib/Listener/FileEventListener.php b/apps/admin_audit/lib/Listener/FileEventListener.php
index 74bb2ac836c..369f97239d7 100644
--- a/apps/admin_audit/lib/Listener/FileEventListener.php
+++ b/apps/admin_audit/lib/Listener/FileEventListener.php
@@ -48,7 +48,7 @@ class FileEventListener extends Action implements IEventListener {
);
} catch (InvalidPathException|NotFoundException $e) {
\OCP\Server::get(LoggerInterface::class)->error(
- 'Exception thrown in file preview: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
+ 'Exception thrown in file preview: ' . $e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
);
return;
}
diff --git a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
index a49d70b6930..733f02434cd 100644
--- a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
+++ b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
@@ -50,7 +50,7 @@ class RequestHandlerController extends Controller {
private ICloudFederationProviderManager $cloudFederationProviderManager,
private Config $config,
private ICloudFederationFactory $factory,
- private ICloudIdManager $cloudIdManager
+ private ICloudIdManager $cloudIdManager,
) {
parent::__construct($appName, $request);
}
diff --git a/apps/comments/lib/Controller/NotificationsController.php b/apps/comments/lib/Controller/NotificationsController.php
index a3228247884..2dc94b2e663 100644
--- a/apps/comments/lib/Controller/NotificationsController.php
+++ b/apps/comments/lib/Controller/NotificationsController.php
@@ -33,7 +33,7 @@ class NotificationsController extends Controller {
protected IRootFolder $rootFolder,
protected IURLGenerator $urlGenerator,
protected IManager $notificationManager,
- protected IUserSession $userSession
+ protected IUserSession $userSession,
) {
parent::__construct($appName, $request);
}
diff --git a/apps/comments/lib/Notification/Listener.php b/apps/comments/lib/Notification/Listener.php
index 44fb8fe3f4c..43922f85e59 100644
--- a/apps/comments/lib/Notification/Listener.php
+++ b/apps/comments/lib/Notification/Listener.php
@@ -16,7 +16,7 @@ use OCP\Notification\INotification;
class Listener {
public function __construct(
protected IManager $notificationManager,
- protected IUserManager $userManager
+ protected IUserManager $userManager,
) {
}
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php
index d5563ef7d85..62562bf42aa 100644
--- a/apps/comments/lib/Notification/Notifier.php
+++ b/apps/comments/lib/Notification/Notifier.php
@@ -25,7 +25,7 @@ class Notifier implements INotifier {
protected IRootFolder $rootFolder,
protected ICommentsManager $commentsManager,
protected IURLGenerator $url,
- protected IUserManager $userManager
+ protected IUserManager $userManager,
) {
}
diff --git a/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php b/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php
index c214f8950cb..abf12f7d587 100644
--- a/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php
+++ b/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php
@@ -56,7 +56,7 @@ class BuildReminderIndexBackgroundJob extends QueuedJob {
$offset = (int)$argument['offset'];
$stopAt = (int)$argument['stopAt'];
- $this->logger->info('Building calendar reminder index (' . $offset .'/' . $stopAt . ')');
+ $this->logger->info('Building calendar reminder index (' . $offset . '/' . $stopAt . ')');
$offset = $this->buildIndex($offset, $stopAt);
diff --git a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
index f9c4d8dcd74..7cc56698a9f 100644
--- a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
+++ b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
@@ -28,14 +28,16 @@ use Sabre\VObject\Reader;
use Sabre\VObject\Recur\RRuleIterator;
class UserStatusAutomation extends TimedJob {
- public function __construct(private ITimeFactory $timeFactory,
+ public function __construct(
+ private ITimeFactory $timeFactory,
private IDBConnection $connection,
private IJobList $jobList,
private LoggerInterface $logger,
private IManager $manager,
private IConfig $config,
private IAvailabilityCoordinator $coordinator,
- private IUserManager $userManager) {
+ private IUserManager $userManager,
+ ) {
parent::__construct($timeFactory);
// Interval 0 might look weird, but the last_checked is always moved
diff --git a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
index 8a99beaec6a..381f6aa9e33 100644
--- a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
+++ b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
@@ -22,7 +22,7 @@ class BulkUploadPlugin extends ServerPlugin {
public function __construct(
Folder $userFolder,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
$this->userFolder = $userFolder;
$this->logger = $logger;
diff --git a/apps/dav/lib/BulkUpload/MultipartRequestParser.php b/apps/dav/lib/BulkUpload/MultipartRequestParser.php
index 97aa0597b34..107c67ea691 100644
--- a/apps/dav/lib/BulkUpload/MultipartRequestParser.php
+++ b/apps/dav/lib/BulkUpload/MultipartRequestParser.php
@@ -45,8 +45,8 @@ class MultipartRequestParser {
$this->stream = $stream;
$boundary = $this->parseBoundaryFromHeaders($contentType);
- $this->boundary = '--'.$boundary."\r\n";
- $this->lastBoundary = '--'.$boundary."--\r\n";
+ $this->boundary = '--' . $boundary . "\r\n";
+ $this->lastBoundary = '--' . $boundary . "--\r\n";
}
/**
diff --git a/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php b/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
index de5b1139880..933679436d4 100644
--- a/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
+++ b/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
@@ -110,7 +110,7 @@ class EnablePlugin extends ServerPlugin {
$requestBody = $request->getBodyAsString();
$this->server->xml->parse($requestBody, $request->getUrl(), $documentType);
- if ($documentType !== '{'.self::NS_Nextcloud.'}enable-birthday-calendar') {
+ if ($documentType !== '{' . self::NS_Nextcloud . '}enable-birthday-calendar') {
return;
}
diff --git a/apps/dav/lib/CalDAV/BirthdayService.php b/apps/dav/lib/CalDAV/BirthdayService.php
index a10d73c4aa0..9a717b96d63 100644
--- a/apps/dav/lib/CalDAV/BirthdayService.php
+++ b/apps/dav/lib/CalDAV/BirthdayService.php
@@ -108,7 +108,7 @@ class BirthdayService {
$calendar = $this->ensureCalendarExists($principalUri);
foreach (['', '-death', '-anniversary'] as $tag) {
- $objectUri = $book['uri'] . '-' . $cardUri . $tag .'.ics';
+ $objectUri = $book['uri'] . '-' . $cardUri . $tag . '.ics';
$this->calDavBackEnd->deleteCalendarObject($calendar['id'], $objectUri, CalDavBackend::CALENDAR_TYPE_CALENDAR, true);
}
}
@@ -264,7 +264,7 @@ class BirthdayService {
* @param string $user
*/
public function resetForUser(string $user):void {
- $principal = 'principals/users/'.$user;
+ $principal = 'principals/users/' . $user;
$calendar = $this->calDavBackEnd->getCalendarByUri($principal, self::BIRTHDAY_CALENDAR_URI);
if (!$calendar) {
return; // The user's birthday calendar doesn't exist, no need to purge it
@@ -281,7 +281,7 @@ class BirthdayService {
* @throws \Sabre\DAV\Exception\BadRequest
*/
public function syncUser(string $user):void {
- $principal = 'principals/users/'.$user;
+ $principal = 'principals/users/' . $user;
$this->ensureCalendarExists($principal);
$books = $this->cardDavBackEnd->getAddressBooksForUser($principal);
foreach ($books as $book) {
diff --git a/apps/dav/lib/CalDAV/CachedSubscriptionImpl.php b/apps/dav/lib/CalDAV/CachedSubscriptionImpl.php
index 17e6f4389cc..1301fdb6000 100644
--- a/apps/dav/lib/CalDAV/CachedSubscriptionImpl.php
+++ b/apps/dav/lib/CalDAV/CachedSubscriptionImpl.php
@@ -20,7 +20,7 @@ class CachedSubscriptionImpl implements ICalendar {
public function __construct(
CachedSubscription $calendar,
array $calendarInfo,
- CalDavBackend $backend
+ CalDavBackend $backend,
) {
$this->calendar = $calendar;
$this->calendarInfo = $calendarInfo;
diff --git a/apps/dav/lib/CalDAV/CachedSubscriptionProvider.php b/apps/dav/lib/CalDAV/CachedSubscriptionProvider.php
index 73fde0b71a0..d64f039d05b 100644
--- a/apps/dav/lib/CalDAV/CachedSubscriptionProvider.php
+++ b/apps/dav/lib/CalDAV/CachedSubscriptionProvider.php
@@ -13,7 +13,7 @@ use OCP\Calendar\ICalendarProvider;
class CachedSubscriptionProvider implements ICalendarProvider {
public function __construct(
- private CalDavBackend $calDavBackend
+ private CalDavBackend $calDavBackend,
) {
}
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 8b619712b82..b8dfe762e35 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -354,7 +354,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$fields = array_column($this->propertyMap, 0);
$fields = array_map(function (string $field) {
- return 'a.'.$field;
+ return 'a.' . $field;
}, $fields);
$fields[] = 'a.id';
$fields[] = 'a.uri';
@@ -1713,19 +1713,19 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
try {
$matches = $this->validateFilterForObject($row, $filters);
} catch (ParseException $ex) {
- $this->logger->error('Caught parsing exception for calendar data. This usually indicates invalid calendar data. calendar-id:'.$calendarId.' uri:'.$row['uri'], [
+ $this->logger->error('Caught parsing exception for calendar data. This usually indicates invalid calendar data. calendar-id:' . $calendarId . ' uri:' . $row['uri'], [
'app' => 'dav',
'exception' => $ex,
]);
continue;
} catch (InvalidDataException $ex) {
- $this->logger->error('Caught invalid data exception for calendar data. This usually indicates invalid calendar data. calendar-id:'.$calendarId.' uri:'.$row['uri'], [
+ $this->logger->error('Caught invalid data exception for calendar data. This usually indicates invalid calendar data. calendar-id:' . $calendarId . ' uri:' . $row['uri'], [
'app' => 'dav',
'exception' => $ex,
]);
continue;
} catch (MaxInstancesExceededException $ex) {
- $this->logger->warning('Caught max instances exceeded exception for calendar data. This usually indicates too much recurring (more than 3500) event in calendar data. Object uri: '.$row['uri'], [
+ $this->logger->warning('Caught max instances exceeded exception for calendar data. This usually indicates too much recurring (more than 3500) event in calendar data. Object uri: ' . $row['uri'], [
'app' => 'dav',
'exception' => $ex,
]);
@@ -1848,7 +1848,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
->andWhere($compExpr)
->andWhere($propParamExpr)
->andWhere($query->expr()->iLike('i.value',
- $query->createNamedParameter('%'.$this->db->escapeLikeParameter($filters['search-term']).'%')))
+ $query->createNamedParameter('%' . $this->db->escapeLikeParameter($filters['search-term']) . '%')))
->andWhere($query->expr()->isNull('deleted_at'));
if ($offset) {
@@ -1890,7 +1890,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
array $searchProperties,
array $options,
$limit,
- $offset
+ $offset,
) {
$outerQuery = $this->db->getQueryBuilder();
$innerQuery = $this->db->getQueryBuilder();
@@ -2066,7 +2066,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
return $calendarObjects;
}
- private function searchCalendarObjects(IQueryBuilder $query, DateTimeInterface|null $start, DateTimeInterface|null $end): array {
+ private function searchCalendarObjects(IQueryBuilder $query, ?DateTimeInterface $start, ?DateTimeInterface $end): array {
$calendarObjects = [];
$filterByTimeRange = ($start instanceof DateTimeInterface) || ($end instanceof DateTimeInterface);
@@ -2099,7 +2099,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'time-range' => null,
]);
} catch (MaxInstancesExceededException $ex) {
- $this->logger->warning('Caught max instances exceeded exception for calendar data. This usually indicates too much recurring (more than 3500) event in calendar data. Object uri: '.$row['uri'], [
+ $this->logger->warning('Caught max instances exceeded exception for calendar data. This usually indicates too much recurring (more than 3500) event in calendar data. Object uri: ' . $row['uri'], [
'app' => 'dav',
'exception' => $ex,
]);
@@ -2196,7 +2196,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
array $componentTypes,
array $searchProperties,
array $searchParameters,
- array $options = []
+ array $options = [],
): array {
return $this->atomic(function () use ($principalUri, $pattern, $componentTypes, $searchProperties, $searchParameters, $options) {
$escapePattern = !\array_key_exists('escape_like_param', $options) || $options['escape_like_param'] !== false;
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php
index 28267921a6f..d3e0b3b2226 100644
--- a/apps/dav/lib/CalDAV/Calendar.php
+++ b/apps/dav/lib/CalDAV/Calendar.php
@@ -189,8 +189,8 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IRestorable, IShareable
$acl = $this->caldavBackend->applyShareAcl($this->getResourceId(), $acl);
$allowedPrincipals = [
$this->getOwner(),
- $this->getOwner(). '/calendar-proxy-read',
- $this->getOwner(). '/calendar-proxy-write',
+ $this->getOwner() . '/calendar-proxy-read',
+ $this->getOwner() . '/calendar-proxy-write',
parent::getOwner(),
'principals/system/public'
];
diff --git a/apps/dav/lib/CalDAV/CalendarHome.php b/apps/dav/lib/CalDAV/CalendarHome.php
index 59a976ca6bc..4ac00578969 100644
--- a/apps/dav/lib/CalDAV/CalendarHome.php
+++ b/apps/dav/lib/CalDAV/CalendarHome.php
@@ -42,7 +42,7 @@ class CalendarHome extends \Sabre\CalDAV\CalendarHome {
BackendInterface $caldavBackend,
array $principalInfo,
LoggerInterface $logger,
- private bool $returnCachedSubscriptions
+ private bool $returnCachedSubscriptions,
) {
parent::__construct($caldavBackend, $principalInfo);
$this->l10n = \OC::$server->getL10N('dav');
diff --git a/apps/dav/lib/CalDAV/CalendarRoot.php b/apps/dav/lib/CalDAV/CalendarRoot.php
index 7e57b70c481..9ab3a4dd43f 100644
--- a/apps/dav/lib/CalDAV/CalendarRoot.php
+++ b/apps/dav/lib/CalDAV/CalendarRoot.php
@@ -20,7 +20,7 @@ class CalendarRoot extends \Sabre\CalDAV\CalendarRoot {
PrincipalBackend\BackendInterface $principalBackend,
Backend\BackendInterface $caldavBackend,
$principalPrefix,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($principalBackend, $caldavBackend, $principalPrefix);
$this->logger = $logger;
diff --git a/apps/dav/lib/CalDAV/EventReader.php b/apps/dav/lib/CalDAV/EventReader.php
index bdceb184fb0..6e845c596ae 100644
--- a/apps/dav/lib/CalDAV/EventReader.php
+++ b/apps/dav/lib/CalDAV/EventReader.php
@@ -89,7 +89,7 @@ class EventReader {
$events = $input->getByUID($uid);
// evaluate if any event where found
if (count($events) === 0) {
- throw new InvalidArgumentException('This VCALENDAR did not have an event with UID: '.$uid);
+ throw new InvalidArgumentException('This VCALENDAR did not have an event with UID: ' . $uid);
}
// extract calendar timezone
if (isset($input->VTIMEZONE) && isset($input->VTIMEZONE->TZID)) {
@@ -297,7 +297,7 @@ class EventReader {
*
* @return string|null R - Relative or A - Absolute
*/
- public function recurringPattern(): string|null {
+ public function recurringPattern(): ?string {
if ($this->rruleIterator === null && $this->rdateIterator === null) {
return null;
}
@@ -314,7 +314,7 @@ class EventReader {
*
* @return string|null daily, weekly, monthly, yearly, fixed
*/
- public function recurringPrecision(): string|null {
+ public function recurringPrecision(): ?string {
if ($this->rruleIterator !== null) {
return $this->rruleIterator->precision();
}
@@ -331,7 +331,7 @@ class EventReader {
*
* @return int|null
*/
- public function recurringInterval(): int|null {
+ public function recurringInterval(): ?int {
return $this->rruleIterator?->interval();
}
@@ -374,7 +374,7 @@ class EventReader {
*
* @return int|null
*/
- public function recurringConcludesAfter(): int|null {
+ public function recurringConcludesAfter(): ?int {
// construct count place holder
$count = 0;
@@ -399,7 +399,7 @@ class EventReader {
*
* @return DateTime|null
*/
- public function recurringConcludesOn(): DateTime|null {
+ public function recurringConcludesOn(): ?DateTime {
if ($this->rruleIterator !== null) {
// retrieve rrule conclusion date
@@ -626,7 +626,7 @@ class EventReader {
*
* @return DateTime
*/
- public function recurrenceDate(): DateTime|null {
+ public function recurrenceDate(): ?DateTime {
if ($this->recurrenceCurrentDate !== null) {
return DateTime::createFromInterface($this->recurrenceCurrentDate);
} else {
diff --git a/apps/dav/lib/CalDAV/EventReaderRDate.php b/apps/dav/lib/CalDAV/EventReaderRDate.php
index 9d9669dc0f3..20234d06c00 100644
--- a/apps/dav/lib/CalDAV/EventReaderRDate.php
+++ b/apps/dav/lib/CalDAV/EventReaderRDate.php
@@ -13,15 +13,15 @@ use DateTime;
class EventReaderRDate extends \Sabre\VObject\Recur\RDateIterator {
- public function concludes(): DateTime|null {
+ public function concludes(): ?DateTime {
return $this->concludesOn();
}
- public function concludesAfter(): int|null {
+ public function concludesAfter(): ?int {
return !empty($this->dates) ? count($this->dates) : null;
}
- public function concludesOn(): DateTime|null {
+ public function concludesOn(): ?DateTime {
if (count($this->dates) > 0) {
return new DateTime(
$this->dates[array_key_last($this->dates)],
diff --git a/apps/dav/lib/CalDAV/EventReaderRRule.php b/apps/dav/lib/CalDAV/EventReaderRRule.php
index fc229ddcd44..d2b4968c479 100644
--- a/apps/dav/lib/CalDAV/EventReaderRRule.php
+++ b/apps/dav/lib/CalDAV/EventReaderRRule.php
@@ -22,7 +22,7 @@ class EventReaderRRule extends \Sabre\VObject\Recur\RRuleIterator {
return $this->interval;
}
- public function concludes(): DateTime|null {
+ public function concludes(): ?DateTime {
// evaluate if until value is a date
if ($this->until instanceof DateTimeInterface) {
return DateTime::createFromInterface($this->until);
@@ -48,11 +48,11 @@ class EventReaderRRule extends \Sabre\VObject\Recur\RRuleIterator {
return null;
}
- public function concludesAfter(): int|null {
+ public function concludesAfter(): ?int {
return !empty($this->count) ? $this->count : null;
}
- public function concludesOn(): DateTime|null {
+ public function concludesOn(): ?DateTime {
return isset($this->until) ? DateTime::createFromInterface($this->until) : null;
}
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index 1b30884cf12..6f8746283d1 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -97,17 +97,17 @@ class PublishPlugin extends ServerPlugin {
public function propFind(PropFind $propFind, INode $node) {
if ($node instanceof Calendar) {
- $propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node) {
+ $propFind->handle('{' . self::NS_CALENDARSERVER . '}publish-url', function () use ($node) {
if ($node->getPublishStatus()) {
// We return the publish-url only if the calendar is published.
$token = $node->getPublishStatus();
- $publishUrl = $this->urlGenerator->getAbsoluteURL($this->server->getBaseUri().'public-calendars/').$token;
+ $publishUrl = $this->urlGenerator->getAbsoluteURL($this->server->getBaseUri() . 'public-calendars/') . $token;
return new Publisher($publishUrl, true);
}
});
- $propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function () use ($node) {
+ $propFind->handle('{' . self::NS_CALENDARSERVER . '}allowed-sharing-modes', function () use ($node) {
$canShare = (!$node->isSubscription() && $node->canWrite());
$canPublish = (!$node->isSubscription() && $node->canWrite());
@@ -160,7 +160,7 @@ class PublishPlugin extends ServerPlugin {
switch ($documentType) {
- case '{'.self::NS_CALENDARSERVER.'}publish-calendar':
+ case '{' . self::NS_CALENDARSERVER . '}publish-calendar':
// We can only deal with IShareableCalendar objects
if (!$node instanceof Calendar) {
@@ -195,7 +195,7 @@ class PublishPlugin extends ServerPlugin {
// Breaking the event chain
return false;
- case '{'.self::NS_CALENDARSERVER.'}unpublish-calendar':
+ case '{' . self::NS_CALENDARSERVER . '}unpublish-calendar':
// We can only deal with IShareableCalendar objects
if (!$node instanceof Calendar) {
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index b6032e733d9..293ce6a8788 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -446,7 +446,7 @@ class ReminderService {
private function writeRemindersToDatabase(array $reminders): void {
$uniqueReminders = [];
foreach ($reminders as $reminder) {
- $key = $reminder['notification_date']. $reminder['event_hash'].$reminder['type'];
+ $key = $reminder['notification_date'] . $reminder['event_hash'] . $reminder['type'];
if (!isset($uniqueReminders[$key])) {
$uniqueReminders[$key] = $reminder;
}
diff --git a/apps/dav/lib/CalDAV/Sharing/Backend.php b/apps/dav/lib/CalDAV/Sharing/Backend.php
index 40fb7e03e5f..fc5d65b5994 100644
--- a/apps/dav/lib/CalDAV/Sharing/Backend.php
+++ b/apps/dav/lib/CalDAV/Sharing/Backend.php
@@ -17,7 +17,8 @@ use Psr\Log\LoggerInterface;
class Backend extends SharingBackend {
- public function __construct(private IUserManager $userManager,
+ public function __construct(
+ private IUserManager $userManager,
private IGroupManager $groupManager,
private Principal $principalBackend,
private ICacheFactory $cacheFactory,
diff --git a/apps/dav/lib/CalDAV/Sharing/Service.php b/apps/dav/lib/CalDAV/Sharing/Service.php
index 7867b8d1adb..4f0554f09bd 100644
--- a/apps/dav/lib/CalDAV/Sharing/Service.php
+++ b/apps/dav/lib/CalDAV/Sharing/Service.php
@@ -13,7 +13,9 @@ use OCA\DAV\DAV\Sharing\SharingService;
class Service extends SharingService {
protected string $resourceType = 'calendar';
- public function __construct(protected SharingMapper $mapper) {
+ public function __construct(
+ protected SharingMapper $mapper,
+ ) {
parent::__construct($mapper);
}
}
diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php
index 56eec5007b8..de19174de58 100644
--- a/apps/dav/lib/CalDAV/Status/StatusService.php
+++ b/apps/dav/lib/CalDAV/Status/StatusService.php
@@ -27,13 +27,15 @@ use Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp;
class StatusService {
private ICache $cache;
- public function __construct(private ITimeFactory $timeFactory,
+ public function __construct(
+ private ITimeFactory $timeFactory,
private IManager $calendarManager,
private IUserManager $userManager,
private UserStatusService $userStatusService,
private IAvailabilityCoordinator $availabilityCoordinator,
private ICacheFactory $cacheFactory,
- private LoggerInterface $logger) {
+ private LoggerInterface $logger,
+ ) {
$this->cache = $cacheFactory->createLocal('CalendarStatusService');
}
diff --git a/apps/dav/lib/CalDAV/TimezoneService.php b/apps/dav/lib/CalDAV/TimezoneService.php
index 93f19be1b55..a7709bde0f9 100644
--- a/apps/dav/lib/CalDAV/TimezoneService.php
+++ b/apps/dav/lib/CalDAV/TimezoneService.php
@@ -20,9 +20,11 @@ use function array_reduce;
class TimezoneService {
- public function __construct(private IConfig $config,
+ public function __construct(
+ private IConfig $config,
private PropertyMapper $propertyMapper,
- private IManager $calendarManager) {
+ private IManager $calendarManager,
+ ) {
}
public function getUserTimezone(string $userId): ?string {
diff --git a/apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php b/apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php
index 1326a42399b..06f4a153bf9 100644
--- a/apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php
+++ b/apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php
@@ -72,7 +72,7 @@ class DeletedCalendarObject implements IACL, ICalendarObject, IRestorable {
public function getContentType() {
$mime = 'text/calendar; charset=utf-8';
if (isset($this->objectData['component']) && $this->objectData['component']) {
- $mime .= '; component='.$this->objectData['component'];
+ $mime .= '; component=' . $this->objectData['component'];
}
return $mime;
diff --git a/apps/dav/lib/CalDAV/UpcomingEvent.php b/apps/dav/lib/CalDAV/UpcomingEvent.php
index 26760ffedd5..e8b604f460a 100644
--- a/apps/dav/lib/CalDAV/UpcomingEvent.php
+++ b/apps/dav/lib/CalDAV/UpcomingEvent.php
@@ -13,13 +13,15 @@ use JsonSerializable;
use OCA\DAV\ResponseDefinitions;
class UpcomingEvent implements JsonSerializable {
- public function __construct(private string $uri,
+ public function __construct(
+ private string $uri,
private ?int $recurrenceId,
private string $calendarUri,
private ?int $start,
private ?string $summary,
private ?string $location,
- private ?string $calendarAppUrl) {
+ private ?string $calendarAppUrl,
+ ) {
}
public function getUri(): string {
diff --git a/apps/dav/lib/CalDAV/UpcomingEventsService.php b/apps/dav/lib/CalDAV/UpcomingEventsService.php
index 04ab1be19b4..9c054deb4e0 100644
--- a/apps/dav/lib/CalDAV/UpcomingEventsService.php
+++ b/apps/dav/lib/CalDAV/UpcomingEventsService.php
@@ -17,11 +17,13 @@ use OCP\IUserManager;
use function array_map;
class UpcomingEventsService {
- public function __construct(private IManager $calendarManager,
+ public function __construct(
+ private IManager $calendarManager,
private ITimeFactory $timeFactory,
private IUserManager $userManager,
private IAppManager $appManager,
- private IURLGenerator $urlGenerator) {
+ private IURLGenerator $urlGenerator,
+ ) {
}
/**
diff --git a/apps/dav/lib/CalDAV/Validation/CalDavValidatePlugin.php b/apps/dav/lib/CalDAV/Validation/CalDavValidatePlugin.php
index 4a9721d00ec..b647e63e67b 100644
--- a/apps/dav/lib/CalDAV/Validation/CalDavValidatePlugin.php
+++ b/apps/dav/lib/CalDAV/Validation/CalDavValidatePlugin.php
@@ -19,7 +19,7 @@ use Sabre\HTTP\ResponseInterface;
class CalDavValidatePlugin extends ServerPlugin {
public function __construct(
- private IAppConfig $config
+ private IAppConfig $config,
) {
}
diff --git a/apps/dav/lib/CalDAV/WebcalCaching/Connection.php b/apps/dav/lib/CalDAV/WebcalCaching/Connection.php
index 9d626f2db6d..51d8cff2ed3 100644
--- a/apps/dav/lib/CalDAV/WebcalCaching/Connection.php
+++ b/apps/dav/lib/CalDAV/WebcalCaching/Connection.php
@@ -21,9 +21,11 @@ use Sabre\DAV\Xml\Property\Href;
use Sabre\VObject\Reader;
class Connection {
- public function __construct(private IClientService $clientService,
+ public function __construct(
+ private IClientService $clientService,
private IAppConfig $config,
- private LoggerInterface $logger) {
+ private LoggerInterface $logger,
+ ) {
}
/**
diff --git a/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php b/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
index 47fd785d632..348a4e5ddbd 100644
--- a/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
+++ b/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
@@ -30,10 +30,12 @@ class RefreshWebcalService {
public const STRIP_ATTACHMENTS = '{http://calendarserver.org/ns/}subscribed-strip-attachments';
public const STRIP_TODOS = '{http://calendarserver.org/ns/}subscribed-strip-todos';
- public function __construct(private CalDavBackend $calDavBackend,
+ public function __construct(
+ private CalDavBackend $calDavBackend,
private LoggerInterface $logger,
private Connection $connection,
- private ITimeFactory $time) {
+ private ITimeFactory $time,
+ ) {
}
public function refreshSubscription(string $principalUri, string $uri) {
diff --git a/apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php b/apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php
index 7f0f1e28623..256d8481ee3 100644
--- a/apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php
+++ b/apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php
@@ -25,12 +25,14 @@ use function explode;
class CardDavRateLimitingPlugin extends ServerPlugin {
private ?string $userId;
- public function __construct(private Limiter $limiter,
+ public function __construct(
+ private Limiter $limiter,
private IUserManager $userManager,
private CardDavBackend $cardDavBackend,
private LoggerInterface $logger,
private IAppConfig $config,
- ?string $userId) {
+ ?string $userId,
+ ) {
$this->limiter = $limiter;
$this->userManager = $userManager;
$this->cardDavBackend = $cardDavBackend;
diff --git a/apps/dav/lib/CardDAV/Sharing/Backend.php b/apps/dav/lib/CardDAV/Sharing/Backend.php
index 5e03f7699fa..557115762fc 100644
--- a/apps/dav/lib/CardDAV/Sharing/Backend.php
+++ b/apps/dav/lib/CardDAV/Sharing/Backend.php
@@ -16,7 +16,8 @@ use OCP\IUserManager;
use Psr\Log\LoggerInterface;
class Backend extends SharingBackend {
- public function __construct(private IUserManager $userManager,
+ public function __construct(
+ private IUserManager $userManager,
private IGroupManager $groupManager,
private Principal $principalBackend,
private ICacheFactory $cacheFactory,
diff --git a/apps/dav/lib/CardDAV/Sharing/Service.php b/apps/dav/lib/CardDAV/Sharing/Service.php
index 69bcecde227..1ab208f7ec3 100644
--- a/apps/dav/lib/CardDAV/Sharing/Service.php
+++ b/apps/dav/lib/CardDAV/Sharing/Service.php
@@ -13,7 +13,9 @@ use OCA\DAV\DAV\Sharing\SharingService;
class Service extends SharingService {
protected string $resourceType = 'addressbook';
- public function __construct(protected SharingMapper $mapper) {
+ public function __construct(
+ protected SharingMapper $mapper,
+ ) {
parent::__construct($mapper);
}
}
diff --git a/apps/dav/lib/CardDAV/Validation/CardDavValidatePlugin.php b/apps/dav/lib/CardDAV/Validation/CardDavValidatePlugin.php
index 7e76b9dac92..a5fd80ec124 100644
--- a/apps/dav/lib/CardDAV/Validation/CardDavValidatePlugin.php
+++ b/apps/dav/lib/CardDAV/Validation/CardDavValidatePlugin.php
@@ -19,7 +19,7 @@ use Sabre\HTTP\ResponseInterface;
class CardDavValidatePlugin extends ServerPlugin {
public function __construct(
- private IAppConfig $config
+ private IAppConfig $config,
) {
}
diff --git a/apps/dav/lib/Command/DeleteCalendar.php b/apps/dav/lib/Command/DeleteCalendar.php
index 53cabcfc5ce..f6dbed856e6 100644
--- a/apps/dav/lib/Command/DeleteCalendar.php
+++ b/apps/dav/lib/Command/DeleteCalendar.php
@@ -54,7 +54,7 @@ class DeleteCalendar extends Command {
protected function execute(
InputInterface $input,
- OutputInterface $output
+ OutputInterface $output,
): int {
/** @var string $user */
$user = $input->getArgument('uid');
diff --git a/apps/dav/lib/Command/FixCalendarSyncCommand.php b/apps/dav/lib/Command/FixCalendarSyncCommand.php
index e94e1dc9c4a..c10ee7e3da6 100644
--- a/apps/dav/lib/Command/FixCalendarSyncCommand.php
+++ b/apps/dav/lib/Command/FixCalendarSyncCommand.php
@@ -20,8 +20,10 @@ use Symfony\Component\Console\Output\OutputInterface;
class FixCalendarSyncCommand extends Command {
- public function __construct(private IUserManager $userManager,
- private CalDavBackend $calDavBackend) {
+ public function __construct(
+ private IUserManager $userManager,
+ private CalDavBackend $calDavBackend,
+ ) {
parent::__construct('dav:fix-missing-caldav-changes');
}
diff --git a/apps/dav/lib/Comments/CommentNode.php b/apps/dav/lib/Comments/CommentNode.php
index a257611dd15..d0f0d585888 100644
--- a/apps/dav/lib/Comments/CommentNode.php
+++ b/apps/dav/lib/Comments/CommentNode.php
@@ -55,7 +55,7 @@ class CommentNode implements \Sabre\DAV\INode, \Sabre\DAV\IProperties {
IComment $comment,
IUserManager $userManager,
IUserSession $userSession,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
$this->commentsManager = $commentsManager;
$this->comment = $comment;
@@ -69,7 +69,7 @@ class CommentNode implements \Sabre\DAV\INode, \Sabre\DAV\IProperties {
if ($getter === 'getMentions') {
continue; // special treatment
}
- $name = '{'.self::NS_OWNCLOUD.'}' . lcfirst(substr($getter, 3));
+ $name = '{' . self::NS_OWNCLOUD . '}' . lcfirst(substr($getter, 3));
$this->properties[$name] = $getter;
}
$this->userManager = $userManager;
diff --git a/apps/dav/lib/Comments/CommentsPlugin.php b/apps/dav/lib/Comments/CommentsPlugin.php
index 3be87460d21..52e48ec0ed1 100644
--- a/apps/dav/lib/Comments/CommentsPlugin.php
+++ b/apps/dav/lib/Comments/CommentsPlugin.php
@@ -216,7 +216,7 @@ class CommentsPlugin extends ServerPlugin {
}
}
if (is_null($actorId)) {
- throw new BadRequest('Invalid actor "' . $actorType .'"');
+ throw new BadRequest('Invalid actor "' . $actorType . '"');
}
try {
diff --git a/apps/dav/lib/Comments/EntityCollection.php b/apps/dav/lib/Comments/EntityCollection.php
index 19af2d9c234..3135449641c 100644
--- a/apps/dav/lib/Comments/EntityCollection.php
+++ b/apps/dav/lib/Comments/EntityCollection.php
@@ -46,7 +46,7 @@ class EntityCollection extends RootCollection implements IProperties {
ICommentsManager $commentsManager,
IUserManager $userManager,
IUserSession $userSession,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
foreach (['id', 'name'] as $property) {
$$property = trim($$property);
diff --git a/apps/dav/lib/Comments/EntityTypeCollection.php b/apps/dav/lib/Comments/EntityTypeCollection.php
index da5a18e78c8..b326805542d 100644
--- a/apps/dav/lib/Comments/EntityTypeCollection.php
+++ b/apps/dav/lib/Comments/EntityTypeCollection.php
@@ -38,7 +38,7 @@ class EntityTypeCollection extends RootCollection {
IUserManager $userManager,
IUserSession $userSession,
LoggerInterface $logger,
- \Closure $childExistsFunction
+ \Closure $childExistsFunction,
) {
$name = trim($name);
if (empty($name)) {
diff --git a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
index f2da3782def..65e77cea285 100644
--- a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
@@ -80,7 +80,7 @@ class CommentPropertiesPlugin extends ServerPlugin {
*/
public function handleGetProperties(
PropFind $propFind,
- \Sabre\DAV\INode $node
+ \Sabre\DAV\INode $node,
) {
if (!($node instanceof File) && !($node instanceof Directory)) {
return;
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 581adfa4184..b82fee957bc 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -106,7 +106,7 @@ class FilesReportPlugin extends ServerPlugin {
IUserSession $userSession,
IGroupManager $groupManager,
Folder $userFolder,
- IAppManager $appManager
+ IAppManager $appManager,
) {
$this->tree = $tree;
$this->fileView = $view;
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php
index 3ca542fee73..ac5514e11e1 100644
--- a/apps/dav/lib/Connector/Sabre/Node.php
+++ b/apps/dav/lib/Connector/Sabre/Node.php
@@ -79,7 +79,7 @@ abstract class Node implements \Sabre\DAV\INode {
protected function refreshInfo(): void {
$info = $this->fileView->getFileInfo($this->path);
if ($info === false) {
- throw new \Sabre\DAV\Exception('Failed to get fileinfo for '. $this->path);
+ throw new \Sabre\DAV\Exception('Failed to get fileinfo for ' . $this->path);
}
$this->info = $info;
$root = \OC::$server->get(IRootFolder::class);
@@ -131,7 +131,7 @@ abstract class Node implements \Sabre\DAV\INode {
$this->verifyPath($newPath);
if (!$this->fileView->rename($this->path, $newPath)) {
- throw new \Sabre\DAV\Exception('Failed to rename '. $this->path . ' to ' . $newPath);
+ throw new \Sabre\DAV\Exception('Failed to rename ' . $this->path . ' to ' . $newPath);
}
$this->path = $newPath;
diff --git a/apps/dav/lib/Connector/Sabre/ServerFactory.php b/apps/dav/lib/Connector/Sabre/ServerFactory.php
index 42d3ce1818a..106b425b121 100644
--- a/apps/dav/lib/Connector/Sabre/ServerFactory.php
+++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php
@@ -49,7 +49,7 @@ class ServerFactory {
IRequest $request,
IPreview $previewManager,
IEventDispatcher $eventDispatcher,
- IL10N $l10n
+ IL10N $l10n,
) {
$this->config = $config;
$this->logger = $logger;
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
index 20e94e9aede..088cf33d85f 100644
--- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
@@ -164,7 +164,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin {
*/
public function handleGetProperties(
PropFind $propFind,
- \Sabre\DAV\INode $sabreNode
+ \Sabre\DAV\INode $sabreNode,
) {
if (!($sabreNode instanceof DavNode)) {
return;
diff --git a/apps/dav/lib/Connector/Sabre/TagsPlugin.php b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
index 3f5268f5137..a3f2847ee1a 100644
--- a/apps/dav/lib/Connector/Sabre/TagsPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
@@ -189,7 +189,7 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin {
*/
public function handleGetProperties(
PropFind $propFind,
- \Sabre\DAV\INode $node
+ \Sabre\DAV\INode $node,
) {
if (!($node instanceof \OCA\DAV\Connector\Sabre\Node)) {
return;
diff --git a/apps/dav/lib/Controller/DirectController.php b/apps/dav/lib/Controller/DirectController.php
index 77f5b8f5419..80e00e93ca7 100644
--- a/apps/dav/lib/Controller/DirectController.php
+++ b/apps/dav/lib/Controller/DirectController.php
@@ -117,7 +117,7 @@ class DirectController extends OCSController {
$this->mapper->insert($direct);
- $url = $this->urlGenerator->getAbsoluteURL('remote.php/direct/'.$token);
+ $url = $this->urlGenerator->getAbsoluteURL('remote.php/direct/' . $token);
return new DataResponse([
'url' => $url,
diff --git a/apps/dav/lib/Controller/OutOfOfficeController.php b/apps/dav/lib/Controller/OutOfOfficeController.php
index 4978fb87737..e8698992949 100644
--- a/apps/dav/lib/Controller/OutOfOfficeController.php
+++ b/apps/dav/lib/Controller/OutOfOfficeController.php
@@ -121,7 +121,7 @@ class OutOfOfficeController extends OCSController {
string $status,
string $message,
?string $replacementUserId,
- ?string $replacementUserDisplayName
+ ?string $replacementUserDisplayName,
): DataResponse {
$user = $this->userSession?->getUser();
diff --git a/apps/dav/lib/DAV/GroupPrincipalBackend.php b/apps/dav/lib/DAV/GroupPrincipalBackend.php
index 7ccc3f02594..887f3b2d7e9 100644
--- a/apps/dav/lib/DAV/GroupPrincipalBackend.php
+++ b/apps/dav/lib/DAV/GroupPrincipalBackend.php
@@ -40,7 +40,7 @@ class GroupPrincipalBackend implements BackendInterface {
IGroupManager $IGroupManager,
IUserSession $userSession,
IShareManager $shareManager,
- IConfig $config
+ IConfig $config,
) {
$this->groupManager = $IGroupManager;
$this->userSession = $userSession;
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php
index 5630336df42..06a082628d3 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -27,7 +27,8 @@ abstract class Backend {
private ICache $shareCache;
- public function __construct(private IUserManager $userManager,
+ public function __construct(
+ private IUserManager $userManager,
private IGroupManager $groupManager,
private Principal $principalBackend,
private ICacheFactory $cacheFactory,
diff --git a/apps/dav/lib/DAV/Sharing/SharingMapper.php b/apps/dav/lib/DAV/Sharing/SharingMapper.php
index 59483ac9471..0aec5b7fe81 100644
--- a/apps/dav/lib/DAV/Sharing/SharingMapper.php
+++ b/apps/dav/lib/DAV/Sharing/SharingMapper.php
@@ -11,7 +11,9 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
class SharingMapper {
- public function __construct(private IDBConnection $db) {
+ public function __construct(
+ private IDBConnection $db,
+ ) {
}
protected function getSharesForIdByAccess(int $resourceId, string $resourceType, bool $sharesWithAccess): array {
diff --git a/apps/dav/lib/DAV/Sharing/SharingService.php b/apps/dav/lib/DAV/Sharing/SharingService.php
index de280d2c347..b9ac36ea066 100644
--- a/apps/dav/lib/DAV/Sharing/SharingService.php
+++ b/apps/dav/lib/DAV/Sharing/SharingService.php
@@ -9,7 +9,9 @@ namespace OCA\DAV\DAV\Sharing;
abstract class SharingService {
protected string $resourceType = '';
- public function __construct(protected SharingMapper $mapper) {
+ public function __construct(
+ protected SharingMapper $mapper,
+ ) {
}
public function getResourceType(): string {
diff --git a/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php b/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
index ca9602fb8c2..aa3a880df6b 100644
--- a/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
+++ b/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
@@ -29,7 +29,7 @@ class ShareRequest implements XmlDeserializable {
public static function xmlDeserialize(Reader $reader) {
$elements = $reader->parseInnerTree([
- '{' . Plugin::NS_OWNCLOUD. '}set' => 'Sabre\\Xml\\Element\\KeyValue',
+ '{' . Plugin::NS_OWNCLOUD . '}set' => 'Sabre\\Xml\\Element\\KeyValue',
'{' . Plugin::NS_OWNCLOUD . '}remove' => 'Sabre\\Xml\\Element\\KeyValue',
]);
diff --git a/apps/dav/lib/Direct/DirectHome.php b/apps/dav/lib/Direct/DirectHome.php
index 36ff8b213cb..66fe6f0f3d4 100644
--- a/apps/dav/lib/Direct/DirectHome.php
+++ b/apps/dav/lib/Direct/DirectHome.php
@@ -46,7 +46,7 @@ class DirectHome implements ICollection {
ITimeFactory $timeFactory,
IThrottler $throttler,
IRequest $request,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
$this->rootFolder = $rootFolder;
$this->mapper = $mapper;
diff --git a/apps/dav/lib/Listener/OutOfOfficeListener.php b/apps/dav/lib/Listener/OutOfOfficeListener.php
index e0997e8182b..45728aa35d3 100644
--- a/apps/dav/lib/Listener/OutOfOfficeListener.php
+++ b/apps/dav/lib/Listener/OutOfOfficeListener.php
@@ -39,7 +39,7 @@ class OutOfOfficeListener implements IEventListener {
private ServerFactory $serverFactory,
private IConfig $appConfig,
private TimezoneService $timezoneService,
- private LoggerInterface $logger
+ private LoggerInterface $logger,
) {
}
diff --git a/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php b/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php
index 4c87e25c698..da8f31e7d3d 100644
--- a/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php
+++ b/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php
@@ -21,7 +21,7 @@ class BuildCalendarSearchIndexBackgroundJob extends QueuedJob {
private CalDavBackend $calDavBackend,
private LoggerInterface $logger,
private IJobList $jobList,
- ITimeFactory $timeFactory
+ ITimeFactory $timeFactory,
) {
parent::__construct($timeFactory);
}
@@ -30,7 +30,7 @@ class BuildCalendarSearchIndexBackgroundJob extends QueuedJob {
$offset = (int)$arguments['offset'];
$stopAt = (int)$arguments['stopAt'];
- $this->logger->info('Building calendar index (' . $offset .'/' . $stopAt . ')');
+ $this->logger->info('Building calendar index (' . $offset . '/' . $stopAt . ')');
$startTime = $this->time->getTime();
while (($this->time->getTime() - $startTime) < 15) {
diff --git a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php
index 138f764f1e6..072a4feacc6 100644
--- a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php
+++ b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php
@@ -31,7 +31,7 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob {
$offset = $arguments['offset'];
$stopAt = $arguments['stopAt'];
- $this->logger->info('Indexing social profile data (' . $offset .'/' . $stopAt . ')');
+ $this->logger->info('Indexing social profile data (' . $offset . '/' . $stopAt . ')');
$offset = $this->buildIndex($offset, $stopAt);
diff --git a/apps/dav/lib/Migration/DeleteSchedulingObjects.php b/apps/dav/lib/Migration/DeleteSchedulingObjects.php
index 3919236788b..3cb3c9c9b10 100644
--- a/apps/dav/lib/Migration/DeleteSchedulingObjects.php
+++ b/apps/dav/lib/Migration/DeleteSchedulingObjects.php
@@ -16,9 +16,10 @@ use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
class DeleteSchedulingObjects implements IRepairStep {
- public function __construct(private IJobList $jobList,
+ public function __construct(
+ private IJobList $jobList,
private ITimeFactory $time,
- private CalDavBackend $calDavBackend
+ private CalDavBackend $calDavBackend,
) {
}
diff --git a/apps/dav/lib/Migration/Version1027Date20230504122946.php b/apps/dav/lib/Migration/Version1027Date20230504122946.php
index 9e1d1701934..f294cf192c2 100644
--- a/apps/dav/lib/Migration/Version1027Date20230504122946.php
+++ b/apps/dav/lib/Migration/Version1027Date20230504122946.php
@@ -20,10 +20,12 @@ use Psr\Log\LoggerInterface;
use Throwable;
class Version1027Date20230504122946 extends SimpleMigrationStep {
- public function __construct(private SyncService $syncService,
+ public function __construct(
+ private SyncService $syncService,
private LoggerInterface $logger,
private IUserManager $userManager,
- private IConfig $config) {
+ private IConfig $config,
+ ) {
}
/**
* @param IOutput $output
diff --git a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php
index 54818a890f3..1a02457d653 100644
--- a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php
+++ b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php
@@ -59,7 +59,7 @@ class AppleProvisioningPlugin extends ServerPlugin {
\OC_Defaults $themingDefaults,
IRequest $request,
IL10N $l10n,
- \Closure $uuidClosure
+ \Closure $uuidClosure,
) {
$this->userSession = $userSession;
$this->urlGenerator = $urlGenerator;
diff --git a/apps/dav/lib/Search/EventsSearchProvider.php b/apps/dav/lib/Search/EventsSearchProvider.php
index 4747635bd7e..55fba40918a 100644
--- a/apps/dav/lib/Search/EventsSearchProvider.php
+++ b/apps/dav/lib/Search/EventsSearchProvider.php
@@ -194,7 +194,7 @@ class EventsSearchProvider extends ACalendarSearchProvider implements IFiltering
protected function getDavUrlForCalendarObject(
string $principalUri,
string $calendarUri,
- string $calendarObjectUri
+ string $calendarObjectUri,
): string {
[,, $principalId] = explode('/', $principalUri, 3);
diff --git a/apps/dav/lib/Settings/AvailabilitySettings.php b/apps/dav/lib/Settings/AvailabilitySettings.php
index dba4662a5ce..6afb03bda8d 100644
--- a/apps/dav/lib/Settings/AvailabilitySettings.php
+++ b/apps/dav/lib/Settings/AvailabilitySettings.php
@@ -24,12 +24,14 @@ class AvailabilitySettings implements ISettings {
protected IInitialState $initialState;
protected ?string $userId;
- public function __construct(IConfig $config,
+ public function __construct(
+ IConfig $config,
IInitialState $initialState,
?string $userId,
private LoggerInterface $logger,
private IAvailabilityCoordinator $coordinator,
- private AbsenceMapper $absenceMapper) {
+ private AbsenceMapper $absenceMapper,
+ ) {
$this->config = $config;
$this->initialState = $initialState;
$this->userId = $userId;
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php
index ec2014163b3..bf7e5e00053 100644
--- a/apps/dav/lib/SystemTag/SystemTagPlugin.php
+++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php
@@ -216,7 +216,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
*/
public function handleGetProperties(
PropFind $propFind,
- \Sabre\DAV\INode $node
+ \Sabre\DAV\INode $node,
) {
if ($node instanceof Node) {
$this->propfindForFile($propFind, $node);
diff --git a/apps/dav/lib/SystemTag/SystemTagsByIdCollection.php b/apps/dav/lib/SystemTag/SystemTagsByIdCollection.php
index c591001179f..13e79c99b65 100644
--- a/apps/dav/lib/SystemTag/SystemTagsByIdCollection.php
+++ b/apps/dav/lib/SystemTag/SystemTagsByIdCollection.php
@@ -44,7 +44,7 @@ class SystemTagsByIdCollection implements ICollection {
public function __construct(
ISystemTagManager $tagManager,
IUserSession $userSession,
- IGroupManager $groupManager
+ IGroupManager $groupManager,
) {
$this->tagManager = $tagManager;
$this->userSession = $userSession;
diff --git a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
index fbe393a7d97..0431acc553a 100644
--- a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
+++ b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
@@ -33,7 +33,7 @@ class SystemTagsInUseCollection extends SimpleCollection {
IRootFolder $rootFolder,
ISystemTagManager $systemTagManager,
SystemTagsInFilesDetector $systemTagsInFilesDetector,
- string $mediaType = ''
+ string $mediaType = '',
) {
$this->userSession = $userSession;
$this->rootFolder = $rootFolder;
diff --git a/apps/dav/lib/UserMigration/CalendarMigrator.php b/apps/dav/lib/UserMigration/CalendarMigrator.php
index 80b564e24ee..7e5bdcd7890 100644
--- a/apps/dav/lib/UserMigration/CalendarMigrator.php
+++ b/apps/dav/lib/UserMigration/CalendarMigrator.php
@@ -67,7 +67,7 @@ class CalendarMigrator implements IMigrator, ISizeEstimationMigrator {
ICalendarManager $calendarManager,
ICSExportPlugin $icsExportPlugin,
Defaults $defaults,
- IL10N $l10n
+ IL10N $l10n,
) {
$this->calDavBackend = $calDavBackend;
$this->calendarManager = $calendarManager;
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php
index a14d3bc5e1c..50787dc4e5d 100644
--- a/apps/dav/lib/UserMigration/ContactsMigrator.php
+++ b/apps/dav/lib/UserMigration/ContactsMigrator.php
@@ -55,7 +55,7 @@ class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
public function __construct(
CardDavBackend $cardDavBackend,
- IL10N $l10n
+ IL10N $l10n,
) {
$this->cardDavBackend = $cardDavBackend;
$this->l10n = $l10n;
diff --git a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
index 8d98a765fc1..06261ca6fa5 100644
--- a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
@@ -380,7 +380,7 @@ class PluginTest extends TestCase {
$this->server->expects($this->once())
->method('getPropertiesForPath')
- ->with($calendarHome .'/' . $calendarUri, [], 1)
+ ->with($calendarHome . '/' . $calendarUri, [], 1)
->willReturn($properties);
$this->plugin->propFindDefaultCalendarUrl($propFind, $node);
@@ -392,7 +392,7 @@ class PluginTest extends TestCase {
/** @var LocalHref $result */
$result = $propFind->get(Plugin::SCHEDULE_DEFAULT_CALENDAR_URL);
- $this->assertEquals('/remote.php/dav/'. $calendarHome . '/' . $calendarUri, $result->getHref());
+ $this->assertEquals('/remote.php/dav/' . $calendarHome . '/' . $calendarUri, $result->getHref());
}
/**
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index 91d7cc5f49e..96968909d1c 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -72,35 +72,35 @@ class CardDavBackendTest extends TestCase {
public const UNIT_TEST_USER1 = 'principals/users/carddav-unit-test1';
public const UNIT_TEST_GROUP = 'principals/groups/carddav-unit-test-group';
- private $vcardTest0 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test'.PHP_EOL.
- 'FN:Test'.PHP_EOL.
- 'N:Test;;;;'.PHP_EOL.
+ private $vcardTest0 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test' . PHP_EOL .
+ 'FN:Test' . PHP_EOL .
+ 'N:Test;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTest1 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test2'.PHP_EOL.
- 'FN:Test2'.PHP_EOL.
- 'N:Test2;;;;'.PHP_EOL.
+ private $vcardTest1 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test2' . PHP_EOL .
+ 'FN:Test2' . PHP_EOL .
+ 'N:Test2;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTest2 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test3'.PHP_EOL.
- 'FN:Test3'.PHP_EOL.
- 'N:Test3;;;;'.PHP_EOL.
+ private $vcardTest2 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test3' . PHP_EOL .
+ 'FN:Test3' . PHP_EOL .
+ 'N:Test3;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTestNoUID = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'FN:TestNoUID'.PHP_EOL.
- 'N:TestNoUID;;;;'.PHP_EOL.
+ private $vcardTestNoUID = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'FN:TestNoUID' . PHP_EOL .
+ 'N:TestNoUID;;;;' . PHP_EOL .
'END:VCARD';
protected function setUp(): void {
@@ -332,7 +332,7 @@ class CardDavBackendTest extends TestCase {
$this->assertArrayHasKey('lastmodified', $card);
$this->assertArrayHasKey('etag', $card);
$this->assertArrayHasKey('size', $card);
- $this->assertEquals($this->{ 'vcardTest'.($index + 1) }, $card['carddata']);
+ $this->assertEquals($this->{ 'vcardTest' . ($index + 1) }, $card['carddata']);
}
// delete the card
diff --git a/apps/dav/tests/unit/Command/DeleteCalendarTest.php b/apps/dav/tests/unit/Command/DeleteCalendarTest.php
index 583673c9d30..b621e6737d5 100644
--- a/apps/dav/tests/unit/Command/DeleteCalendarTest.php
+++ b/apps/dav/tests/unit/Command/DeleteCalendarTest.php
@@ -100,7 +100,7 @@ class DeleteCalendarTest extends TestCase {
public function testInvalidCalendar(): void {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(
- 'User <' . self::USER . '> has no calendar named <' . self::NAME . '>.');
+ 'User <' . self::USER . '> has no calendar named <' . self::NAME . '>.');
$this->userManager->expects($this->once())
->method('userExists')
diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
index 5010f7698b5..4f2e5174325 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
@@ -127,7 +127,7 @@ class ObjectTreeTest extends \Test\TestCase {
$inputFileName,
$fileInfoQueryPath,
$outputFileName,
- $type
+ $type,
): void {
$rootNode = $this->getMockBuilder(Directory::class)
->disableOriginalConstructor()
diff --git a/apps/dav/tests/unit/Controller/DirectControllerTest.php b/apps/dav/tests/unit/Controller/DirectControllerTest.php
index 2476681251c..faaf67d266b 100644
--- a/apps/dav/tests/unit/Controller/DirectControllerTest.php
+++ b/apps/dav/tests/unit/Controller/DirectControllerTest.php
@@ -136,7 +136,7 @@ class DirectControllerTest extends TestCase {
$this->urlGenerator->method('getAbsoluteURL')
->willReturnCallback(function (string $url) {
- return 'https://my.nextcloud/'.$url;
+ return 'https://my.nextcloud/' . $url;
});
$result = $this->controller->getUrl(101);
diff --git a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
index 92c89fc62f8..bfc4c5b2493 100644
--- a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
+++ b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
@@ -349,7 +349,7 @@ class GroupPrincipalTest extends \Test\TestCase {
$fooGroup
->expects($this->exactly(1))
->method('getDisplayName')
- ->willReturn('Group '.$gid);
+ ->willReturn('Group ' . $gid);
return $fooGroup;
}
}
diff --git a/apps/dav/tests/unit/Files/MultipartRequestParserTest.php b/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
index ebe2a0b172e..e6325ab8ad1 100644
--- a/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
+++ b/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
@@ -36,7 +36,7 @@ class MultipartRequestParserTest extends TestCase {
->disableOriginalConstructor()
->getMock();
- $headers = array_merge(['Content-Type' => 'multipart/related; boundary='.$boundary], $headers);
+ $headers = array_merge(['Content-Type' => 'multipart/related; boundary=' . $boundary], $headers);
$request->expects($this->any())
->method('getHeader')
->willReturnCallback(function (string $key) use (&$headers) {
@@ -45,17 +45,17 @@ class MultipartRequestParserTest extends TestCase {
$body = '';
foreach ($parts as $part) {
- $body .= '--'.$boundary."\r\n";
+ $body .= '--' . $boundary . "\r\n";
foreach ($part['headers'] as $headerKey => $headerPart) {
- $body .= $headerKey.': '.$headerPart."\r\n";
+ $body .= $headerKey . ': ' . $headerPart . "\r\n";
}
$body .= "\r\n";
- $body .= $part['content']."\r\n";
+ $body .= $part['content'] . "\r\n";
}
- $body .= '--'.$boundary.'--';
+ $body .= '--' . $boundary . '--';
$stream = fopen('php://temp', 'r+');
fwrite($stream, $body);
diff --git a/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php b/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
index bfc57dc61d7..0a83d238f0f 100644
--- a/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
@@ -37,22 +37,22 @@ class ContactsSearchProviderTest extends TestCase {
/** @var ContactsSearchProvider */
private $provider;
- private $vcardTest0 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test'.PHP_EOL.
- 'FN:FN of Test'.PHP_EOL.
- 'N:Test;;;;'.PHP_EOL.
- 'EMAIL:forrestgump@example.com'.PHP_EOL.
+ private $vcardTest0 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test' . PHP_EOL .
+ 'FN:FN of Test' . PHP_EOL .
+ 'N:Test;;;;' . PHP_EOL .
+ 'EMAIL:forrestgump@example.com' . PHP_EOL .
'END:VCARD';
- private $vcardTest1 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'PHOTO;ENCODING=b;TYPE=image/jpeg:'.PHP_EOL.
- 'UID:Test2'.PHP_EOL.
- 'FN:FN of Test2'.PHP_EOL.
- 'N:Test2;;;;'.PHP_EOL.
+ private $vcardTest1 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'PHOTO;ENCODING=b;TYPE=image/jpeg:' . PHP_EOL .
+ 'UID:Test2' . PHP_EOL .
+ 'FN:FN of Test2' . PHP_EOL .
+ 'N:Test2;;;;' . PHP_EOL .
'END:VCARD';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Search/EventsSearchProviderTest.php b/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
index d194b7fa7c6..0eafe0782e5 100644
--- a/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
@@ -38,183 +38,183 @@ class EventsSearchProviderTest extends TestCase {
private $provider;
// NO SUMMARY
- private $vEvent0 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161008'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent0 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161008' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// TIMED SAME DAY
- private $vEvent1 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'DTEND;TZID=Europe/Berlin:20160816T100000'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent1 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'DTEND;TZID=Europe/Berlin:20160816T100000' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// TIMED DIFFERENT DAY
- private $vEvent2 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'DTEND;TZID=Europe/Berlin:20160817T100000'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent2 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'DTEND;TZID=Europe/Berlin:20160817T100000' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// ALL-DAY ONE-DAY
- private $vEvent3 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161006'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent3 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161006' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// ALL-DAY MULTIPLE DAYS
- private $vEvent4 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161008'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent4 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161008' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// DURATION
- private $vEvent5 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DURATION:P5D'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent5 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DURATION:P5D' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// NO DTEND - DATE
- private $vEvent6 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent6 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// NO DTEND - DATE-TIME
- private $vEvent7 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent7 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Search/TasksSearchProviderTest.php b/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
index 18b6f0a5930..0b1bf1ba0d7 100644
--- a/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
@@ -38,67 +38,67 @@ class TasksSearchProviderTest extends TestCase {
private $provider;
// NO DUE NOR COMPLETED NOR SUMMARY
- private $vTodo0 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo0 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE AND COMPLETED
- private $vTodo1 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'COMPLETED:20070707T100000Z'.PHP_EOL.
- 'DUE;VALUE=DATE:20070501'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo1 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'COMPLETED:20070707T100000Z' . PHP_EOL .
+ 'DUE;VALUE=DATE:20070501' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// COMPLETED ONLY
- private $vTodo2 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'COMPLETED:20070707T100000Z'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo2 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'COMPLETED:20070707T100000Z' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE DATE
- private $vTodo3 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'DUE;VALUE=DATE:20070501'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo3 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'DUE;VALUE=DATE:20070501' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE DATETIME
- private $vTodo4 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'DUE:20070709T130000Z'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo4 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'DUE:20070709T130000Z' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php
index 61dbda35ae2..886a7f0b859 100644
--- a/apps/dav/tests/unit/bootstrap.php
+++ b/apps/dav/tests/unit/bootstrap.php
@@ -9,7 +9,7 @@ if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
-require_once __DIR__.'/../../../../lib/base.php';
+require_once __DIR__ . '/../../../../lib/base.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
diff --git a/apps/encryption/lib/Command/DropLegacyFileKey.php b/apps/encryption/lib/Command/DropLegacyFileKey.php
index 03c24fe8a22..a9add1ad93b 100644
--- a/apps/encryption/lib/Command/DropLegacyFileKey.php
+++ b/apps/encryption/lib/Command/DropLegacyFileKey.php
@@ -114,10 +114,10 @@ class DropLegacyFileKey extends Command {
$copyResource = $this->rootView->fopen($target, 'r');
$sourceResource = $this->rootView->fopen($source, 'w');
if ($copyResource === false || $sourceResource === false) {
- throw new DecryptionFailedException('Failed to open '.$source.' or '.$target);
+ throw new DecryptionFailedException('Failed to open ' . $source . ' or ' . $target);
}
if (stream_copy_to_stream($copyResource, $sourceResource) === false) {
- $output->writeln('<error>Failed to copy '.$target.' data into '.$source.'</error>');
+ $output->writeln('<error>Failed to copy ' . $target . ' data into ' . $source . '</error>');
$output->writeln('<error>Leaving both files in there to avoid data loss</error>');
return;
}
diff --git a/apps/encryption/lib/Controller/SettingsController.php b/apps/encryption/lib/Controller/SettingsController.php
index 251f385127a..df896e52fa5 100644
--- a/apps/encryption/lib/Controller/SettingsController.php
+++ b/apps/encryption/lib/Controller/SettingsController.php
@@ -69,7 +69,7 @@ class SettingsController extends Controller {
Crypt $crypt,
Session $session,
ISession $ocSession,
- Util $util
+ Util $util,
) {
parent::__construct($AppName, $request);
$this->l = $l10n;
diff --git a/apps/encryption/lib/Controller/StatusController.php b/apps/encryption/lib/Controller/StatusController.php
index b5b54ee2f6d..5c6a950d0a3 100644
--- a/apps/encryption/lib/Controller/StatusController.php
+++ b/apps/encryption/lib/Controller/StatusController.php
@@ -37,7 +37,7 @@ class StatusController extends Controller {
IRequest $request,
IL10N $l10n,
Session $session,
- IManager $encryptionManager
+ IManager $encryptionManager,
) {
parent::__construct($AppName, $request);
$this->l = $l10n;
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 92d6ed6a443..b38734dd061 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -155,7 +155,7 @@ class Crypt {
$this->getCipher());
// Create a signature based on the key as well as the current version
- $sig = $this->createSignature($encryptedContent, $passPhrase.'_'.$version.'_'.$position);
+ $sig = $this->createSignature($encryptedContent, $passPhrase . '_' . $version . '_' . $position);
// combine content to encrypt the IV identifier and actual IV
$catFile = $this->concatIV($encryptedContent, $iv);
@@ -760,7 +760,7 @@ class Crypt {
$result = (strlen($output) === strlen($data));
}
} else {
- throw new DecryptionFailedException('Unsupported cipher '.$cipher_algo);
+ throw new DecryptionFailedException('Unsupported cipher ' . $cipher_algo);
}
return $result;
@@ -807,7 +807,7 @@ class Crypt {
}
}
} else {
- throw new EncryptionFailedException('Unsupported cipher '.$cipher_algo);
+ throw new EncryptionFailedException('Unsupported cipher ' . $cipher_algo);
}
return $result;
diff --git a/apps/encryption/lib/Crypto/DecryptAll.php b/apps/encryption/lib/Crypto/DecryptAll.php
index 80c187571b7..e153712fb99 100644
--- a/apps/encryption/lib/Crypto/DecryptAll.php
+++ b/apps/encryption/lib/Crypto/DecryptAll.php
@@ -45,7 +45,7 @@ class DecryptAll {
KeyManager $keyManager,
Crypt $crypt,
Session $session,
- QuestionHelper $questionHelper
+ QuestionHelper $questionHelper,
) {
$this->util = $util;
$this->keyManager = $keyManager;
diff --git a/apps/encryption/lib/Crypto/EncryptAll.php b/apps/encryption/lib/Crypto/EncryptAll.php
index 310f37aba83..e9db5034baa 100644
--- a/apps/encryption/lib/Crypto/EncryptAll.php
+++ b/apps/encryption/lib/Crypto/EncryptAll.php
@@ -82,7 +82,7 @@ class EncryptAll {
IL10N $l,
IFactory $l10nFactory,
QuestionHelper $questionHelper,
- ISecureRandom $secureRandom
+ ISecureRandom $secureRandom,
) {
$this->userSetup = $userSetup;
$this->userManager = $userManager;
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php
index 9fd6c7655af..0c9c02760a8 100644
--- a/apps/encryption/lib/KeyManager.php
+++ b/apps/encryption/lib/KeyManager.php
@@ -211,7 +211,7 @@ class KeyManager {
*/
public function setRecoveryKey($password, $keyPair) {
// Save Public Key
- $this->keyStorage->setSystemUserKey($this->getRecoveryKeyId().
+ $this->keyStorage->setSystemUserKey($this->getRecoveryKeyId() .
'.' . $this->publicKeyId,
$keyPair['publicKey'],
Encryption::ID);
diff --git a/apps/encryption/lib/Settings/Admin.php b/apps/encryption/lib/Settings/Admin.php
index 4f695f61b1b..e8290b778ad 100644
--- a/apps/encryption/lib/Settings/Admin.php
+++ b/apps/encryption/lib/Settings/Admin.php
@@ -25,7 +25,7 @@ class Admin implements ISettings {
private IUserSession $userSession,
private IConfig $config,
private IUserManager $userManager,
- private ISession $session
+ private ISession $session,
) {
}
diff --git a/apps/encryption/tests/Command/FixEncryptedVersionTest.php b/apps/encryption/tests/Command/FixEncryptedVersionTest.php
index fd6e27e030b..e5079b9a8af 100644
--- a/apps/encryption/tests/Command/FixEncryptedVersionTest.php
+++ b/apps/encryption/tests/Command/FixEncryptedVersionTest.php
@@ -251,7 +251,7 @@ Fixed the file: \"/$this->userId/files/world.txt\" with version 4", $output);
$cacheInfo = ['encryptedVersion' => 1, 'encrypted' => 1];
$cache1->put($fileCache1->getPath(), $cacheInfo);
- $absPath = $storage1->getSourcePath('').$fileInfo1->getInternalPath();
+ $absPath = $storage1->getSourcePath('') . $fileInfo1->getInternalPath();
// create unencrypted file on disk, the version stays
file_put_contents($absPath, 'hello contents');
diff --git a/apps/federatedfilesharing/lib/AddressHandler.php b/apps/federatedfilesharing/lib/AddressHandler.php
index 320f65c2b42..d96c956eb11 100644
--- a/apps/federatedfilesharing/lib/AddressHandler.php
+++ b/apps/federatedfilesharing/lib/AddressHandler.php
@@ -38,7 +38,7 @@ class AddressHandler {
public function __construct(
IURLGenerator $urlGenerator,
IL10N $il10n,
- ICloudIdManager $cloudIdManager
+ ICloudIdManager $cloudIdManager,
) {
$this->l = $il10n;
$this->urlGenerator = $urlGenerator;
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
index 71661efa384..8d4f6fd3af8 100644
--- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
+++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
@@ -84,7 +84,7 @@ class RequestHandlerController extends OCSController {
LoggerInterface $logger,
ICloudFederationFactory $cloudFederationFactory,
ICloudFederationProviderManager $cloudFederationProviderManager,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
parent::__construct($appName, $request);
diff --git a/apps/federatedfilesharing/lib/Settings/Admin.php b/apps/federatedfilesharing/lib/Settings/Admin.php
index 90ee9a8c748..a7bdc545413 100644
--- a/apps/federatedfilesharing/lib/Settings/Admin.php
+++ b/apps/federatedfilesharing/lib/Settings/Admin.php
@@ -28,7 +28,7 @@ class Admin implements IDelegatedSettings {
IConfig $globalScaleConfig,
IL10N $l,
IURLGenerator $urlGenerator,
- IInitialState $initialState
+ IInitialState $initialState,
) {
$this->fedShareProvider = $fedShareProvider;
$this->gsConfig = $globalScaleConfig;
diff --git a/apps/federatedfilesharing/lib/Settings/Personal.php b/apps/federatedfilesharing/lib/Settings/Personal.php
index bee6cc538c6..93ca36ab420 100644
--- a/apps/federatedfilesharing/lib/Settings/Personal.php
+++ b/apps/federatedfilesharing/lib/Settings/Personal.php
@@ -28,7 +28,7 @@ class Personal implements ISettings {
IUserSession $userSession,
Defaults $defaults,
IInitialState $initialState,
- IURLGenerator $urlGenerator
+ IURLGenerator $urlGenerator,
) {
$this->federatedShareProvider = $federatedShareProvider;
$this->userSession = $userSession;
diff --git a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
index 6eb7ce30274..9caafb35bb3 100644
--- a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
+++ b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
@@ -129,7 +129,7 @@ class MountPublicLinkControllerTest extends \Test\TestCase {
$validToken,
$createSuccessful,
$expectedReturnData,
- $permissions
+ $permissions,
): void {
$this->federatedShareProvider->expects($this->any())
->method('isOutgoingServer2serverShareEnabled')
diff --git a/apps/federatedfilesharing/tests/NotificationsTest.php b/apps/federatedfilesharing/tests/NotificationsTest.php
index 868591cb4dd..7ac4e964362 100644
--- a/apps/federatedfilesharing/tests/NotificationsTest.php
+++ b/apps/federatedfilesharing/tests/NotificationsTest.php
@@ -113,7 +113,7 @@ class NotificationsTest extends \Test\TestCase {
$instance->expects($this->any())->method('getTimestamp')->willReturn($timestamp);
$instance->expects($this->once())->method('tryHttpPostToShareEndpoint')
- ->with($remote, '/'.$id.'/unshare', ['token' => $token, 'data1Key' => 'data1Value', 'remoteId' => $id], $action)
+ ->with($remote, '/' . $id . '/unshare', ['token' => $token, 'data1Key' => 'data1Value', 'remoteId' => $id], $action)
->willReturn($httpRequestResult);
// only add background job on first try
diff --git a/apps/federation/lib/BackgroundJob/GetSharedSecret.php b/apps/federation/lib/BackgroundJob/GetSharedSecret.php
index 1a23d58a7d1..92196e68e01 100644
--- a/apps/federation/lib/BackgroundJob/GetSharedSecret.php
+++ b/apps/federation/lib/BackgroundJob/GetSharedSecret.php
@@ -47,7 +47,7 @@ class GetSharedSecret extends Job {
TrustedServers $trustedServers,
LoggerInterface $logger,
IDiscoveryService $ocsDiscoveryService,
- ITimeFactory $timeFactory
+ ITimeFactory $timeFactory,
) {
parent::__construct($timeFactory);
$this->logger = $logger;
diff --git a/apps/federation/lib/Controller/OCSAuthAPIController.php b/apps/federation/lib/Controller/OCSAuthAPIController.php
index 8412868da42..221a9321cd7 100644
--- a/apps/federation/lib/Controller/OCSAuthAPIController.php
+++ b/apps/federation/lib/Controller/OCSAuthAPIController.php
@@ -50,7 +50,7 @@ class OCSAuthAPIController extends OCSController {
DbHandler $dbHandler,
LoggerInterface $logger,
ITimeFactory $timeFactory,
- IThrottler $throttler
+ IThrottler $throttler,
) {
parent::__construct($appName, $request);
@@ -165,7 +165,7 @@ class OCSAuthAPIController extends OCSController {
$this->throttler->registerAttempt('federationSharedSecret', $this->request->getRemoteAddress());
$expectedToken = $this->dbHandler->getToken($url);
$this->logger->error(
- 'remote server (' . $url . ') didn\'t send a valid token (got "' . $token . '" but expected "'. $expectedToken . '") while getting shared secret',
+ 'remote server (' . $url . ') didn\'t send a valid token (got "' . $token . '" but expected "' . $expectedToken . '") while getting shared secret',
['app' => 'federation']
);
throw new OCSForbiddenException();
diff --git a/apps/federation/lib/Controller/SettingsController.php b/apps/federation/lib/Controller/SettingsController.php
index f5131581d94..18ebc516cb8 100644
--- a/apps/federation/lib/Controller/SettingsController.php
+++ b/apps/federation/lib/Controller/SettingsController.php
@@ -23,7 +23,7 @@ class SettingsController extends Controller {
public function __construct(string $AppName,
IRequest $request,
IL10N $l10n,
- TrustedServers $trustedServers
+ TrustedServers $trustedServers,
) {
parent::__construct($AppName, $request);
$this->l = $l10n;
diff --git a/apps/federation/lib/DbHandler.php b/apps/federation/lib/DbHandler.php
index 8a189dc56f7..4b7fc1a8da1 100644
--- a/apps/federation/lib/DbHandler.php
+++ b/apps/federation/lib/DbHandler.php
@@ -31,7 +31,7 @@ class DbHandler {
public function __construct(
IDBConnection $connection,
- IL10N $il10n
+ IL10N $il10n,
) {
$this->connection = $connection;
$this->IL10N = $il10n;
diff --git a/apps/federation/lib/SyncFederationAddressBooks.php b/apps/federation/lib/SyncFederationAddressBooks.php
index aaed6ca9d94..8060a78ada7 100644
--- a/apps/federation/lib/SyncFederationAddressBooks.php
+++ b/apps/federation/lib/SyncFederationAddressBooks.php
@@ -22,7 +22,7 @@ class SyncFederationAddressBooks {
public function __construct(DbHandler $dbHandler,
SyncService $syncService,
IDiscoveryService $ocsDiscoveryService,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
$this->syncService = $syncService;
$this->dbHandler = $dbHandler;
diff --git a/apps/federation/lib/TrustedServers.php b/apps/federation/lib/TrustedServers.php
index 48cffd2d274..e59f281df0b 100644
--- a/apps/federation/lib/TrustedServers.php
+++ b/apps/federation/lib/TrustedServers.php
@@ -51,7 +51,7 @@ class TrustedServers {
ISecureRandom $secureRandom,
IConfig $config,
IEventDispatcher $dispatcher,
- ITimeFactory $timeFactory
+ ITimeFactory $timeFactory,
) {
$this->dbHandler = $dbHandler;
$this->httpClientService = $httpClientService;
diff --git a/apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php b/apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php
index 81f3d229bc0..ce2de9a74bb 100644
--- a/apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php
+++ b/apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php
@@ -22,7 +22,7 @@ class DeleteExpiredOpenLocalEditor extends TimedJob {
public function __construct(
ITimeFactory $time,
- OpenLocalEditorMapper $mapper
+ OpenLocalEditorMapper $mapper,
) {
parent::__construct($time);
$this->mapper = $mapper;
diff --git a/apps/files/lib/BackgroundJob/ScanFiles.php b/apps/files/lib/BackgroundJob/ScanFiles.php
index b7e6e8db10e..88b45033255 100644
--- a/apps/files/lib/BackgroundJob/ScanFiles.php
+++ b/apps/files/lib/BackgroundJob/ScanFiles.php
@@ -37,7 +37,7 @@ class ScanFiles extends TimedJob {
IEventDispatcher $dispatcher,
LoggerInterface $logger,
IDBConnection $connection,
- ITimeFactory $time
+ ITimeFactory $time,
) {
parent::__construct($time);
// Run once per 10 minutes
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php
index 5360d38bdb6..22de2f6d19f 100644
--- a/apps/files/lib/Command/ScanAppData.php
+++ b/apps/files/lib/Command/ScanAppData.php
@@ -238,6 +238,6 @@ class ScanAppData extends Base {
throw new NotFoundException();
}
- return $this->rootFolder->get('appdata_'.$instanceId);
+ return $this->rootFolder->get('appdata_' . $instanceId);
}
}
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php
index 62ae4e6b0f0..0ca4a1efd4b 100644
--- a/apps/files/lib/Controller/ApiController.php
+++ b/apps/files/lib/Controller/ApiController.php
@@ -47,7 +47,8 @@ use Throwable;
* @package OCA\Files\Controller
*/
class ApiController extends Controller {
- public function __construct(string $appName,
+ public function __construct(
+ string $appName,
IRequest $request,
private IUserSession $userSession,
private TagService $tagService,
diff --git a/apps/files/lib/Controller/DirectEditingController.php b/apps/files/lib/Controller/DirectEditingController.php
index 693587f9c8a..63f29d3ba2a 100644
--- a/apps/files/lib/Controller/DirectEditingController.php
+++ b/apps/files/lib/Controller/DirectEditingController.php
@@ -29,7 +29,7 @@ class DirectEditingController extends OCSController {
private IURLGenerator $urlGenerator,
private IManager $directEditingManager,
private DirectEditingService $directEditingService,
- private LoggerInterface $logger
+ private LoggerInterface $logger,
) {
parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge);
}
diff --git a/apps/files/lib/Controller/OpenLocalEditorController.php b/apps/files/lib/Controller/OpenLocalEditorController.php
index 0c13af2a6d2..1982569e7d2 100644
--- a/apps/files/lib/Controller/OpenLocalEditorController.php
+++ b/apps/files/lib/Controller/OpenLocalEditorController.php
@@ -42,7 +42,7 @@ class OpenLocalEditorController extends OCSController {
OpenLocalEditorMapper $mapper,
ISecureRandom $secureRandom,
LoggerInterface $logger,
- ?string $userId
+ ?string $userId,
) {
parent::__construct($appName, $request);
diff --git a/apps/files/lib/Controller/TemplateController.php b/apps/files/lib/Controller/TemplateController.php
index d4232763235..f3272d70d68 100644
--- a/apps/files/lib/Controller/TemplateController.php
+++ b/apps/files/lib/Controller/TemplateController.php
@@ -62,7 +62,7 @@ class TemplateController extends OCSController {
string $filePath,
string $templatePath = '',
string $templateType = 'user',
- array $templateFields = []
+ array $templateFields = [],
): DataResponse {
try {
return new DataResponse($this->templateManager->createFromTemplate(
diff --git a/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php b/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
index 1ae80735972..5fd233d232e 100644
--- a/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
+++ b/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
@@ -27,7 +27,7 @@ class CredentialsCleanup extends TimedJob {
ITimeFactory $time,
ICredentialsManager $credentialsManager,
UserGlobalStoragesService $userGlobalStoragesService,
- IUserManager $userManager
+ IUserManager $userManager,
) {
parent::__construct($time);
diff --git a/apps/files_external/lib/Command/Scan.php b/apps/files_external/lib/Command/Scan.php
index 575ee5989f5..374566ce211 100644
--- a/apps/files_external/lib/Command/Scan.php
+++ b/apps/files_external/lib/Command/Scan.php
@@ -24,7 +24,7 @@ class Scan extends StorageAuthBase {
public function __construct(
GlobalStoragesService $globalService,
- IUserManager $userManager
+ IUserManager $userManager,
) {
parent::__construct($globalService, $userManager);
}
diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php
index 10fd120c3d9..d326e1f7f44 100644
--- a/apps/files_external/lib/Controller/ApiController.php
+++ b/apps/files_external/lib/Controller/ApiController.php
@@ -31,7 +31,7 @@ class ApiController extends OCSController {
string $appName,
IRequest $request,
UserGlobalStoragesService $userGlobalStorageService,
- UserStoragesService $userStorageService
+ UserStoragesService $userStorageService,
) {
parent::__construct($appName, $request);
$this->userGlobalStoragesService = $userGlobalStorageService;
diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php
index d773f3ea5e2..05cfd4684d8 100644
--- a/apps/files_external/lib/Controller/GlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/GlobalStoragesController.php
@@ -41,7 +41,7 @@ class GlobalStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -77,7 +77,7 @@ class GlobalStoragesController extends StoragesController {
$mountOptions,
$applicableUsers,
$applicableGroups,
- $priority
+ $priority,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
@@ -144,7 +144,7 @@ class GlobalStoragesController extends StoragesController {
$applicableUsers,
$applicableGroups,
$priority,
- $testOnly = true
+ $testOnly = true,
) {
$storage = $this->createStorage(
$mountPoint,
diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php
index ab580987b0e..fcd3863e658 100644
--- a/apps/files_external/lib/Controller/StoragesController.php
+++ b/apps/files_external/lib/Controller/StoragesController.php
@@ -44,7 +44,7 @@ abstract class StoragesController extends Controller {
protected LoggerInterface $logger,
protected IUserSession $userSession,
protected IGroupManager $groupManager,
- protected IConfig $config
+ protected IConfig $config,
) {
parent::__construct($AppName, $request);
}
@@ -71,7 +71,7 @@ abstract class StoragesController extends Controller {
$mountOptions = null,
$applicableUsers = null,
$applicableGroups = null,
- $priority = null
+ $priority = null,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
index 3d364fff57d..60159e1bc54 100644
--- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
@@ -47,7 +47,7 @@ class UserGlobalStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -139,7 +139,7 @@ class UserGlobalStoragesController extends StoragesController {
public function update(
$id,
$backendOptions,
- $testOnly = true
+ $testOnly = true,
) {
try {
$storage = $this->service->getStorage($id);
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index a85aa3faa96..ac806fe219c 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -44,7 +44,7 @@ class UserStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -104,7 +104,7 @@ class UserStoragesController extends StoragesController {
$backend,
$authMechanism,
$backendOptions,
- $mountOptions
+ $mountOptions,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
@@ -161,7 +161,7 @@ class UserStoragesController extends StoragesController {
$authMechanism,
$backendOptions,
$mountOptions,
- $testOnly = true
+ $testOnly = true,
) {
$storage = $this->createStorage(
$mountPoint,
diff --git a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
index ea42b0275f7..5c36f843307 100644
--- a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
+++ b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
@@ -46,7 +46,7 @@ class LoginCredentials extends AuthMechanism {
ICredentialsManager $credentialsManager,
CredentialsStore $credentialsStore,
IEventDispatcher $eventDispatcher,
- ILDAPProviderFactory $ldapFactory
+ ILDAPProviderFactory $ldapFactory,
) {
$this->session = $session;
$this->credentialsManager = $credentialsManager;
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php
index 64e8fdcea69..610807bc7a2 100644
--- a/apps/files_external/lib/Lib/PersonalMount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
@@ -39,7 +39,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
$arguments = null,
$loader = null,
$mountOptions = null,
- $mountId = null
+ $mountId = null,
) {
parent::__construct($storageConfig, $storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
$this->storagesService = $storagesService;
diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php
index b057fb810bd..1cbd6e14ebe 100644
--- a/apps/files_external/lib/MountConfig.php
+++ b/apps/files_external/lib/MountConfig.php
@@ -41,7 +41,7 @@ class MountConfig {
public function __construct(
UserGlobalStoragesService $userGlobalStorageService,
UserStoragesService $userStorageService,
- GlobalStoragesService $globalStorageService
+ GlobalStoragesService $globalStorageService,
) {
$this->userGlobalStorageService = $userGlobalStorageService;
$this->userStorageService = $userStorageService;
diff --git a/apps/files_external/lib/Service/BackendService.php b/apps/files_external/lib/Service/BackendService.php
index 5eb0276be65..a72179a3373 100644
--- a/apps/files_external/lib/Service/BackendService.php
+++ b/apps/files_external/lib/Service/BackendService.php
@@ -62,7 +62,7 @@ class BackendService {
* @param IConfig $config
*/
public function __construct(
- IConfig $config
+ IConfig $config,
) {
$this->config = $config;
diff --git a/apps/files_external/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php
index ac9273f2afc..1f5cf8cdf28 100644
--- a/apps/files_external/lib/Service/LegacyStoragesService.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -37,7 +37,7 @@ abstract class LegacyStoragesService {
&$storageConfig,
$mountType,
$applicable,
- $storageOptions
+ $storageOptions,
) {
$backend = $this->backendService->getBackend($storageOptions['backend']);
if (!$backend) {
diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php
index 09f7ea954b4..40bf5bfe1a8 100644
--- a/apps/files_external/lib/Service/StoragesService.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -50,7 +50,7 @@ abstract class StoragesService {
BackendService $backendService,
DBConfigService $dbConfigService,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
$this->backendService = $backendService;
$this->dbConfig = $dbConfigService;
@@ -282,7 +282,7 @@ abstract class StoragesService {
$mountOptions = null,
$applicableUsers = null,
$applicableGroups = null,
- $priority = null
+ $priority = null,
) {
$backend = $this->backendService->getBackend($backendIdentifier);
if (!$backend) {
diff --git a/apps/files_external/lib/Service/UserGlobalStoragesService.php b/apps/files_external/lib/Service/UserGlobalStoragesService.php
index 58590b8d682..6fc37ea99b3 100644
--- a/apps/files_external/lib/Service/UserGlobalStoragesService.php
+++ b/apps/files_external/lib/Service/UserGlobalStoragesService.php
@@ -37,7 +37,7 @@ class UserGlobalStoragesService extends GlobalStoragesService {
IUserSession $userSession,
IGroupManager $groupManager,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
parent::__construct($backendService, $dbConfig, $userMountCache, $eventDispatcher);
$this->userSession = $userSession;
diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php
index ba678156368..b461451389b 100644
--- a/apps/files_external/lib/Service/UserStoragesService.php
+++ b/apps/files_external/lib/Service/UserStoragesService.php
@@ -34,7 +34,7 @@ class UserStoragesService extends StoragesService {
DBConfigService $dbConfig,
IUserSession $userSession,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
$this->userSession = $userSession;
parent::__construct($backendService, $dbConfig, $userMountCache, $eventDispatcher);
diff --git a/apps/files_external/lib/Settings/Admin.php b/apps/files_external/lib/Settings/Admin.php
index 63a420e749e..707f7704702 100644
--- a/apps/files_external/lib/Settings/Admin.php
+++ b/apps/files_external/lib/Settings/Admin.php
@@ -30,7 +30,7 @@ class Admin implements ISettings {
IManager $encryptionManager,
GlobalStoragesService $globalStoragesService,
BackendService $backendService,
- GlobalAuth $globalAuth
+ GlobalAuth $globalAuth,
) {
$this->encryptionManager = $encryptionManager;
$this->globalStoragesService = $globalStoragesService;
diff --git a/apps/files_external/lib/Settings/Personal.php b/apps/files_external/lib/Settings/Personal.php
index ecd56e632a9..f84051626a2 100644
--- a/apps/files_external/lib/Settings/Personal.php
+++ b/apps/files_external/lib/Settings/Personal.php
@@ -35,7 +35,7 @@ class Personal implements ISettings {
UserGlobalStoragesService $userGlobalStoragesService,
BackendService $backendService,
GlobalAuth $globalAuth,
- IUserSession $userSession
+ IUserSession $userSession,
) {
$this->encryptionManager = $encryptionManager;
$this->userGlobalStoragesService = $userGlobalStoragesService;
diff --git a/apps/files_external/lib/Settings/PersonalSection.php b/apps/files_external/lib/Settings/PersonalSection.php
index 41db1fcd906..f72ef95ad7f 100644
--- a/apps/files_external/lib/Settings/PersonalSection.php
+++ b/apps/files_external/lib/Settings/PersonalSection.php
@@ -26,7 +26,7 @@ class PersonalSection extends Section {
IL10N $l,
IUserSession $userSession,
UserGlobalStoragesService $userGlobalStoragesService,
- BackendService $backendService
+ BackendService $backendService,
) {
parent::__construct($url, $l);
$this->userSession = $userSession;
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index c4d14ecb2b4..0ebb5800d29 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -116,7 +116,7 @@ function writeParameterInput($parameter, $options, $classes = []) {
<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a>
<p class="settings-hint"><?php p($l->t('External storage enables you to mount external storage services and devices as secondary Nextcloud storage devices. You may also allow people to mount their own external storage services.')); ?></p>
<?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) {
- print_unescaped(''.$_['dependencies'].'');
+ print_unescaped('' . $_['dependencies'] . '');
} ?>
<table id="externalStorage" class="grid" data-admin='<?php print_unescaped(json_encode($_['visibilityType'] === BackendService::VISIBILITY_ADMIN)); ?>'>
<thead>
@@ -127,7 +127,7 @@ function writeParameterInput($parameter, $options, $classes = []) {
<th><?php p($l->t('Authentication')); ?></th>
<th><?php p($l->t('Configuration')); ?></th>
<?php if ($_['visibilityType'] === BackendService::VISIBILITY_ADMIN) {
- print_unescaped('<th>'.$l->t('Available for').'</th>');
+ print_unescaped('<th>' . $l->t('Available for') . '</th>');
} ?>
<th>&nbsp;</th>
<th>&nbsp;</th>
diff --git a/apps/files_external/tests/Controller/StoragesControllerTest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php
index 9e9595152ad..94512c56cad 100644
--- a/apps/files_external/tests/Controller/StoragesControllerTest.php
+++ b/apps/files_external/tests/Controller/StoragesControllerTest.php
@@ -47,7 +47,7 @@ abstract class StoragesControllerTest extends \Test\TestCase {
$backend->method('getStorageClass')
->willReturn($storageClass);
$backend->method('getIdentifier')
- ->willReturn('identifier:'.$class);
+ ->willReturn('identifier:' . $class);
$backend->method('getParameters')
->willReturn([]);
return $backend;
@@ -63,7 +63,7 @@ abstract class StoragesControllerTest extends \Test\TestCase {
$authMech->method('getScheme')
->willReturn($scheme);
$authMech->method('getIdentifier')
- ->willReturn('identifier:'.$class);
+ ->willReturn('identifier:' . $class);
$authMech->method('getParameters')
->willReturn([]);
diff --git a/apps/files_external/tests/Service/BackendServiceTest.php b/apps/files_external/tests/Service/BackendServiceTest.php
index 6d9754a5335..74a4b223a96 100644
--- a/apps/files_external/tests/Service/BackendServiceTest.php
+++ b/apps/files_external/tests/Service/BackendServiceTest.php
@@ -32,8 +32,8 @@ class BackendServiceTest extends \Test\TestCase {
$backend = $this->getMockBuilder(Backend::class)
->disableOriginalConstructor()
->getMock();
- $backend->method('getIdentifier')->willReturn('identifier:'.$class);
- $backend->method('getIdentifierAliases')->willReturn(['identifier:'.$class]);
+ $backend->method('getIdentifier')->willReturn('identifier:' . $class);
+ $backend->method('getIdentifierAliases')->willReturn(['identifier:' . $class]);
return $backend;
}
@@ -46,8 +46,8 @@ class BackendServiceTest extends \Test\TestCase {
$backend = $this->getMockBuilder(AuthMechanism::class)
->disableOriginalConstructor()
->getMock();
- $backend->method('getIdentifier')->willReturn('identifier:'.$class);
- $backend->method('getIdentifierAliases')->willReturn(['identifier:'.$class]);
+ $backend->method('getIdentifier')->willReturn('identifier:' . $class);
+ $backend->method('getIdentifierAliases')->willReturn(['identifier:' . $class]);
return $backend;
}
diff --git a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
index 992960a6ea1..ff8d5f4e494 100644
--- a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
+++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
@@ -243,7 +243,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
public function testGetUniqueStorages(
$priority1, $applicableUsers1, $applicableGroups1,
$priority2, $applicableUsers2, $applicableGroups2,
- $expectedPrecedence
+ $expectedPrecedence,
): void {
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
$backend->method('isVisibleFor')
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php
index 26a9bc7b524..94427f7a979 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -43,7 +43,7 @@ class Cache extends CacheJail {
$storage,
ICacheEntry $sourceRootInfo,
CacheDependencies $dependencies,
- IShare $share
+ IShare $share,
) {
$this->storage = $storage;
$this->sourceRootInfo = $sourceRootInfo;
diff --git a/apps/files_sharing/lib/Controller/PublicPreviewController.php b/apps/files_sharing/lib/Controller/PublicPreviewController.php
index 4dc3989f866..a2e244c7ba0 100644
--- a/apps/files_sharing/lib/Controller/PublicPreviewController.php
+++ b/apps/files_sharing/lib/Controller/PublicPreviewController.php
@@ -83,7 +83,7 @@ class PublicPreviewController extends PublicShareController {
string $file = '',
int $x = 32,
int $y = 32,
- $a = false
+ $a = false,
) {
if ($token === '' || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 9ca9774013c..cf835874677 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -88,7 +88,7 @@ class ShareAPIController extends OCSController {
private LoggerInterface $logger,
private IProviderFactory $factory,
private IMailer $mailer,
- ?string $userId = null
+ ?string $userId = null,
) {
parent::__construct($appName, $request);
$this->currentUser = $userId;
@@ -565,7 +565,7 @@ class ShareAPIController extends OCSController {
string $note = '',
string $label = '',
?string $attributes = null,
- ?string $sendMail = null
+ ?string $sendMail = null,
): DataResponse {
$share = $this->shareManager->newShare();
@@ -930,7 +930,7 @@ class ShareAPIController extends OCSController {
string $reshares = 'false',
string $subfiles = 'false',
string $path = '',
- string $include_tags = 'false'
+ string $include_tags = 'false',
): DataResponse {
$node = null;
if ($path !== '') {
@@ -978,7 +978,7 @@ class ShareAPIController extends OCSController {
bool $sharedWithMe = false,
bool $reShares = false,
bool $subFiles = false,
- bool $includeTags = false
+ bool $includeTags = false,
): array {
if ($sharedWithMe) {
return $this->getSharedWithMe($node, $includeTags);
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index 2315ff5c120..4ab95c2587b 100644
--- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -38,7 +38,7 @@ class DeleteOrphanedSharesJob extends TimedJob {
public function __construct(
ITimeFactory $time,
IDBConnection $db,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($time);
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index a3226e9f3dd..86c9ae830e4 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -84,7 +84,7 @@ class Manager {
IUserManager $userManager,
IUserSession $userSession,
IEventDispatcher $eventDispatcher,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
$user = $userSession->getUser();
$this->connection = $connection;
diff --git a/apps/files_sharing/lib/Helper.php b/apps/files_sharing/lib/Helper.php
index f2f92679e2f..3f1937396a0 100644
--- a/apps/files_sharing/lib/Helper.php
+++ b/apps/files_sharing/lib/Helper.php
@@ -28,12 +28,12 @@ class Helper {
*/
public static function generateUniqueTarget($path, $excludeList, $view) {
$pathinfo = pathinfo($path);
- $ext = isset($pathinfo['extension']) ? '.'.$pathinfo['extension'] : '';
+ $ext = isset($pathinfo['extension']) ? '.' . $pathinfo['extension'] : '';
$name = $pathinfo['filename'];
$dir = $pathinfo['dirname'];
$i = 2;
while ($view->file_exists($path) || in_array($path, $excludeList)) {
- $path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext);
+ $path = Filesystem::normalizePath($dir . '/' . $name . ' (' . $i . ')' . $ext);
$i++;
}
diff --git a/apps/files_sharing/lib/Listener/LoadSidebarListener.php b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
index 7fd10b38779..b00e937d675 100644
--- a/apps/files_sharing/lib/Listener/LoadSidebarListener.php
+++ b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
@@ -22,7 +22,10 @@ use OCP\Util;
*/
class LoadSidebarListener implements IEventListener {
- public function __construct(private IInitialState $initialState, private IManager $shareManager) {
+ public function __construct(
+ private IInitialState $initialState,
+ private IManager $shareManager,
+ ) {
}
public function handle(Event $event): void {
diff --git a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
index e13c3354f27..009692c5667 100644
--- a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
+++ b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
@@ -47,7 +47,7 @@ class SharingCheckMiddleware extends Middleware {
IAppManager $appManager,
IControllerMethodReflector $reflector,
IManager $shareManager,
- IRequest $request
+ IRequest $request,
) {
$this->appName = $appName;
$this->config = $config;
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php
index 64847bf5a5f..5313f40ff6b 100644
--- a/apps/files_sharing/lib/MountProvider.php
+++ b/apps/files_sharing/lib/MountProvider.php
@@ -30,7 +30,7 @@ class MountProvider implements IMountProvider {
protected IManager $shareManager,
protected LoggerInterface $logger,
protected IEventDispatcher $eventDispatcher,
- protected ICacheFactory $cacheFactory
+ protected ICacheFactory $cacheFactory,
) {
}
diff --git a/apps/files_sharing/lib/Notification/Listener.php b/apps/files_sharing/lib/Notification/Listener.php
index aaac32897d7..e925ca75fb8 100644
--- a/apps/files_sharing/lib/Notification/Listener.php
+++ b/apps/files_sharing/lib/Notification/Listener.php
@@ -30,7 +30,7 @@ class Listener {
public function __construct(
INotificationManager $notificationManager,
IShareManager $shareManager,
- IGroupManager $groupManager
+ IGroupManager $groupManager,
) {
$this->notificationManager = $notificationManager;
$this->shareManager = $shareManager;
diff --git a/apps/files_sharing/lib/OrphanHelper.php b/apps/files_sharing/lib/OrphanHelper.php
index 94fe4f08318..c5ad93a354f 100644
--- a/apps/files_sharing/lib/OrphanHelper.php
+++ b/apps/files_sharing/lib/OrphanHelper.php
@@ -19,7 +19,7 @@ class OrphanHelper {
public function __construct(
IDBConnection $connection,
- IRootFolder $rootFolder
+ IRootFolder $rootFolder,
) {
$this->connection = $connection;
$this->rootFolder = $rootFolder;
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php
index 6c7178132ad..ddd6af3845d 100644
--- a/apps/files_sharing/lib/SharedMount.php
+++ b/apps/files_sharing/lib/SharedMount.php
@@ -55,7 +55,7 @@ class SharedMount extends MountPoint implements MoveableMount, ISharedMountPoint
CappedMemoryCache $folderExistCache,
IEventDispatcher $eventDispatcher,
IUser $user,
- ICache $cache
+ ICache $cache,
) {
$this->user = $user;
$this->recipientView = $recipientView;
@@ -81,7 +81,7 @@ class SharedMount extends MountPoint implements MoveableMount, ISharedMountPoint
private function verifyMountPoint(
\OCP\Share\IShare $share,
array $mountpoints,
- CappedMemoryCache $folderExistCache
+ CappedMemoryCache $folderExistCache,
) {
$cacheKey = $this->user->getUID() . '/' . $share->getId() . '/' . $share->getTarget();
$cached = $this->cache->get($cacheKey);
diff --git a/apps/files_sharing/lib/SharesReminderJob.php b/apps/files_sharing/lib/SharesReminderJob.php
index 5e15d2851f4..af279bbc146 100644
--- a/apps/files_sharing/lib/SharesReminderJob.php
+++ b/apps/files_sharing/lib/SharesReminderJob.php
@@ -84,7 +84,7 @@ class SharesReminderJob extends TimedJob {
} else {
$sharesResult = $this->getSharesData();
}
- foreach($sharesResult as $share) {
+ foreach ($sharesResult as $share) {
if ($share['share_type'] === IShare::TYPE_EMAIL) {
$id = "ocMailShare:$share[id]";
} else {
@@ -216,7 +216,7 @@ class SharesReminderJob extends TimedJob {
* @param IShare $share Share that was obtained with {@link getShares}
* @return array|null Info needed to send a reminder
*/
- private function prepareReminder(IShare $share): array|null {
+ private function prepareReminder(IShare $share): ?array {
$sharedWith = $share->getSharedWith();
$reminderInfo = [];
if ($share->getShareType() == IShare::TYPE_USER) {
diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php
index fe0739cfcde..4d50fb4065e 100644
--- a/apps/files_sharing/tests/ApiTest.php
+++ b/apps/files_sharing/tests/ApiTest.php
@@ -63,7 +63,7 @@ class ApiTest extends TestCase {
$this->view->mkdir($this->folder);
$this->view->mkdir($this->folder . $this->subfolder);
$this->view->mkdir($this->folder . $this->subfolder . $this->subsubfolder);
- $this->view->file_put_contents($this->folder.$this->filename, $this->data);
+ $this->view->file_put_contents($this->folder . $this->filename, $this->data);
$this->view->file_put_contents($this->folder . $this->subfolder . $this->filename, $this->data);
$mount = $this->view->getMount($this->filename);
$mount->getStorage()->getScanner()->scan('', Scanner::SCAN_RECURSIVE);
@@ -135,7 +135,7 @@ class ApiTest extends TestCase {
$this->assertEquals(19, $data['permissions']);
$this->assertEmpty($data['expiration']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -152,7 +152,7 @@ class ApiTest extends TestCase {
$this->assertEquals(31, $data['permissions']);
$this->assertEmpty($data['expiration']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -169,7 +169,7 @@ class ApiTest extends TestCase {
$this->assertEquals(19, $data['permissions']);
$this->assertEmpty($data['expiration']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -185,7 +185,7 @@ class ApiTest extends TestCase {
$this->assertEquals(31, $data['permissions']);
$this->assertEmpty($data['expiration']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -210,7 +210,7 @@ class ApiTest extends TestCase {
$url = \OC::$server->getURLGenerator()->getAbsoluteURL('/index.php/s/' . $data['token']);
$this->assertEquals($url, $data['url']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -241,7 +241,7 @@ class ApiTest extends TestCase {
$url = \OC::$server->getURLGenerator()->getAbsoluteURL('/index.php/s/' . $data['token']);
$this->assertEquals($url, $data['url']);
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -313,7 +313,7 @@ class ApiTest extends TestCase {
$data = $result->getData();
- $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $this->shareManager->getShareById('ocinternal:' . $data['id']);
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
$ocs->deleteShare($data['id']);
@@ -571,7 +571,7 @@ class ApiTest extends TestCase {
->setPermissions(19);
$share1 = $this->shareManager->createShare($share1);
- $node2 = $this->userFolder->get($this->folder.'/'.$this->filename);
+ $node2 = $this->userFolder->get($this->folder . '/' . $this->filename);
$share2 = $this->shareManager->newShare();
$share2->setNode($node2)
->setSharedBy(self::TEST_FILES_SHARING_API_USER1)
@@ -629,7 +629,7 @@ class ApiTest extends TestCase {
$share1->setStatus(IShare::STATUS_ACCEPTED);
$this->shareManager->updateShare($share1);
- $node2 = $this->userFolder->get($this->folder.'/'.$this->filename);
+ $node2 = $this->userFolder->get($this->folder . '/' . $this->filename);
$share2 = $this->shareManager->newShare();
$share2->setNode($node2)
->setSharedBy(self::TEST_FILES_SHARING_API_USER2)
@@ -639,7 +639,7 @@ class ApiTest extends TestCase {
$share2->setStatus(IShare::STATUS_ACCEPTED);
$this->shareManager->updateShare($share2);
- $node3 = $this->userFolder->get($this->folder.'/'.$this->subfolder.'/'.$this->filename);
+ $node3 = $this->userFolder->get($this->folder . '/' . $this->subfolder . '/' . $this->filename);
$share3 = $this->shareManager->newShare();
$share3->setNode($node3)
->setSharedBy(self::TEST_FILES_SHARING_API_USER2)
@@ -850,7 +850,7 @@ class ApiTest extends TestCase {
$s2 = reset($data2);
$this->assertEquals($this->subfolder, $s1['path']);
- $this->assertEquals($this->folder.$this->subfolder, $s2['path']);
+ $this->assertEquals($this->folder . $this->subfolder, $s2['path']);
$this->shareManager->deleteShare($share1);
$this->shareManager->deleteShare($share2);
@@ -1141,7 +1141,7 @@ class ApiTest extends TestCase {
$this->shareManager->updateShare($share1);
$user2folder = \OC::$server->getUserFolder(self::TEST_FILES_SHARING_API_USER2);
- $node2 = $user2folder->get($this->folder.'/'.$this->filename);
+ $node2 = $user2folder->get($this->folder . '/' . $this->filename);
$share2 = $this->shareManager->newShare();
$share2->setNode($node2)
->setSharedBy(self::TEST_FILES_SHARING_API_USER2)
@@ -1184,7 +1184,7 @@ class ApiTest extends TestCase {
$view->mkdir('localDir');
// move mount point to the folder "localDir"
- $result = $view->rename($this->folder, 'localDir/'.$this->folder);
+ $result = $view->rename($this->folder, 'localDir/' . $this->folder);
$this->assertTrue($result !== false);
// try to share "localDir"
@@ -1308,7 +1308,7 @@ class ApiTest extends TestCase {
$url = \OC::$server->getURLGenerator()->getAbsoluteURL('/index.php/s/' . $data['token']);
$this->assertEquals($url, $data['url']);
- $share = $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $share = $this->shareManager->getShareById('ocinternal:' . $data['id']);
$this->assertEquals($date, $share->getExpirationDate()->format('Y-m-d H:i:s'));
@@ -1340,7 +1340,7 @@ class ApiTest extends TestCase {
$url = \OC::$server->getURLGenerator()->getAbsoluteURL('/index.php/s/' . $data['token']);
$this->assertEquals($url, $data['url']);
- $share = $this->shareManager->getShareById('ocinternal:'.$data['id']);
+ $share = $this->shareManager->getShareById('ocinternal:' . $data['id']);
$date->setTime(0, 0, 0);
$this->assertEquals($date, $share->getExpirationDate());
diff --git a/apps/files_sharing/tests/CacheTest.php b/apps/files_sharing/tests/CacheTest.php
index 4db3adf34a6..ebcfc43edad 100644
--- a/apps/files_sharing/tests/CacheTest.php
+++ b/apps/files_sharing/tests/CacheTest.php
@@ -50,7 +50,7 @@ class CacheTest extends TestCase {
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
- $this->user2View = new \OC\Files\View('/'. self::TEST_FILES_SHARING_API_USER2 . '/files');
+ $this->user2View = new \OC\Files\View('/' . self::TEST_FILES_SHARING_API_USER2 . '/files');
// prepare user1's dir structure
$this->view->mkdir('container');
diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
index 67aa15d82fa..f741bb64c81 100644
--- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
@@ -512,7 +512,7 @@ class ShareAPIControllerTest extends TestCase {
if ($shareType === IShare::TYPE_USER ||
$shareType === IShare::TYPE_GROUP ||
$shareType === IShare::TYPE_LINK) {
- $share->method('getFullId')->willReturn('ocinternal:'.$id);
+ $share->method('getFullId')->willReturn('ocinternal:' . $id);
}
return $share;
diff --git a/apps/files_sharing/tests/ShareTest.php b/apps/files_sharing/tests/ShareTest.php
index 651341a5607..6956093a0c1 100644
--- a/apps/files_sharing/tests/ShareTest.php
+++ b/apps/files_sharing/tests/ShareTest.php
@@ -34,7 +34,7 @@ class ShareTest extends TestCase {
$this->view->mkdir($this->folder);
$this->view->mkdir($this->folder . $this->subfolder);
$this->view->mkdir($this->folder . $this->subfolder . $this->subsubfolder);
- $this->view->file_put_contents($this->folder.$this->filename, $this->data);
+ $this->view->file_put_contents($this->folder . $this->filename, $this->data);
$this->view->file_put_contents($this->folder . $this->subfolder . $this->filename, $this->data);
}
@@ -103,7 +103,7 @@ class ShareTest extends TestCase {
public function verifyDirContent($content, $expected) {
foreach ($content as $c) {
if (!in_array($c['name'], $expected)) {
- $this->assertTrue(false, "folder should only contain '" . implode(',', $expected) . "', found: " .$c['name']);
+ $this->assertTrue(false, "folder should only contain '" . implode(',', $expected) . "', found: " . $c['name']);
}
}
}
diff --git a/apps/files_sharing/tests/SharesReminderJobTest.php b/apps/files_sharing/tests/SharesReminderJobTest.php
index 9889ff47c53..d68a9d30182 100644
--- a/apps/files_sharing/tests/SharesReminderJobTest.php
+++ b/apps/files_sharing/tests/SharesReminderJobTest.php
@@ -152,7 +152,7 @@ class SharesReminderJobTest extends \Test\TestCase {
* @param bool $shouldBeReminded
*/
public function testSharesReminder(
- \DateTime|null $expirationDate, string $email, bool $isEmpty, int $permissions, bool $shouldBeReminded
+ ?\DateTime $expirationDate, string $email, bool $isEmpty, int $permissions, bool $shouldBeReminded,
): void {
$this->loginAsUser($this->user1);
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index 9d26ff873a5..8aee8d7ddfc 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -85,7 +85,7 @@ class UpdaterTest extends TestCase {
// share mount point should now be moved to the subfolder
$this->assertFalse($view->file_exists($this->folder));
- $this->assertTrue($view->file_exists('localFolder/' .$this->folder));
+ $this->assertTrue($view->file_exists('localFolder/' . $this->folder));
$view->unlink('localFolder');
@@ -290,7 +290,7 @@ class UpdaterTest extends TestCase {
);
// user2 moves folder2 into folder1
- $viewUser2->rename($folder2, $folder1.'/'.$folder2);
+ $viewUser2->rename($folder2, $folder1 . '/' . $folder2);
$folder2Share = $this->shareManager->getShareById($folder2Share->getFullId());
$file1Share = $this->shareManager->getShareById($file1Share->getFullId());
$subfolder1Share = $this->shareManager->getShareById($subfolder1Share->getFullId());
@@ -308,7 +308,7 @@ class UpdaterTest extends TestCase {
$this->assertEquals(\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE, $file2Share->getPermissions());
// user2 moves folder2 out of folder1
- $viewUser2->rename($folder1.'/'.$folder2, $folder2);
+ $viewUser2->rename($folder1 . '/' . $folder2, $folder2);
$folder2Share = $this->shareManager->getShareById($folder2Share->getFullId());
$file1Share = $this->shareManager->getShareById($file1Share->getFullId());
$subfolder1Share = $this->shareManager->getShareById($subfolder1Share->getFullId());
diff --git a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
index e458039bf4f..18172560893 100644
--- a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
+++ b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
@@ -24,7 +24,7 @@ class ExpireTrash extends TimedJob {
IConfig $config,
IUserManager $userManager,
Expiration $expiration,
- ITimeFactory $time
+ ITimeFactory $time,
) {
parent::__construct($time);
// Run once per 30 minutes
diff --git a/apps/files_trashbin/lib/Command/Size.php b/apps/files_trashbin/lib/Command/Size.php
index 48ee2ced6cb..81ae82c02d3 100644
--- a/apps/files_trashbin/lib/Command/Size.php
+++ b/apps/files_trashbin/lib/Command/Size.php
@@ -26,7 +26,7 @@ class Size extends Base {
public function __construct(
IConfig $config,
IUserManager $userManager,
- IBus $commandBus
+ IBus $commandBus,
) {
parent::__construct();
diff --git a/apps/files_trashbin/lib/Controller/PreviewController.php b/apps/files_trashbin/lib/Controller/PreviewController.php
index 19eb15b733a..b006ba5e5ac 100644
--- a/apps/files_trashbin/lib/Controller/PreviewController.php
+++ b/apps/files_trashbin/lib/Controller/PreviewController.php
@@ -50,7 +50,7 @@ class PreviewController extends Controller {
IUserSession $userSession,
IMimeTypeDetector $mimeTypeDetector,
IPreview $previewManager,
- ITimeFactory $time
+ ITimeFactory $time,
) {
parent::__construct($appName, $request);
diff --git a/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php b/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
index 2aabd101d28..0bc6b37c35b 100644
--- a/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
+++ b/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
@@ -16,7 +16,11 @@ use OCP\Files\Node;
* @since 28.0.0
*/
class BeforeNodeRestoredEvent extends AbstractNodesEvent {
- public function __construct(Node $source, Node $target, private bool &$run) {
+ public function __construct(
+ Node $source,
+ Node $target,
+ private bool &$run,
+ ) {
parent::__construct($source, $target);
}
diff --git a/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php b/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
index db9a43be6fc..2cb3a94aa1d 100644
--- a/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
+++ b/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
@@ -113,8 +113,8 @@ class SyncLivePhotosListener implements IEventListener {
*/
private function getTrashItem(array $trashFolder, string $path): ?ITrashItem {
foreach ($trashFolder as $trashItem) {
- if (str_starts_with($path, 'files_trashbin/files'.$trashItem->getTrashPath())) {
- if ($path === 'files_trashbin/files'.$trashItem->getTrashPath()) {
+ if (str_starts_with($path, 'files_trashbin/files' . $trashItem->getTrashPath())) {
+ if ($path === 'files_trashbin/files' . $trashItem->getTrashPath()) {
return $trashItem;
}
diff --git a/apps/files_trashbin/lib/Sabre/RootCollection.php b/apps/files_trashbin/lib/Sabre/RootCollection.php
index f626bfd7ee1..11c44266c3d 100644
--- a/apps/files_trashbin/lib/Sabre/RootCollection.php
+++ b/apps/files_trashbin/lib/Sabre/RootCollection.php
@@ -21,7 +21,7 @@ class RootCollection extends AbstractPrincipalCollection {
public function __construct(
ITrashManager $trashManager,
PrincipalBackend\BackendInterface $principalBackend,
- IConfig $config
+ IConfig $config,
) {
parent::__construct($principalBackend, 'principals/users');
diff --git a/apps/files_trashbin/lib/Sabre/TrashHome.php b/apps/files_trashbin/lib/Sabre/TrashHome.php
index edea2744e6f..2c7fe749be5 100644
--- a/apps/files_trashbin/lib/Sabre/TrashHome.php
+++ b/apps/files_trashbin/lib/Sabre/TrashHome.php
@@ -27,7 +27,7 @@ class TrashHome implements ICollection {
public function __construct(
array $principalInfo,
ITrashManager $trashManager,
- IUser $user
+ IUser $user,
) {
$this->principalInfo = $principalInfo;
$this->trashManager = $trashManager;
diff --git a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
index 3299c2d6126..83564d2a783 100644
--- a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
+++ b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
@@ -32,7 +32,7 @@ class TrashbinPlugin extends ServerPlugin {
private $previewManager;
public function __construct(
- IPreview $previewManager
+ IPreview $previewManager,
) {
$this->previewManager = $previewManager;
}
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index d146f23d70a..412b9f44df9 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -43,7 +43,7 @@ class Storage extends Wrapper {
?IUserManager $userManager = null,
?LoggerInterface $logger = null,
?IEventDispatcher $eventDispatcher = null,
- ?IRootFolder $rootFolder = null
+ ?IRootFolder $rootFolder = null,
) {
$this->mountPoint = $parameters['mountPoint'];
$this->trashManager = $trashManager;
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index 544bc877d70..29e4d5e8a3c 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -990,7 +990,7 @@ class Trashbin {
Server::get(IDBConnection::class)->getQueryBuilder(),
Server::get(IFilesMetadataManager::class),
);
- $normalizedParentPath = ltrim(Filesystem::normalizePath(dirname('files_trashbin/versions/'. $filename)), '/');
+ $normalizedParentPath = ltrim(Filesystem::normalizePath(dirname('files_trashbin/versions/' . $filename)), '/');
$parentId = $cache->getId($normalizedParentPath);
if ($parentId === -1) {
return [];
diff --git a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
index 277c176d191..87c8647450f 100644
--- a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
+++ b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
@@ -28,8 +28,8 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
use TMigratorBasicVersionHandling;
- protected const PATH_FILES_FOLDER = Application::APP_ID.'/files';
- protected const PATH_LOCATIONS_FILE = Application::APP_ID.'/locations.json';
+ protected const PATH_FILES_FOLDER = Application::APP_ID . '/files';
+ protected const PATH_LOCATIONS_FILE = Application::APP_ID . '/locations.json';
protected IRootFolder $root;
@@ -40,7 +40,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
public function __construct(
IRootFolder $rootFolder,
IDBConnection $dbc,
- IL10N $l10n
+ IL10N $l10n,
) {
$this->root = $rootFolder;
$this->dbc = $dbc;
@@ -54,7 +54,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
$uid = $user->getUID();
try {
- $trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
+ $trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
if (!$trashbinFolder instanceof Folder) {
return 0;
}
@@ -73,9 +73,9 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
$uid = $user->getUID();
try {
- $trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
+ $trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
if (!$trashbinFolder instanceof Folder) {
- throw new UserMigrationException('/'.$uid.'/files_trashbin is not a folder');
+ throw new UserMigrationException('/' . $uid . '/files_trashbin is not a folder');
}
$output->writeln('Exporting trashbin files…');
$exportDestination->copyFolder($trashbinFolder, static::PATH_FILES_FOLDER);
@@ -92,7 +92,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
} catch (NotFoundException $e) {
$output->writeln('No trashbin to export…');
} catch (\Throwable $e) {
- throw new UserMigrationException('Could not export trashbin: '.$e->getMessage(), 0, $e);
+ throw new UserMigrationException('Could not export trashbin: ' . $e->getMessage(), 0, $e);
}
}
@@ -111,12 +111,12 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
if ($importSource->pathExists(static::PATH_FILES_FOLDER)) {
try {
- $trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
+ $trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
if (!$trashbinFolder instanceof Folder) {
- throw new UserMigrationException('Could not import trashbin, /'.$uid.'/files_trashbin is not a folder');
+ throw new UserMigrationException('Could not import trashbin, /' . $uid . '/files_trashbin is not a folder');
}
} catch (NotFoundException $e) {
- $trashbinFolder = $this->root->newFolder('/'.$uid.'/files_trashbin');
+ $trashbinFolder = $this->root->newFolder('/' . $uid . '/files_trashbin');
}
$output->writeln('Importing trashbin files…');
try {
diff --git a/apps/files_trashbin/tests/Command/CleanUpTest.php b/apps/files_trashbin/tests/Command/CleanUpTest.php
index 49ae103ea30..6299400a65a 100644
--- a/apps/files_trashbin/tests/Command/CleanUpTest.php
+++ b/apps/files_trashbin/tests/Command/CleanUpTest.php
@@ -64,10 +64,10 @@ class CleanUpTest extends TestCase {
for ($i = 0; $i < 10; $i++) {
$query->insert($this->trashTable)
->values([
- 'id' => $query->expr()->literal('file'.$i),
+ 'id' => $query->expr()->literal('file' . $i),
'timestamp' => $query->expr()->literal($i),
'location' => $query->expr()->literal('.'),
- 'user' => $query->expr()->literal('user'.$i % 2)
+ 'user' => $query->expr()->literal('user' . $i % 2)
])->execute();
}
$getAllQuery = $this->dbConnection->getQueryBuilder();
diff --git a/apps/files_versions/lib/Capabilities.php b/apps/files_versions/lib/Capabilities.php
index ce7239a4bf5..3566b82842a 100644
--- a/apps/files_versions/lib/Capabilities.php
+++ b/apps/files_versions/lib/Capabilities.php
@@ -16,7 +16,7 @@ class Capabilities implements ICapability {
public function __construct(
IConfig $config,
- IAppManager $appManager
+ IAppManager $appManager,
) {
$this->config = $config;
$this->appManager = $appManager;
diff --git a/apps/files_versions/lib/Controller/PreviewController.php b/apps/files_versions/lib/Controller/PreviewController.php
index 8416503c643..4cda69beb96 100644
--- a/apps/files_versions/lib/Controller/PreviewController.php
+++ b/apps/files_versions/lib/Controller/PreviewController.php
@@ -38,7 +38,7 @@ class PreviewController extends Controller {
IRootFolder $rootFolder,
IUserSession $userSession,
IVersionManager $versionManager,
- IPreview $previewManager
+ IPreview $previewManager,
) {
parent::__construct($appName, $request);
@@ -67,7 +67,7 @@ class PreviewController extends Controller {
string $file = '',
int $x = 44,
int $y = 44,
- string $version = ''
+ string $version = '',
) {
if ($file === '' || $version === '' || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
diff --git a/apps/files_versions/lib/Sabre/RootCollection.php b/apps/files_versions/lib/Sabre/RootCollection.php
index 8ed397069f7..2d59acdada0 100644
--- a/apps/files_versions/lib/Sabre/RootCollection.php
+++ b/apps/files_versions/lib/Sabre/RootCollection.php
@@ -34,7 +34,7 @@ class RootCollection extends AbstractPrincipalCollection {
IConfig $config,
IUserManager $userManager,
IVersionManager $versionManager,
- IUserSession $userSession
+ IUserSession $userSession,
) {
parent::__construct($principalBackend, 'principals/users');
diff --git a/apps/files_versions/lib/Sabre/VersionFile.php b/apps/files_versions/lib/Sabre/VersionFile.php
index 94fc101f05e..faa03473648 100644
--- a/apps/files_versions/lib/Sabre/VersionFile.php
+++ b/apps/files_versions/lib/Sabre/VersionFile.php
@@ -23,7 +23,7 @@ use Sabre\DAV\IFile;
class VersionFile implements IFile {
public function __construct(
private IVersion $version,
- private IVersionManager $versionManager
+ private IVersionManager $versionManager,
) {
}
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php
index 41f04b5a1d1..af14f8e4b9f 100644
--- a/apps/files_versions/lib/Storage.php
+++ b/apps/files_versions/lib/Storage.php
@@ -91,7 +91,7 @@ class Storage {
Filesystem::initMountPoints($uid);
if ($uid !== OC_User::getUser()) {
$info = Filesystem::getFileInfo($filename);
- $ownerView = new View('/'.$uid.'/files');
+ $ownerView = new View('/' . $uid . '/files');
try {
$filename = $ownerView->getPath($info['fileid']);
// make sure that the file name doesn't end with a trailing slash
@@ -303,7 +303,7 @@ class Storage {
// does the directory exists for versions too ?
if ($rootView->is_dir('/' . $sourceOwner . '/files_versions/' . $sourcePath)) {
// create missing dirs if necessary
- self::createMissingDirectories($targetPath, new View('/'. $targetOwner));
+ self::createMissingDirectories($targetPath, new View('/' . $targetOwner));
// move the directory containing the versions
$rootView->$operation(
@@ -313,13 +313,13 @@ class Storage {
}
} elseif ($versions = Storage::getVersions($sourceOwner, '/' . $sourcePath)) {
// create missing dirs if necessary
- self::createMissingDirectories($targetPath, new View('/'. $targetOwner));
+ self::createMissingDirectories($targetPath, new View('/' . $targetOwner));
foreach ($versions as $v) {
// move each version one by one to the target directory
$rootView->$operation(
- '/' . $sourceOwner . '/files_versions/' . $sourcePath.'.v' . $v['version'],
- '/' . $targetOwner . '/files_versions/' . $targetPath.'.v' . $v['version']
+ '/' . $sourceOwner . '/files_versions/' . $sourcePath . '.v' . $v['version'],
+ '/' . $targetOwner . '/files_versions/' . $targetPath . '.v' . $v['version']
);
}
}
@@ -345,8 +345,8 @@ class Storage {
$root = \OC::$server->get(IRootFolder::class);
$userFolder = $root->getUserFolder($user->getUID());
- $users_view = new View('/'.$user->getUID());
- $files_view = new View('/'. $user->getUID().'/files');
+ $users_view = new View('/' . $user->getUID());
+ $files_view = new View('/' . $user->getUID() . '/files');
$versionCreated = false;
@@ -358,9 +358,9 @@ class Storage {
}
//first create a new version
- $version = 'files_versions'.$filename.'.v'.$users_view->filemtime('files'.$filename);
+ $version = 'files_versions' . $filename . '.v' . $users_view->filemtime('files' . $filename);
if (!$users_view->file_exists($version)) {
- $users_view->copy('files'.$filename, 'files_versions'.$filename.'.v'.$users_view->filemtime('files'.$filename));
+ $users_view->copy('files' . $filename, 'files_versions' . $filename . '.v' . $users_view->filemtime('files' . $filename));
$versionCreated = true;
}
@@ -562,7 +562,7 @@ class Storage {
}
try {
- $node = $userFolder->get(substr($path, 0, -strlen('.v'.$version)));
+ $node = $userFolder->get(substr($path, 0, -strlen('.v' . $version)));
$versionEntity = $versionsMapper->findVersionForFileId($node->getId(), $version);
$versionEntities[$info->getId()] = $versionEntity;
@@ -668,7 +668,7 @@ class Storage {
];
foreach ($versions as $key => $value) {
- $size = $view->filesize(self::VERSIONS_ROOT.'/'.$value['path'].'.v'.$value['timestamp']);
+ $size = $view->filesize(self::VERSIONS_ROOT . '/' . $value['path'] . '.v' . $value['timestamp']);
$filename = $value['path'];
$result['all'][$key]['version'] = $value['timestamp'];
@@ -703,7 +703,7 @@ class Storage {
foreach ($versions as $key => $version) {
if (!is_numeric($version['version'])) {
\OC::$server->get(LoggerInterface::class)->error(
- 'Found a non-numeric timestamp version: '. json_encode($version),
+ 'Found a non-numeric timestamp version: ' . json_encode($version),
['app' => 'files_versions']);
continue;
}
@@ -753,7 +753,7 @@ class Storage {
//distance between two version too small, mark to delete
$toDelete[$key] = $version['path'] . '.v' . $version['version'];
$size += $version['size'];
- \OC::$server->get(LoggerInterface::class)->info('Mark to expire '. $version['path'] .' next version should be ' . $nextVersion . ' or smaller. (prevTimestamp: ' . $prevTimestamp . '; step: ' . $step, ['app' => 'files_versions']);
+ \OC::$server->get(LoggerInterface::class)->info('Mark to expire ' . $version['path'] . ' next version should be ' . $nextVersion . ' or smaller. (prevTimestamp: ' . $prevTimestamp . '; step: ' . $step, ['app' => 'files_versions']);
} else {
$nextVersion = $version['version'] - $step;
$prevTimestamp = $version['version'];
@@ -833,7 +833,7 @@ class Storage {
// file maybe renamed or deleted
return false;
}
- $versionsFileview = new View('/'.$uid.'/files_versions');
+ $versionsFileview = new View('/' . $uid . '/files_versions');
$softQuota = true;
$quota = $user->getQuota();
@@ -925,10 +925,10 @@ class Storage {
reset($allVersions);
while ($availableSpace < 0 && $i < $numOfVersions) {
$version = current($allVersions);
- \OC_Hook::emit('\OCP\Versions', 'preDelete', ['path' => $version['path'].'.v'.$version['version'], 'trigger' => self::DELETE_TRIGGER_QUOTA_EXCEEDED]);
+ \OC_Hook::emit('\OCP\Versions', 'preDelete', ['path' => $version['path'] . '.v' . $version['version'], 'trigger' => self::DELETE_TRIGGER_QUOTA_EXCEEDED]);
self::deleteVersion($versionsFileview, $version['path'] . '.v' . $version['version']);
- \OC_Hook::emit('\OCP\Versions', 'delete', ['path' => $version['path'].'.v'.$version['version'], 'trigger' => self::DELETE_TRIGGER_QUOTA_EXCEEDED]);
- $logger->info('running out of space! Delete oldest version: ' . $version['path'].'.v'.$version['version'], ['app' => 'files_versions']);
+ \OC_Hook::emit('\OCP\Versions', 'delete', ['path' => $version['path'] . '.v' . $version['version'], 'trigger' => self::DELETE_TRIGGER_QUOTA_EXCEEDED]);
+ $logger->info('running out of space! Delete oldest version: ' . $version['path'] . '.v' . $version['version'], ['app' => 'files_versions']);
$versionsSize -= $version['size'];
$availableSpace += $version['size'];
next($allVersions);
diff --git a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
index 84d62ab6b45..d1647381ffa 100644
--- a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
+++ b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
@@ -23,7 +23,6 @@ class CleanupExpiredAuthorizationCode extends TimedJob {
ITimeFactory $timeFactory,
private AccessTokenMapper $accessTokenMapper,
private LoggerInterface $logger,
-
) {
parent::__construct($timeFactory);
// 30 days
diff --git a/apps/oauth2/lib/Controller/OauthApiController.php b/apps/oauth2/lib/Controller/OauthApiController.php
index d763779053a..2e0732a1099 100644
--- a/apps/oauth2/lib/Controller/OauthApiController.php
+++ b/apps/oauth2/lib/Controller/OauthApiController.php
@@ -68,7 +68,7 @@ class OauthApiController extends Controller {
#[BruteForceProtection(action: 'oauth2GetToken')]
public function getToken(
string $grant_type, ?string $code, ?string $refresh_token,
- ?string $client_id, ?string $client_secret
+ ?string $client_id, ?string $client_secret,
): JSONResponse {
// We only handle two types
diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php
index f16b26696c4..9cbb9781231 100644
--- a/apps/oauth2/lib/Controller/SettingsController.php
+++ b/apps/oauth2/lib/Controller/SettingsController.php
@@ -35,7 +35,7 @@ class SettingsController extends Controller {
private IL10N $l,
private IAuthTokenProvider $tokenProvider,
private IUserManager $userManager,
- private ICrypto $crypto
+ private ICrypto $crypto,
) {
parent::__construct($appName, $request);
}
diff --git a/apps/oauth2/lib/Db/ClientMapper.php b/apps/oauth2/lib/Db/ClientMapper.php
index dc19c93c4e1..c5ca2989d0f 100644
--- a/apps/oauth2/lib/Db/ClientMapper.php
+++ b/apps/oauth2/lib/Db/ClientMapper.php
@@ -41,7 +41,7 @@ class ClientMapper extends QBMapper {
try {
$client = $this->findEntity($qb);
} catch (IMapperException $e) {
- throw new ClientNotFoundException('could not find client '.$clientIdentifier, 0, $e);
+ throw new ClientNotFoundException('could not find client ' . $clientIdentifier, 0, $e);
}
return $client;
}
@@ -61,7 +61,7 @@ class ClientMapper extends QBMapper {
try {
$client = $this->findEntity($qb);
} catch (IMapperException $e) {
- throw new ClientNotFoundException('could not find client with id '.$id, 0, $e);
+ throw new ClientNotFoundException('could not find client with id ' . $id, 0, $e);
}
return $client;
}
diff --git a/apps/oauth2/tests/Controller/OauthApiControllerTest.php b/apps/oauth2/tests/Controller/OauthApiControllerTest.php
index fa8c90843e6..8d13265ec9e 100644
--- a/apps/oauth2/tests/Controller/OauthApiControllerTest.php
+++ b/apps/oauth2/tests/Controller/OauthApiControllerTest.php
@@ -352,7 +352,7 @@ class OauthApiControllerTest extends TestCase {
$this->secureRandom->method('generate')
->willReturnCallback(function ($len) {
- return 'random'.$len;
+ return 'random' . $len;
});
$this->tokenProvider->expects($this->once())
@@ -448,7 +448,7 @@ class OauthApiControllerTest extends TestCase {
$this->secureRandom->method('generate')
->willReturnCallback(function ($len) {
- return 'random'.$len;
+ return 'random' . $len;
});
$this->tokenProvider->expects($this->once())
@@ -547,7 +547,7 @@ class OauthApiControllerTest extends TestCase {
$this->secureRandom->method('generate')
->willReturnCallback(function ($len) {
- return 'random'.$len;
+ return 'random' . $len;
});
$this->tokenProvider->expects($this->once())
diff --git a/apps/provisioning_api/lib/Controller/AppsController.php b/apps/provisioning_api/lib/Controller/AppsController.php
index d60a85f3740..955c2bc39ab 100644
--- a/apps/provisioning_api/lib/Controller/AppsController.php
+++ b/apps/provisioning_api/lib/Controller/AppsController.php
@@ -25,7 +25,7 @@ class AppsController extends OCSController {
public function __construct(
string $appName,
IRequest $request,
- IAppManager $appManager
+ IAppManager $appManager,
) {
parent::__construct($appName, $request);
diff --git a/apps/provisioning_api/lib/Controller/PreferencesController.php b/apps/provisioning_api/lib/Controller/PreferencesController.php
index 2a31e076c83..f230d1d781f 100644
--- a/apps/provisioning_api/lib/Controller/PreferencesController.php
+++ b/apps/provisioning_api/lib/Controller/PreferencesController.php
@@ -31,7 +31,7 @@ class PreferencesController extends OCSController {
IRequest $request,
IConfig $config,
IUserSession $userSession,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
parent::__construct($appName, $request);
$this->config = $config;
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index e65585902bc..9b90f95d842 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -787,7 +787,7 @@ class UsersController extends AUserData {
string $userId,
string $collectionName,
string $key,
- string $value
+ string $value,
): DataResponse {
$currentLoggedInUser = $this->userSession->getUser();
if ($currentLoggedInUser === null) {
diff --git a/apps/provisioning_api/lib/Controller/VerificationController.php b/apps/provisioning_api/lib/Controller/VerificationController.php
index 18113484c8a..33b5bb0020f 100644
--- a/apps/provisioning_api/lib/Controller/VerificationController.php
+++ b/apps/provisioning_api/lib/Controller/VerificationController.php
@@ -49,7 +49,7 @@ class VerificationController extends Controller {
IL10N $l10n,
IUserSession $userSession,
IAccountManager $accountManager,
- Crypto $crypto
+ Crypto $crypto,
) {
parent::__construct($appName, $request);
$this->verificationToken = $verificationToken;
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
index 8bbc8a29c29..f9c0848fb72 100644
--- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
@@ -90,7 +90,7 @@ class GroupsControllerTest extends \Test\TestCase {
->willReturn($gid);
$group
->method('getDisplayName')
- ->willReturn($gid.'-name');
+ ->willReturn($gid . '-name');
$group
->method('count')
->willReturn(123);
diff --git a/apps/settings/lib/Command/AdminDelegation/Add.php b/apps/settings/lib/Command/AdminDelegation/Add.php
index 26a13b2cd6e..5cbef5c5d15 100644
--- a/apps/settings/lib/Command/AdminDelegation/Add.php
+++ b/apps/settings/lib/Command/AdminDelegation/Add.php
@@ -52,7 +52,7 @@ class Add extends Base {
$this->authorizedGroupService->create($groupId, $settingClass);
- $io->success('Administration of '.$settingClass.' delegated to '.$groupId.'.');
+ $io->success('Administration of ' . $settingClass . ' delegated to ' . $groupId . '.');
return 0;
}
diff --git a/apps/settings/lib/Command/AdminDelegation/Remove.php b/apps/settings/lib/Command/AdminDelegation/Remove.php
index 584b9201193..6b5347ce89f 100644
--- a/apps/settings/lib/Command/AdminDelegation/Remove.php
+++ b/apps/settings/lib/Command/AdminDelegation/Remove.php
@@ -43,12 +43,12 @@ class Remove extends Base {
foreach ($groups as $group) {
if ($group->getGroupId() === $groupId) {
$this->authorizedGroupService->delete($group->getId());
- $io->success('Removed delegation of '.$settingClass.' to '.$groupId.'.');
+ $io->success('Removed delegation of ' . $settingClass . ' to ' . $groupId . '.');
return 0;
}
}
- $io->success('Group '.$groupId.' didn’t have delegation for '.$settingClass.'.');
+ $io->success('Group ' . $groupId . ' didn’t have delegation for ' . $settingClass . '.');
return 0;
}
diff --git a/apps/settings/lib/Command/AdminDelegation/Show.php b/apps/settings/lib/Command/AdminDelegation/Show.php
index 73f89ad0ead..9aba6bc0cb7 100644
--- a/apps/settings/lib/Command/AdminDelegation/Show.php
+++ b/apps/settings/lib/Command/AdminDelegation/Show.php
@@ -47,7 +47,7 @@ class Show extends Base {
continue;
}
- $io->section('Section: '.$section->getID());
+ $io->section('Section: ' . $section->getID());
$io->table($headers, array_map(function (IDelegatedSettings $setting) use ($section) {
$className = get_class($setting);
$groups = array_map(
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php
index 2c682ac4600..930c1c0f7e2 100644
--- a/apps/settings/lib/Controller/AppSettingsController.php
+++ b/apps/settings/lib/Controller/AppSettingsController.php
@@ -437,7 +437,7 @@ class AppSettingsController extends Controller {
'missingMaxOwnCloudVersion' => false,
'missingMinOwnCloudVersion' => false,
'canInstall' => true,
- 'screenshot' => isset($app['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($app['screenshots'][0]['url']) : '',
+ 'screenshot' => isset($app['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($app['screenshots'][0]['url']) : '',
'score' => $app['ratingOverall'],
'ratingNumOverall' => $app['ratingNumOverall'],
'ratingNumThresholdReached' => $app['ratingNumOverall'] > 5,
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php
index eb401f85536..71f256f57d6 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -336,7 +336,7 @@ class UsersController extends Controller {
?string $birthdate = null,
?string $birthdateScope = null,
?string $pronouns = null,
- ?string $pronounsScope = null
+ ?string $pronounsScope = null,
) {
$user = $this->userSession->getUser();
if (!$user instanceof IUser) {
diff --git a/apps/settings/lib/Listener/UserAddedToGroupActivityListener.php b/apps/settings/lib/Listener/UserAddedToGroupActivityListener.php
index 7369f54bf37..36feeaa1035 100644
--- a/apps/settings/lib/Listener/UserAddedToGroupActivityListener.php
+++ b/apps/settings/lib/Listener/UserAddedToGroupActivityListener.php
@@ -32,7 +32,7 @@ class UserAddedToGroupActivityListener implements IEventListener {
public function __construct(
Manager $groupManager,
IManager $activityManager,
- IUserSession $userSession
+ IUserSession $userSession,
) {
$this->groupManager = $groupManager;
$this->activityManager = $activityManager;
diff --git a/apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php b/apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php
index 711f78212bc..82302f748ec 100644
--- a/apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php
+++ b/apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php
@@ -32,7 +32,7 @@ class UserRemovedFromGroupActivityListener implements IEventListener {
public function __construct(
Manager $groupManager,
IManager $activityManager,
- IUserSession $userSession
+ IUserSession $userSession,
) {
$this->groupManager = $groupManager;
$this->activityManager = $activityManager;
diff --git a/apps/settings/lib/Settings/Admin/Delegation.php b/apps/settings/lib/Settings/Admin/Delegation.php
index e38507b4fc1..72798a30673 100644
--- a/apps/settings/lib/Settings/Admin/Delegation.php
+++ b/apps/settings/lib/Settings/Admin/Delegation.php
@@ -28,7 +28,7 @@ class Delegation implements ISettings {
IInitialState $initialStateService,
IGroupManager $groupManager,
AuthorizedGroupService $authorizedGroupService,
- IURLGenerator $urlGenerator
+ IURLGenerator $urlGenerator,
) {
$this->settingManager = $settingManager;
$this->initialStateService = $initialStateService;
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php
index 232fea8bd73..9aa0f9ee807 100644
--- a/apps/settings/lib/Settings/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php
@@ -71,7 +71,7 @@ class PersonalInfo implements ISettings {
IFactory $l10nFactory,
IL10N $l,
IInitialState $initialStateService,
- IManager $manager
+ IManager $manager,
) {
$this->config = $config;
$this->userManager = $userManager;
diff --git a/apps/settings/lib/SetupChecks/CronErrors.php b/apps/settings/lib/SetupChecks/CronErrors.php
index 9a5c5b8af71..dc625b04477 100644
--- a/apps/settings/lib/SetupChecks/CronErrors.php
+++ b/apps/settings/lib/SetupChecks/CronErrors.php
@@ -35,7 +35,7 @@ class CronErrors implements ISetupCheck {
return SetupResult::error(
$this->l10n->t(
"It was not possible to execute the cron job via CLI. The following technical errors have appeared:\n%s",
- implode("\n", array_map(fn (array $error) => '- '.$error['error'].' '.$error['hint'], $errors))
+ implode("\n", array_map(fn (array $error) => '- ' . $error['error'] . ' ' . $error['hint'], $errors))
)
);
} else {
diff --git a/apps/settings/lib/SetupChecks/DatabaseHasMissingColumns.php b/apps/settings/lib/SetupChecks/DatabaseHasMissingColumns.php
index b004c5ada35..ec004f73021 100644
--- a/apps/settings/lib/SetupChecks/DatabaseHasMissingColumns.php
+++ b/apps/settings/lib/SetupChecks/DatabaseHasMissingColumns.php
@@ -62,10 +62,10 @@ class DatabaseHasMissingColumns implements ISetupCheck {
} else {
$list = '';
foreach ($missingColumns as $missingColumn) {
- $list .= "\n".$this->l10n->t('Missing optional column "%s" in table "%s".', [$missingColumn['columnName'], $missingColumn['tableName']]);
+ $list .= "\n" . $this->l10n->t('Missing optional column "%s" in table "%s".', [$missingColumn['columnName'], $missingColumn['tableName']]);
}
return SetupResult::warning(
- $this->l10n->t('The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running "occ db:add-missing-columns" those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.').$list
+ $this->l10n->t('The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running "occ db:add-missing-columns" those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.') . $list
);
}
}
diff --git a/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php b/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php
index 8e2a0d18e41..03810ca8faf 100644
--- a/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php
+++ b/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php
@@ -62,10 +62,10 @@ class DatabaseHasMissingPrimaryKeys implements ISetupCheck {
} else {
$list = '';
foreach ($missingPrimaryKeys as $missingPrimaryKey) {
- $list .= "\n".$this->l10n->t('Missing primary key on table "%s".', [$missingPrimaryKey['tableName']]);
+ $list .= "\n" . $this->l10n->t('Missing primary key on table "%s".', [$missingPrimaryKey['tableName']]);
}
return SetupResult::warning(
- $this->l10n->t('The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.').$list
+ $this->l10n->t('The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.') . $list
);
}
}
diff --git a/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php b/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php
index dc9f00e8448..bb9794c1e03 100644
--- a/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php
+++ b/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php
@@ -74,7 +74,7 @@ class DatabasePendingBigIntConversions implements ISetupCheck {
}
$list .= "\n";
return SetupResult::info(
- $this->l10n->t('Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running "occ db:convert-filecache-bigint" those pending changes could be applied manually. This operation needs to be made while the instance is offline.').$list,
+ $this->l10n->t('Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running "occ db:convert-filecache-bigint" those pending changes could be applied manually. This operation needs to be made while the instance is offline.') . $list,
$this->urlGenerator->linkToDocs('admin-bigint-conversion')
);
}
diff --git a/apps/settings/lib/SetupChecks/OcxProviders.php b/apps/settings/lib/SetupChecks/OcxProviders.php
index 191341b0ee4..c53e8087bd9 100644
--- a/apps/settings/lib/SetupChecks/OcxProviders.php
+++ b/apps/settings/lib/SetupChecks/OcxProviders.php
@@ -76,7 +76,7 @@ class OcxProviders implements ISetupCheck {
$this->l10n->t('Your web server is not properly set up to resolve %1$s.
This is most likely related to a web server configuration that was not updated to deliver this folder directly.
Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx.
-On Nginx those are typically the lines starting with "location ~" that need an update.', [join(', ', array_map(fn ($s) => '"'.$s.'"', $missingProviders))]),
+On Nginx those are typically the lines starting with "location ~" that need an update.', [join(', ', array_map(fn ($s) => '"' . $s . '"', $missingProviders))]),
$this->urlGenerator->linkToDocs('admin-nginx'),
);
}
diff --git a/apps/settings/lib/SetupChecks/PhpModules.php b/apps/settings/lib/SetupChecks/PhpModules.php
index 6d4246ffdae..60c14757301 100644
--- a/apps/settings/lib/SetupChecks/PhpModules.php
+++ b/apps/settings/lib/SetupChecks/PhpModules.php
@@ -77,7 +77,7 @@ class PhpModules implements ISetupCheck {
$moduleList = implode(
"\n",
array_map(
- fn (string $module) => '- '.$module.' '.$this->getRecommendedModuleDescription($module),
+ fn (string $module) => '- ' . $module . ' ' . $this->getRecommendedModuleDescription($module),
$missingRecommendedModules
)
);
diff --git a/apps/settings/lib/SetupChecks/SecurityHeaders.php b/apps/settings/lib/SetupChecks/SecurityHeaders.php
index b85ab9b4018..ed4e56218da 100644
--- a/apps/settings/lib/SetupChecks/SecurityHeaders.php
+++ b/apps/settings/lib/SetupChecks/SecurityHeaders.php
@@ -65,16 +65,16 @@ class SecurityHeaders implements ISetupCheck {
$value = preg_replace('/,\s+/', ',', strtolower($response->getHeader($header)));
if ($value !== $expected) {
if ($accepted !== null && $value === $accepted) {
- $msg .= $this->l10n->t('- The `%1$s` HTTP header is not set to `%2$s`. Some features might not work correctly, as it is recommended to adjust this setting accordingly.', [$header, $expected])."\n";
+ $msg .= $this->l10n->t('- The `%1$s` HTTP header is not set to `%2$s`. Some features might not work correctly, as it is recommended to adjust this setting accordingly.', [$header, $expected]) . "\n";
} else {
- $msg .= $this->l10n->t('- The `%1$s` HTTP header is not set to `%2$s`. This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.', [$header, $expected])."\n";
+ $msg .= $this->l10n->t('- The `%1$s` HTTP header is not set to `%2$s`. This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.', [$header, $expected]) . "\n";
}
}
}
$xssFields = array_map('trim', explode(';', $response->getHeader('X-XSS-Protection')));
if (!in_array('1', $xssFields) || !in_array('mode=block', $xssFields)) {
- $msg .= $this->l10n->t('- The `%1$s` HTTP header does not contain `%2$s`. This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.', ['X-XSS-Protection', '1; mode=block'])."\n";
+ $msg .= $this->l10n->t('- The `%1$s` HTTP header does not contain `%2$s`. This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.', ['X-XSS-Protection', '1; mode=block']) . "\n";
}
$referrerPolicy = $response->getHeader('Referrer-Policy');
@@ -89,7 +89,7 @@ class SecurityHeaders implements ISetupCheck {
'strict-origin-when-cross-origin',
'same-origin',
]
- )."\n";
+ ) . "\n";
$msgParameters['w3c-recommendation'] = [
'type' => 'highlight',
'id' => 'w3c-recommendation',
@@ -103,17 +103,17 @@ class SecurityHeaders implements ISetupCheck {
if (preg_match('/^max-age=(\d+)(;.*)?$/', $transportSecurityValidity, $m)) {
$transportSecurityValidity = (int)$m[1];
if ($transportSecurityValidity < $minimumSeconds) {
- $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is not set to at least `%d` seconds (current value: `%d`). For enhanced security, it is recommended to use a long HSTS policy.', [$minimumSeconds, $transportSecurityValidity])."\n";
+ $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is not set to at least `%d` seconds (current value: `%d`). For enhanced security, it is recommended to use a long HSTS policy.', [$minimumSeconds, $transportSecurityValidity]) . "\n";
}
} elseif (!empty($transportSecurityValidity)) {
- $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is malformed: `%s`. For enhanced security, it is recommended to enable HSTS.', [$transportSecurityValidity])."\n";
+ $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is malformed: `%s`. For enhanced security, it is recommended to enable HSTS.', [$transportSecurityValidity]) . "\n";
} else {
- $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is not set (should be at least `%d` seconds). For enhanced security, it is recommended to enable HSTS.', [$minimumSeconds])."\n";
+ $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is not set (should be at least `%d` seconds). For enhanced security, it is recommended to enable HSTS.', [$minimumSeconds]) . "\n";
}
if (!empty($msg)) {
return SetupResult::warning(
- $this->l10n->t('Some headers are not set correctly on your instance')."\n".$msg,
+ $this->l10n->t('Some headers are not set correctly on your instance') . "\n" . $msg,
$this->urlGenerator->linkToDocs('admin-security'),
$msgParameters,
);
diff --git a/apps/settings/lib/SetupChecks/TempSpaceAvailable.php b/apps/settings/lib/SetupChecks/TempSpaceAvailable.php
index ef51ffe0e07..49dc0d377e7 100644
--- a/apps/settings/lib/SetupChecks/TempSpaceAvailable.php
+++ b/apps/settings/lib/SetupChecks/TempSpaceAvailable.php
@@ -85,7 +85,7 @@ class TempSpaceAvailable implements ISetupCheck {
return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$nextcloudTempPath]));
}
$freeSpaceInNextcloudTempInGB = $freeSpaceInNextcloudTemp / 1024 / 1024 / 1024;
- $spaceDetail .= "\n".$this->l10n->t('- %.1f GiB available in %s (Nextcloud temporary directory)', [round($freeSpaceInNextcloudTempInGB, 1),$nextcloudTempPath]);
+ $spaceDetail .= "\n" . $this->l10n->t('- %.1f GiB available in %s (Nextcloud temporary directory)', [round($freeSpaceInNextcloudTempInGB, 1),$nextcloudTempPath]);
}
if (!$this->isPrimaryStorageS3()) {
diff --git a/apps/settings/lib/UserMigration/AccountMigrator.php b/apps/settings/lib/UserMigration/AccountMigrator.php
index dc5ca2691f7..81107cd81c5 100644
--- a/apps/settings/lib/UserMigration/AccountMigrator.php
+++ b/apps/settings/lib/UserMigration/AccountMigrator.php
@@ -55,7 +55,7 @@ class AccountMigrator implements IMigrator, ISizeEstimationMigrator {
IAvatarManager $avatarManager,
ProfileManager $profileManager,
ProfileConfigMapper $configMapper,
- IL10N $l10n
+ IL10N $l10n,
) {
$this->accountManager = $accountManager;
$this->avatarManager = $avatarManager;
diff --git a/apps/settings/tests/Controller/UsersControllerTest.php b/apps/settings/tests/Controller/UsersControllerTest.php
index e8ae965b3bb..80eb252f988 100644
--- a/apps/settings/tests/Controller/UsersControllerTest.php
+++ b/apps/settings/tests/Controller/UsersControllerTest.php
@@ -669,7 +669,7 @@ class UsersControllerTest extends \Test\TestCase {
*/
public function testSaveUserSettings($data,
$oldEmailAddress,
- $oldDisplayName
+ $oldDisplayName,
): void {
$controller = $this->getController();
$user = $this->createMock(IUser::class);
@@ -792,7 +792,7 @@ class UsersControllerTest extends \Test\TestCase {
string $oldEmailAddress,
string $oldDisplayName,
bool $setDisplayNameResult,
- bool $canChangeEmail
+ bool $canChangeEmail,
): void {
$this->expectException(ForbiddenException::class);
diff --git a/apps/settings/tests/SetupChecks/SecurityHeadersTest.php b/apps/settings/tests/SetupChecks/SecurityHeadersTest.php
index 2bc5aa69b9c..d8bb51d47c6 100644
--- a/apps/settings/tests/SetupChecks/SecurityHeadersTest.php
+++ b/apps/settings/tests/SetupChecks/SecurityHeadersTest.php
@@ -176,7 +176,7 @@ class SecurityHeadersTest extends TestCase {
$result = $this->setupcheck->run();
$this->assertEquals(
- 'Some headers are not set correctly on your instance'."\n$msg",
+ 'Some headers are not set correctly on your instance' . "\n$msg",
$result->getDescription()
);
$this->assertEquals(SetupResult::WARNING, $result->getSeverity());
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 74483771762..fd43e7c089e 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -684,7 +684,7 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider
?\DateTimeInterface $expirationTime,
?string $note = '',
?IAttributes $attributes = null,
- ?bool $mailSend = true
+ ?bool $mailSend = true,
): int {
$qb = $this->dbConnection->getQueryBuilder();
$qb->insert('share')
diff --git a/apps/systemtags/lib/Activity/Setting.php b/apps/systemtags/lib/Activity/Setting.php
index c65cf3d404a..95001e95cf3 100644
--- a/apps/systemtags/lib/Activity/Setting.php
+++ b/apps/systemtags/lib/Activity/Setting.php
@@ -9,7 +9,9 @@ use OCP\Activity\ActivitySettings;
use OCP\IL10N;
class Setting extends ActivitySettings {
- public function __construct(protected IL10N $l) {
+ public function __construct(
+ protected IL10N $l,
+ ) {
}
/**
diff --git a/apps/systemtags/lib/Search/TagSearchProvider.php b/apps/systemtags/lib/Search/TagSearchProvider.php
index 80f9d39c141..6e6f587d366 100644
--- a/apps/systemtags/lib/Search/TagSearchProvider.php
+++ b/apps/systemtags/lib/Search/TagSearchProvider.php
@@ -52,7 +52,7 @@ class TagSearchProvider implements IProvider {
IMimeTypeDetector $mimeTypeDetector,
IRootFolder $rootFolder,
ISystemTagObjectMapper $objectMapper,
- ISystemTagManager $tagManager
+ ISystemTagManager $tagManager,
) {
$this->l10n = $l10n;
$this->urlGenerator = $urlGenerator;
@@ -118,7 +118,7 @@ class TagSearchProvider implements IProvider {
$thumbnailUrl = '';
$link = $this->urlGenerator->linkToRoute('files.view.indexView', [
'view' => 'tags',
- ]) . '?dir='.$tag->getId();
+ ]) . '?dir=' . $tag->getId();
$searchResultEntry = new SearchResultEntry(
$thumbnailUrl,
$this->l10n->t('All tagged %s …', [$tag->getName()]),
diff --git a/apps/testing/lib/Listener/GetDeclarativeSettingsValueListener.php b/apps/testing/lib/Listener/GetDeclarativeSettingsValueListener.php
index 312f49e5f5c..0df58168007 100644
--- a/apps/testing/lib/Listener/GetDeclarativeSettingsValueListener.php
+++ b/apps/testing/lib/Listener/GetDeclarativeSettingsValueListener.php
@@ -17,7 +17,9 @@ use OCP\Settings\Events\DeclarativeSettingsGetValueEvent;
*/
class GetDeclarativeSettingsValueListener implements IEventListener {
- public function __construct(private IConfig $config) {
+ public function __construct(
+ private IConfig $config,
+ ) {
}
public function handle(Event $event): void {
diff --git a/apps/testing/lib/Listener/SetDeclarativeSettingsValueListener.php b/apps/testing/lib/Listener/SetDeclarativeSettingsValueListener.php
index 19f1ae79b7b..0058e7df43e 100644
--- a/apps/testing/lib/Listener/SetDeclarativeSettingsValueListener.php
+++ b/apps/testing/lib/Listener/SetDeclarativeSettingsValueListener.php
@@ -17,7 +17,9 @@ use OCP\Settings\Events\DeclarativeSettingsSetValueEvent;
*/
class SetDeclarativeSettingsValueListener implements IEventListener {
- public function __construct(private IConfig $config) {
+ public function __construct(
+ private IConfig $config,
+ ) {
}
public function handle(Event $event): void {
diff --git a/apps/testing/lib/Locking/FakeDBLockingProvider.php b/apps/testing/lib/Locking/FakeDBLockingProvider.php
index 2c4d394fb0d..6e2fd9a77d8 100644
--- a/apps/testing/lib/Locking/FakeDBLockingProvider.php
+++ b/apps/testing/lib/Locking/FakeDBLockingProvider.php
@@ -21,7 +21,7 @@ class FakeDBLockingProvider extends DBLockingProvider {
public function __construct(
IDBConnection $connection,
- ITimeFactory $timeFactory
+ ITimeFactory $timeFactory,
) {
parent::__construct($connection, $timeFactory);
$this->db = $connection;
diff --git a/apps/theming/lib/Controller/IconController.php b/apps/theming/lib/Controller/IconController.php
index bdd5a43ddc3..7ba9e801d9b 100644
--- a/apps/theming/lib/Controller/IconController.php
+++ b/apps/theming/lib/Controller/IconController.php
@@ -40,7 +40,7 @@ class IconController extends Controller {
IconBuilder $iconBuilder,
ImageManager $imageManager,
FileAccessHelper $fileAccessHelper,
- IAppManager $appManager
+ IAppManager $appManager,
) {
parent::__construct($appName, $request);
diff --git a/apps/theming/lib/IconBuilder.php b/apps/theming/lib/IconBuilder.php
index e7e83a0b4c0..5e8754dec83 100644
--- a/apps/theming/lib/IconBuilder.php
+++ b/apps/theming/lib/IconBuilder.php
@@ -27,7 +27,7 @@ class IconBuilder {
public function __construct(
ThemingDefaults $themingDefaults,
Util $util,
- ImageManager $imageManager
+ ImageManager $imageManager,
) {
$this->themingDefaults = $themingDefaults;
$this->util = $util;
@@ -127,12 +127,12 @@ class IconBuilder {
$cornerRadius = 0.2 * $size;
$background = '<?xml version="1.0" encoding="UTF-8"?>' .
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:cc="http://creativecommons.org/ns#" width="' . $size . '" height="' . $size . '" xmlns:xlink="http://www.w3.org/1999/xlink">' .
- '<rect x="0" y="0" rx="' . $cornerRadius . '" ry="' . $cornerRadius . '" width="' . $size. '" height="' . $size . '" style="fill:' . $color . ';" />' .
+ '<rect x="0" y="0" rx="' . $cornerRadius . '" ry="' . $cornerRadius . '" width="' . $size . '" height="' . $size . '" style="fill:' . $color . ';" />' .
'</svg>';
// resize svg magic as this seems broken in Imagemagick
if ($mime === 'image/svg+xml' || substr($appIconContent, 0, 4) === '<svg') {
if (substr($appIconContent, 0, 5) !== '<?xml') {
- $svg = '<?xml version="1.0"?>'.$appIconContent;
+ $svg = '<?xml version="1.0"?>' . $appIconContent;
} else {
$svg = $appIconContent;
}
diff --git a/apps/theming/lib/Jobs/MigrateBackgroundImages.php b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
index aff13fc2910..6bf1dd4e5bc 100644
--- a/apps/theming/lib/Jobs/MigrateBackgroundImages.php
+++ b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
@@ -42,7 +42,7 @@ class MigrateBackgroundImages extends QueuedJob {
IJobList $jobList,
IDBConnection $dbc,
IAppData $appData,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($time);
$this->appDataFactory = $appDataFactory;
@@ -54,7 +54,7 @@ class MigrateBackgroundImages extends QueuedJob {
protected function run(mixed $argument): void {
if (!is_array($argument) || !isset($argument['stage'])) {
- throw new \Exception('Job '.self::class.' called with wrong argument');
+ throw new \Exception('Job ' . self::class . ' called with wrong argument');
}
switch ($argument['stage']) {
diff --git a/apps/theming/lib/Jobs/RestoreBackgroundImageColor.php b/apps/theming/lib/Jobs/RestoreBackgroundImageColor.php
index 1ec659d0646..42662dacef2 100644
--- a/apps/theming/lib/Jobs/RestoreBackgroundImageColor.php
+++ b/apps/theming/lib/Jobs/RestoreBackgroundImageColor.php
@@ -42,7 +42,7 @@ class RestoreBackgroundImageColor extends QueuedJob {
protected function run(mixed $argument): void {
if (!is_array($argument) || !isset($argument['stage'])) {
- throw new \Exception('Job '.self::class.' called with wrong argument');
+ throw new \Exception('Job ' . self::class . ' called with wrong argument');
}
switch ($argument['stage']) {
@@ -69,7 +69,7 @@ class RestoreBackgroundImageColor extends QueuedJob {
// Get those users, that have a background_image set - not the default, but no background_color.
$result = $qb->selectDistinct('a.userid')
->from('preferences', 'a')
- ->leftJoin('a', $qb->createFunction('('.$innerSQL->getSQL().')'), 'b', 'a.userid = b.userid')
+ ->leftJoin('a', $qb->createFunction('(' . $innerSQL->getSQL() . ')'), 'b', 'a.userid = b.userid')
->where($qb2->expr()->eq('a.configkey', $qb->createNamedParameter('background_image')))
->andWhere($qb2->expr()->neq('a.configvalue', $qb->createNamedParameter(BackgroundService::BACKGROUND_DEFAULT)))
->andWhere($qb2->expr()->isNull('b.userid'))
@@ -101,7 +101,7 @@ class RestoreBackgroundImageColor extends QueuedJob {
}
$background = $this->config->getUserValue($userId, Application::APP_ID, 'background_image');
- switch($background) {
+ switch ($background) {
case BackgroundService::BACKGROUND_DEFAULT:
$this->service->setDefaultBackground($userId);
break;
diff --git a/apps/theming/lib/Listener/BeforeTemplateRenderedListener.php b/apps/theming/lib/Listener/BeforeTemplateRenderedListener.php
index cb72e46360e..2ad495b0239 100644
--- a/apps/theming/lib/Listener/BeforeTemplateRenderedListener.php
+++ b/apps/theming/lib/Listener/BeforeTemplateRenderedListener.php
@@ -35,7 +35,7 @@ class BeforeTemplateRenderedListener implements IEventListener {
ContainerInterface $container,
ThemeInjectionService $themeInjectionService,
IUserSession $userSession,
- IConfig $config
+ IConfig $config,
) {
$this->initialState = $initialState;
$this->container = $container;
diff --git a/apps/theming/lib/Service/BackgroundService.php b/apps/theming/lib/Service/BackgroundService.php
index a0158dcb667..bf650874448 100644
--- a/apps/theming/lib/Service/BackgroundService.php
+++ b/apps/theming/lib/Service/BackgroundService.php
@@ -321,7 +321,7 @@ class BackgroundService {
* @param resource|string $path
* @return string|null The fallback background color - if any
*/
- public function setGlobalBackground($path): string|null {
+ public function setGlobalBackground($path): ?string {
$image = new \OCP\Image();
$handle = is_resource($path) ? $path : fopen($path, 'rb');
@@ -347,7 +347,7 @@ class BackgroundService {
$hex = dechex($channel);
return match (strlen($hex)) {
0 => '00',
- 1 => '0'.$hex,
+ 1 => '0' . $hex,
2 => $hex,
default => 'ff',
};
diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php
index 49cd72d4255..ef8d1ff44ff 100644
--- a/apps/theming/lib/Service/ThemesService.php
+++ b/apps/theming/lib/Service/ThemesService.php
@@ -31,7 +31,8 @@ class ThemesService {
private DarkTheme $darkTheme,
HighContrastTheme $highContrastTheme,
DarkHighContrastTheme $darkHighContrastTheme,
- DyslexiaFont $dyslexiaFont) {
+ DyslexiaFont $dyslexiaFont,
+ ) {
// Register themes
$this->themesProviders = [
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index 9be830a61fd..42c96557ba7 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -123,7 +123,7 @@ class ThemingDefaults extends \OC_Defaults {
$footer = '<a href="' . $baseUrl . '" target="_blank"' .
' rel="noreferrer noopener" class="entity-name">' . $entity . '</a>';
} else {
- $footer = '<span class="entity-name">' .$entity . '</span>';
+ $footer = '<span class="entity-name">' . $entity . '</span>';
}
}
$footer .= ($slogan !== '' ? ' – ' . $slogan : '');
@@ -340,10 +340,10 @@ class ThemingDefaults extends \OC_Defaults {
'theming-favicon-mime' => "'" . $this->config->getAppValue('theming', 'faviconMime') . "'"
];
- $variables['image-logo'] = "url('".$this->imageManager->getImageUrl('logo')."')";
- $variables['image-logoheader'] = "url('".$this->imageManager->getImageUrl('logoheader')."')";
- $variables['image-favicon'] = "url('".$this->imageManager->getImageUrl('favicon')."')";
- $variables['image-login-background'] = "url('".$this->imageManager->getImageUrl('background')."')";
+ $variables['image-logo'] = "url('" . $this->imageManager->getImageUrl('logo') . "')";
+ $variables['image-logoheader'] = "url('" . $this->imageManager->getImageUrl('logoheader') . "')";
+ $variables['image-favicon'] = "url('" . $this->imageManager->getImageUrl('favicon') . "')";
+ $variables['image-login-background'] = "url('" . $this->imageManager->getImageUrl('background') . "')";
$variables['image-login-plain'] = 'false';
if ($this->appConfig->getValueString(Application::APP_ID, 'primary_color', '') !== '') {
diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php
index 809ff53f5e1..839ef1d0b46 100644
--- a/apps/theming/lib/Util.php
+++ b/apps/theming/lib/Util.php
@@ -189,7 +189,7 @@ class Util {
*/
public function generateRadioButton($color) {
$radioButtonIcon = '<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">' .
- '<path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7zm0 1a6 6 0 0 1 6 6 6 6 0 0 1-6 6 6 6 0 0 1-6-6 6 6 0 0 1 6-6zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8z" fill="'.$color.'"/></svg>';
+ '<path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7zm0 1a6 6 0 0 1 6 6 6 6 0 0 1-6 6 6 6 0 0 1-6-6 6 6 0 0 1 6-6zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8z" fill="' . $color . '"/></svg>';
return base64_encode($radioButtonIcon);
}
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index d69ceefa0e5..6ce808253a0 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -256,7 +256,7 @@ class ThemingControllerTest extends TestCase {
->method('getUploadedFile')
->with('image')
->willReturn([
- 'tmp_name' => __DIR__ . '/../../../../tests/data/testimagelarge.svg',
+ 'tmp_name' => __DIR__ . '/../../../../tests/data/testimagelarge.svg',
'type' => 'image/svg',
'name' => 'testimagelarge.svg',
'error' => 0,
@@ -297,7 +297,7 @@ class ThemingControllerTest extends TestCase {
->method('getUploadedFile')
->with('image')
->willReturn([
- 'tmp_name' => __DIR__ . '/../../../../tests/data/lorem.txt',
+ 'tmp_name' => __DIR__ . '/../../../../tests/data/lorem.txt',
'type' => 'application/pdf',
'name' => 'logo.pdf',
'error' => 0,
@@ -443,7 +443,7 @@ class ThemingControllerTest extends TestCase {
$tmpLogo = \OC::$server->getTempManager()->getTemporaryFolder() . '/logo.svg';
touch($tmpLogo);
- file_put_contents($tmpLogo, file_get_contents(__DIR__ . '/../../../../tests/data/data.zip'));
+ file_put_contents($tmpLogo, file_get_contents(__DIR__ . '/../../../../tests/data/data.zip'));
$this->request
->expects($this->once())
->method('getParam')
diff --git a/apps/theming/tests/IconBuilderTest.php b/apps/theming/tests/IconBuilderTest.php
index 942bcf399fa..bef48448bfa 100644
--- a/apps/theming/tests/IconBuilderTest.php
+++ b/apps/theming/tests/IconBuilderTest.php
@@ -84,7 +84,7 @@ class IconBuilderTest extends TestCase {
->with('global/images')
->willThrowException(new NotFoundException());
- $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file);
+ $expectedIcon = new \Imagick(realpath(__DIR__) . '/data/' . $file);
$icon = $this->iconBuilder->renderAppIcon($app, 512);
$this->assertEquals(true, $icon->valid());
@@ -113,7 +113,7 @@ class IconBuilderTest extends TestCase {
->with('global/images')
->willThrowException(new NotFoundException());
- $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file);
+ $expectedIcon = new \Imagick(realpath(__DIR__) . '/data/' . $file);
$icon = new \Imagick();
$icon->readImageBlob($this->iconBuilder->getTouchIcon($app));
@@ -146,7 +146,7 @@ class IconBuilderTest extends TestCase {
->with('global/images')
->willThrowException(new NotFoundException());
- $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file);
+ $expectedIcon = new \Imagick(realpath(__DIR__) . '/data/' . $file);
$actualIcon = $this->iconBuilder->getFavicon($app);
$icon = new \Imagick();
diff --git a/apps/updatenotification/lib/Command/Check.php b/apps/updatenotification/lib/Command/Check.php
index 75e42904515..a66e729e8a7 100644
--- a/apps/updatenotification/lib/Command/Check.php
+++ b/apps/updatenotification/lib/Command/Check.php
@@ -52,7 +52,7 @@ class Check extends Command {
// Server
$r = $this->updateChecker->getUpdateState();
if (isset($r['updateAvailable']) && $r['updateAvailable']) {
- $output->writeln($r['updateVersionString'] . ' is available. Get more information on how to update at '. $r['updateLink'] . '.');
+ $output->writeln($r['updateVersionString'] . ' is available. Get more information on how to update at ' . $r['updateLink'] . '.');
$updatesAvailableCount += 1;
}
diff --git a/apps/updatenotification/lib/Manager.php b/apps/updatenotification/lib/Manager.php
index f2e75eedfa4..b6f455f93fe 100644
--- a/apps/updatenotification/lib/Manager.php
+++ b/apps/updatenotification/lib/Manager.php
@@ -34,7 +34,7 @@ class Manager {
* @param ?string $languageCode The language in which to query the changelog (defaults to current user language and fallsback to English)
* @return string|null Either the changelog entry or null if no changelog is found
*/
- public function getChangelog(string $appId, string $version, ?string $languageCode = null): string|null {
+ public function getChangelog(string $appId, string $version, ?string $languageCode = null): ?string {
if ($languageCode === null) {
$languageCode = $this->l10NFactory->getUserLanguage($this->currentUser);
}
@@ -55,7 +55,7 @@ class Manager {
* @param string $languageCode The language code to search
* @return string|null Either the file path or null if not found
*/
- public function getChangelogFile(string $appId, string $languageCode): string|null {
+ public function getChangelogFile(string $appId, string $languageCode): ?string {
try {
$appPath = $this->appManager->getAppPath($appId);
$files = ["CHANGELOG.$languageCode.md", 'CHANGELOG.en.md'];
@@ -76,7 +76,7 @@ class Manager {
* @param string $path The path to the changlog file
* @param string $version The version to query (make sure to only pass in "{major}.{minor}(.{patch}" format)
*/
- protected function retrieveChangelogEntry(string $path, string $version): string|null {
+ protected function retrieveChangelogEntry(string $path, string $version): ?string {
$matches = [];
$content = file_get_contents($path);
if ($content === false) {
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php
index 6e39a40ad8d..4a74993f0a5 100644
--- a/apps/updatenotification/lib/Settings/Admin.php
+++ b/apps/updatenotification/lib/Settings/Admin.php
@@ -35,7 +35,7 @@ class Admin implements ISettings {
private IRegistry $subscriptionRegistry,
private IUserManager $userManager,
private LoggerInterface $logger,
- private IInitialState $initialState
+ private IInitialState $initialState,
) {
}
diff --git a/apps/user_ldap/ajax/getNewServerConfigPrefix.php b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
index 8064ce92833..ccd96250d52 100644
--- a/apps/user_ldap/ajax/getNewServerConfigPrefix.php
+++ b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
@@ -15,7 +15,7 @@ $serverConnections = $helper->getServerConfigurationPrefixes();
sort($serverConnections);
$lk = array_pop($serverConnections);
$ln = (int)str_replace('s', '', $lk);
-$nk = 's'.str_pad($ln + 1, 2, '0', STR_PAD_LEFT);
+$nk = 's' . str_pad($ln + 1, 2, '0', STR_PAD_LEFT);
$resultData = ['configPrefix' => $nk];
diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php
index 5c2cddc7672..f1778677327 100644
--- a/apps/user_ldap/ajax/wizard.php
+++ b/apps/user_ldap/ajax/wizard.php
@@ -98,7 +98,7 @@ switch ($action) {
$setParameters = [];
$configuration->setConfiguration($cfg, $setParameters);
if (!in_array($key, $setParameters)) {
- \OC_JSON::error(['message' => $l->t($key.
+ \OC_JSON::error(['message' => $l->t($key .
' Could not set configuration %s', $setParameters[0])]);
exit;
}
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index dab8db20c99..81f3dc6cb70 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -624,7 +624,7 @@ class Access extends LDAPUtility {
string $fdn,
string $name,
string $uuid,
- bool $isUser
+ bool $isUser,
): bool {
if ($mapper->map($fdn, $name, $uuid)) {
if ($isUser) {
@@ -1118,7 +1118,7 @@ class Access extends LDAPUtility {
string $base,
?array &$attr,
?int $pageSize,
- ?int $offset
+ ?int $offset,
) {
// See if we have a resource, in case not cancel with message
$cr = $this->connection->getConnectionResource();
@@ -1158,7 +1158,7 @@ class Access extends LDAPUtility {
int $foundItems,
int $limit,
bool $pagedSearchOK,
- bool $skipHandling
+ bool $skipHandling,
): bool {
$cookie = '';
if ($pagedSearchOK) {
@@ -1213,7 +1213,7 @@ class Access extends LDAPUtility {
?array $attr = null,
int $limit = 0,
int $offset = 0,
- bool $skipHandling = false
+ bool $skipHandling = false,
) {
$this->logger->debug('Count filter: {filter}', [
'app' => 'user_ldap',
@@ -1278,7 +1278,7 @@ class Access extends LDAPUtility {
?array $attr = null,
?int $limit = null,
?int $offset = null,
- bool $skipHandling = false
+ bool $skipHandling = false,
): array {
$limitPerPage = (int)$this->connection->ldapPagingSize;
if (!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
@@ -1983,7 +1983,7 @@ class Access extends LDAPUtility {
string $base,
?array $attr,
int $pageSize,
- int $offset
+ int $offset,
): array {
$pagedSearchOK = false;
if ($pageSize !== 0) {
diff --git a/apps/user_ldap/lib/AppInfo/Application.php b/apps/user_ldap/lib/AppInfo/Application.php
index 400315442bb..e3f6f56152c 100644
--- a/apps/user_ldap/lib/AppInfo/Application.php
+++ b/apps/user_ldap/lib/AppInfo/Application.php
@@ -109,7 +109,7 @@ class Application extends App implements IBootstrap {
IGroupManager $groupManager,
User_Proxy $userBackend,
Group_Proxy $groupBackend,
- Helper $helper
+ Helper $helper,
) {
$configPrefixes = $helper->getServerConfigurationPrefixes(true);
if (count($configPrefixes) > 0) {
diff --git a/apps/user_ldap/lib/Command/CheckGroup.php b/apps/user_ldap/lib/Command/CheckGroup.php
index c376d0f890a..9c7ccb9d3b3 100644
--- a/apps/user_ldap/lib/Command/CheckGroup.php
+++ b/apps/user_ldap/lib/Command/CheckGroup.php
@@ -99,25 +99,25 @@ class CheckGroup extends Command {
throw new \Exception('The given group is not a recognized LDAP group.');
} catch (\Exception $e) {
- $output->writeln('<error>' . $e->getMessage(). '</error>');
+ $output->writeln('<error>' . $e->getMessage() . '</error>');
return self::FAILURE;
}
}
public function onGroupCreatedEvent(GroupCreatedEvent $event, OutputInterface $output): void {
- $output->writeln('<info>The group '.$event->getGroup()->getGID().' was added to Nextcloud with '.$event->getGroup()->count().' users</info>');
+ $output->writeln('<info>The group ' . $event->getGroup()->getGID() . ' was added to Nextcloud with ' . $event->getGroup()->count() . ' users</info>');
}
public function onUserAddedEvent(UserAddedEvent $event, OutputInterface $output): void {
$user = $event->getUser();
$group = $event->getGroup();
- $output->writeln('<info>The user '.$user->getUID().' was added to group '.$group->getGID().'</info>');
+ $output->writeln('<info>The user ' . $user->getUID() . ' was added to group ' . $group->getGID() . '</info>');
}
public function onUserRemovedEvent(UserRemovedEvent $event, OutputInterface $output): void {
$user = $event->getUser();
$group = $event->getGroup();
- $output->writeln('<info>The user '.$user->getUID().' was removed from group '.$group->getGID().'</info>');
+ $output->writeln('<info>The user ' . $user->getUID() . ' was removed from group ' . $group->getGID() . '</info>');
}
/**
diff --git a/apps/user_ldap/lib/Command/CheckUser.php b/apps/user_ldap/lib/Command/CheckUser.php
index ebb416c24a6..d5bd0235b2c 100644
--- a/apps/user_ldap/lib/Command/CheckUser.php
+++ b/apps/user_ldap/lib/Command/CheckUser.php
@@ -84,7 +84,7 @@ class CheckUser extends Command {
throw new \Exception('The given user is not a recognized LDAP user.');
} catch (\Exception $e) {
- $output->writeln('<error>' . $e->getMessage(). '</error>');
+ $output->writeln('<error>' . $e->getMessage() . '</error>');
return self::FAILURE;
}
}
diff --git a/apps/user_ldap/lib/Command/PromoteGroup.php b/apps/user_ldap/lib/Command/PromoteGroup.php
index bb5362e4700..b203a910b14 100644
--- a/apps/user_ldap/lib/Command/PromoteGroup.php
+++ b/apps/user_ldap/lib/Command/PromoteGroup.php
@@ -22,7 +22,7 @@ class PromoteGroup extends Command {
public function __construct(
private IGroupManager $groupManager,
- private Group_Proxy $backend
+ private Group_Proxy $backend,
) {
parent::__construct();
}
diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php
index 4886e0c7638..fe1b9f34988 100644
--- a/apps/user_ldap/lib/Command/Search.php
+++ b/apps/user_ldap/lib/Command/Search.php
@@ -106,7 +106,7 @@ class Search extends Command {
$result = $proxy->$getMethod($input->getArgument('search'), $limit, $offset);
foreach ($result as $id => $name) {
- $line = $name . ($printID ? ' ('.$id.')' : '');
+ $line = $name . ($printID ? ' (' . $id . ')' : '');
$output->writeln($line);
}
return self::SUCCESS;
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php
index 9de180cad76..989d0bd3929 100644
--- a/apps/user_ldap/lib/Configuration.php
+++ b/apps/user_ldap/lib/Configuration.php
@@ -241,7 +241,7 @@ class Configuration {
case 'homeFolderNamingRule':
$trimmedVal = trim($val);
if ($trimmedVal !== '' && !str_contains($val, 'attr:')) {
- $val = 'attr:'.$trimmedVal;
+ $val = 'attr:' . $trimmedVal;
}
break;
case 'ldapBase':
@@ -450,7 +450,7 @@ class Configuration {
$defaults = $this->getDefaults();
}
return \OC::$server->getConfig()->getAppValue('user_ldap',
- $this->configPrefix.$varName,
+ $this->configPrefix . $varName,
$defaults[$varName]);
}
@@ -480,7 +480,7 @@ class Configuration {
protected function saveValue(string $varName, string $value): bool {
\OC::$server->getConfig()->setAppValue(
'user_ldap',
- $this->configPrefix.$varName,
+ $this->configPrefix . $varName,
$value
);
return true;
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index b74c964eb72..757ba2d8e8a 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -259,11 +259,11 @@ class Connection extends LDAPUtility {
* @param string|null $key
*/
private function getCacheKey($key): string {
- $prefix = 'LDAP-'.$this->configID.'-'.$this->configPrefix.'-';
+ $prefix = 'LDAP-' . $this->configID . '-' . $this->configPrefix . '-';
if (is_null($key)) {
return $prefix;
}
- return $prefix.hash('sha256', $key);
+ return $prefix . hash('sha256', $key);
}
/**
@@ -410,7 +410,7 @@ class Connection extends LDAPUtility {
$this->configuration->$effectiveSetting = 'auto';
$this->configuration->saveConfiguration();
$this->logger->info(
- 'Illegal value for the '.$effectiveSetting.', reset to autodetect.',
+ 'Illegal value for the ' . $effectiveSetting . ', reset to autodetect.',
['app' => 'user_ldap']
);
}
@@ -480,7 +480,7 @@ class Connection extends LDAPUtility {
}
$configurationOK = false;
$this->logger->warning(
- $errorStr.'No '.$subj.' given!',
+ $errorStr . 'No ' . $subj . ' given!',
['app' => 'user_ldap']
);
}
@@ -494,7 +494,7 @@ class Connection extends LDAPUtility {
|| ($agent !== '' && $pwd === '')
) {
$this->logger->warning(
- $errorStr.'either no password is given for the user ' .
+ $errorStr . 'either no password is given for the user ' .
'agent or a password is given, but not an LDAP agent.',
['app' => 'user_ldap']
);
@@ -507,7 +507,7 @@ class Connection extends LDAPUtility {
if (empty($base) && empty($baseUsers) && empty($baseGroups)) {
$this->logger->warning(
- $errorStr.'Not a single Base DN given.',
+ $errorStr . 'Not a single Base DN given.',
['app' => 'user_ldap']
);
$configurationOK = false;
@@ -516,7 +516,7 @@ class Connection extends LDAPUtility {
if (mb_strpos((string)$this->configuration->ldapLoginFilter, '%uid', 0, 'UTF-8')
=== false) {
$this->logger->warning(
- $errorStr.'login filter does not contain %uid place holder.',
+ $errorStr . 'login filter does not contain %uid place holder.',
['app' => 'user_ldap']
);
$configurationOK = false;
diff --git a/apps/user_ldap/lib/Controller/ConfigAPIController.php b/apps/user_ldap/lib/Controller/ConfigAPIController.php
index 978aa005559..f4f55217ef1 100644
--- a/apps/user_ldap/lib/Controller/ConfigAPIController.php
+++ b/apps/user_ldap/lib/Controller/ConfigAPIController.php
@@ -33,7 +33,7 @@ class ConfigAPIController extends OCSController {
Manager $keyManager,
private Helper $ldapHelper,
private LoggerInterface $logger,
- private ConnectionFactory $connectionFactory
+ private ConnectionFactory $connectionFactory,
) {
parent::__construct(
$appName,
diff --git a/apps/user_ldap/lib/GroupPluginManager.php b/apps/user_ldap/lib/GroupPluginManager.php
index fca9f37d092..37622a53480 100644
--- a/apps/user_ldap/lib/GroupPluginManager.php
+++ b/apps/user_ldap/lib/GroupPluginManager.php
@@ -41,7 +41,7 @@ class GroupPluginManager {
foreach ($this->which as $action => $v) {
if ((bool)($respondToActions & $action)) {
$this->which[$action] = $plugin;
- \OCP\Server::get(LoggerInterface::class)->debug('Registered action '.$action.' to plugin '.get_class($plugin), ['app' => 'user_ldap']);
+ \OCP\Server::get(LoggerInterface::class)->debug('Registered action ' . $action . ' to plugin ' . get_class($plugin), ['app' => 'user_ldap']);
}
}
}
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index d4d67b546d6..5fe5abf4c13 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -46,7 +46,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
Access $access,
GroupPluginManager $groupPluginManager,
IConfig $config,
- IUserManager $ncUserManager
+ IUserManager $ncUserManager,
) {
$this->access = $access;
$filter = $this->access->connection->ldapGroupFilter;
@@ -454,7 +454,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
string $groupDN,
string $search = '',
?int $limit = -1,
- ?int $offset = 0
+ ?int $offset = 0,
): array {
try {
$filter = $this->prepareFilterForUsersHasGidNumber($groupDN, $search);
@@ -578,7 +578,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
string $groupDN,
string $search = '',
?int $limit = -1,
- ?int $offset = 0
+ ?int $offset = 0,
): array {
try {
$filter = $this->prepareFilterForUsersInPrimaryGroup($groupDN, $search);
@@ -603,7 +603,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
string $groupDN,
string $search = '',
int $limit = -1,
- int $offset = 0
+ int $offset = 0,
): int {
try {
$filter = $this->prepareFilterForUsersInPrimaryGroup($groupDN, $search);
@@ -1266,7 +1266,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
// Getting dn, if false the group is not mapped
$dn = $this->access->groupname2dn($gid);
if (!$dn) {
- throw new Exception('Could not delete unknown group '.$gid.' in LDAP backend.');
+ throw new Exception('Could not delete unknown group ' . $gid . ' in LDAP backend.');
}
if (!$this->groupExists($gid)) {
@@ -1276,7 +1276,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
return true;
}
- throw new Exception('Could not delete existing group '.$gid.' in LDAP backend.');
+ throw new Exception('Could not delete existing group ' . $gid . ' in LDAP backend.');
}
/**
diff --git a/apps/user_ldap/lib/Jobs/CleanUp.php b/apps/user_ldap/lib/Jobs/CleanUp.php
index 22c878ed067..b04dc67ef49 100644
--- a/apps/user_ldap/lib/Jobs/CleanUp.php
+++ b/apps/user_ldap/lib/Jobs/CleanUp.php
@@ -50,7 +50,7 @@ class CleanUp extends TimedJob {
public function __construct(
ITimeFactory $timeFactory,
User_Proxy $userBackend,
- DeletedUsersIndex $dui
+ DeletedUsersIndex $dui,
) {
parent::__construct($timeFactory);
$minutes = \OC::$server->getConfig()->getSystemValue(
diff --git a/apps/user_ldap/lib/LDAPProvider.php b/apps/user_ldap/lib/LDAPProvider.php
index 3b1568d1748..e7c507a265f 100644
--- a/apps/user_ldap/lib/LDAPProvider.php
+++ b/apps/user_ldap/lib/LDAPProvider.php
@@ -37,7 +37,7 @@ class LDAPProvider implements ILDAPProvider, IDeletionFlagSupport {
$userBackendFound = false;
$groupBackendFound = false;
foreach ($serverContainer->getUserManager()->getBackends() as $backend) {
- $this->logger->debug('instance '.get_class($backend).' user backend.', ['app' => 'user_ldap']);
+ $this->logger->debug('instance ' . get_class($backend) . ' user backend.', ['app' => 'user_ldap']);
if ($backend instanceof IUserLDAP) {
$this->userBackend = $backend;
$userBackendFound = true;
@@ -45,7 +45,7 @@ class LDAPProvider implements ILDAPProvider, IDeletionFlagSupport {
}
}
foreach ($serverContainer->getGroupManager()->getBackends() as $backend) {
- $this->logger->debug('instance '.get_class($backend).' group backend.', ['app' => 'user_ldap']);
+ $this->logger->debug('instance ' . get_class($backend) . ' group backend.', ['app' => 'user_ldap']);
if ($backend instanceof IGroupLDAP) {
$this->groupBackend = $backend;
$groupBackendFound = true;
diff --git a/apps/user_ldap/lib/Proxy.php b/apps/user_ldap/lib/Proxy.php
index 285427bfd4d..88a55f6462d 100644
--- a/apps/user_ldap/lib/Proxy.php
+++ b/apps/user_ldap/lib/Proxy.php
@@ -22,7 +22,7 @@ abstract class Proxy {
public function __construct(
ILDAPWrapper $ldap,
- AccessFactory $accessFactory
+ AccessFactory $accessFactory,
) {
$this->ldap = $ldap;
$this->accessFactory = $accessFactory;
diff --git a/apps/user_ldap/lib/Settings/Admin.php b/apps/user_ldap/lib/Settings/Admin.php
index 71532846b91..8fc0915c6fe 100644
--- a/apps/user_ldap/lib/Settings/Admin.php
+++ b/apps/user_ldap/lib/Settings/Admin.php
@@ -55,7 +55,7 @@ class Admin implements IDelegatedSettings {
}
$defaults = $config->getDefaults();
foreach ($defaults as $key => $default) {
- $parameters[$key.'_default'] = $default;
+ $parameters[$key . '_default'] = $default;
}
return new TemplateResponse('user_ldap', 'settings', $parameters);
diff --git a/apps/user_ldap/lib/SetupChecks/LdapConnection.php b/apps/user_ldap/lib/SetupChecks/LdapConnection.php
index a33dd10f063..ee8c4ddd595 100644
--- a/apps/user_ldap/lib/SetupChecks/LdapConnection.php
+++ b/apps/user_ldap/lib/SetupChecks/LdapConnection.php
@@ -61,7 +61,7 @@ class LdapConnection implements ISetupCheck {
'Binding failed for %n LDAP configurations: %s',
count($bindFailedConfigurations),
[implode(',', $bindFailedConfigurations)]
- )."\n";
+ ) . "\n";
}
if (!empty($searchFailedConfigurations)) {
$output .= $this->l10n->n(
@@ -69,7 +69,7 @@ class LdapConnection implements ISetupCheck {
'Searching failed for %n LDAP configurations: %s',
count($searchFailedConfigurations),
[implode(',', $searchFailedConfigurations)]
- )."\n";
+ ) . "\n";
}
if (!empty($inactiveConfigurations)) {
$output .= $this->l10n->n(
@@ -77,7 +77,7 @@ class LdapConnection implements ISetupCheck {
'There are %n inactive LDAP configurations: %s',
count($inactiveConfigurations),
[implode(',', $inactiveConfigurations)]
- )."\n";
+ ) . "\n";
}
if (!empty($bindFailedConfigurations) || !empty($searchFailedConfigurations)) {
return SetupResult::error($output);
diff --git a/apps/user_ldap/lib/User/DeletedUsersIndex.php b/apps/user_ldap/lib/User/DeletedUsersIndex.php
index 4b5bb26fa96..515233b3825 100644
--- a/apps/user_ldap/lib/User/DeletedUsersIndex.php
+++ b/apps/user_ldap/lib/User/DeletedUsersIndex.php
@@ -22,7 +22,7 @@ class DeletedUsersIndex {
public function __construct(
IConfig $config,
UserMapping $mapping,
- IManager $shareManager
+ IManager $shareManager,
) {
$this->config = $config;
$this->mapping = $mapping;
diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php
index bf1da54823c..5d5ad8b2658 100644
--- a/apps/user_ldap/lib/User/Manager.php
+++ b/apps/user_ldap/lib/User/Manager.php
@@ -49,7 +49,7 @@ class Manager {
Image $image,
IUserManager $userManager,
INotificationManager $notificationManager,
- IManager $shareManager
+ IManager $shareManager,
) {
$this->ocConfig = $ocConfig;
$this->ocFilesystem = $ocFilesystem;
diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php
index 24f11a5a1f9..eed715ccc1c 100644
--- a/apps/user_ldap/lib/User/OfflineUser.php
+++ b/apps/user_ldap/lib/User/OfflineUser.php
@@ -70,7 +70,7 @@ class OfflineUser {
$ocName,
IConfig $config,
UserMapping $mapping,
- IManager $shareManager
+ IManager $shareManager,
) {
$this->ocName = $ocName;
$this->config = $config;
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index f2a9ba49f2f..0688a843bd7 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -201,7 +201,7 @@ class User {
}
//memberOf groups
- $cacheKey = 'getMemberOf'.$this->getUsername();
+ $cacheKey = 'getMemberOf' . $this->getUsername();
$groups = false;
if (isset($ldapEntry['memberof'])) {
$groups = $ldapEntry['memberof'];
@@ -217,7 +217,7 @@ class User {
// check for cached profile data
$username = $this->getUsername(); // buffer variable, to save resource
- $cacheKey = 'getUserProfile-'.$username;
+ $cacheKey = 'getUserProfile-' . $username;
$profileCached = $this->connection->getFromCache($cacheKey);
// honoring profile disabled in config.php and check if user profile was refreshed
if ($this->config->getSystemValueBool('profile.enabled', true) &&
@@ -404,7 +404,7 @@ class User {
&& $path[1] === ':' && ($path[2] === '\\' || $path[2] === '/'))
) {
$path = $this->config->getSystemValue('datadirectory',
- \OC::$SERVERROOT.'/data') . '/' . $path;
+ \OC::$SERVERROOT . '/data') . '/' . $path;
}
//we need it to store it in the DB as well in case a user gets
//deleted so we can clean up afterwards
@@ -427,7 +427,7 @@ class User {
}
public function getMemberOfGroups() {
- $cacheKey = 'getMemberOf'.$this->getUsername();
+ $cacheKey = 'getMemberOf' . $this->getUsername();
$memberOfGroups = $this->connection->getFromCache($cacheKey);
if (!is_null($memberOfGroups)) {
return $memberOfGroups;
@@ -637,7 +637,7 @@ class User {
// fetch/prepare user
$user = $this->userManager->get($this->uid);
if (is_null($user)) {
- $this->logger->error('could not get user for uid='.$this->uid.'', ['app' => 'user_ldap']);
+ $this->logger->error('could not get user for uid=' . $this->uid . '', ['app' => 'user_ldap']);
return;
}
// prepare AccountManager and Account
@@ -654,22 +654,22 @@ class User {
$currentValue = $accountProperty->getValue();
$scope = ($accountProperty->getScope() ?: $defaultScopes[$property]);
} catch (PropertyDoesNotExistException $e) { // thrown at getProperty
- $this->logger->error('property does not exist: '.$property
- .' for uid='.$this->uid.'', ['app' => 'user_ldap', 'exception' => $e]);
+ $this->logger->error('property does not exist: ' . $property
+ . ' for uid=' . $this->uid . '', ['app' => 'user_ldap', 'exception' => $e]);
$currentValue = '';
$scope = $defaultScopes[$property];
}
$verified = IAccountManager::VERIFIED; // trust the LDAP admin knew what he put there
if ($currentValue !== $value) {
$account->setProperty($property, $value, $scope, $verified);
- $this->logger->debug('update user profile: '.$property.'='.$value
- .' for uid='.$this->uid.'', ['app' => 'user_ldap']);
+ $this->logger->debug('update user profile: ' . $property . '=' . $value
+ . ' for uid=' . $this->uid . '', ['app' => 'user_ldap']);
}
}
try {
$accountManager->updateAccount($account); // may throw InvalidArgumentException
} catch (\InvalidArgumentException $e) {
- $this->logger->error('invalid data from LDAP: for uid='.$this->uid.'', ['app' => 'user_ldap', 'func' => 'updateProfile'
+ $this->logger->error('invalid data from LDAP: for uid=' . $this->uid . '', ['app' => 'user_ldap', 'func' => 'updateProfile'
, 'exception' => $e]);
}
}
@@ -735,7 +735,7 @@ class User {
*/
private function setOwnCloudAvatar() {
if (!$this->image->valid()) {
- $this->logger->error('avatar image data from LDAP invalid for '.$this->dn, ['app' => 'user_ldap']);
+ $this->logger->error('avatar image data from LDAP invalid for ' . $this->dn, ['app' => 'user_ldap']);
return false;
}
@@ -743,7 +743,7 @@ class User {
//make sure it is a square and not bigger than 512x512
$size = min([$this->image->width(), $this->image->height(), 512]);
if (!$this->image->centerCrop($size)) {
- $this->logger->error('croping image for avatar failed for '.$this->dn, ['app' => 'user_ldap']);
+ $this->logger->error('croping image for avatar failed for ' . $this->dn, ['app' => 'user_ldap']);
return false;
}
@@ -845,10 +845,10 @@ class User {
if (!empty($pwdGraceAuthNLimit)
&& count($pwdGraceUseTime) < (int)$pwdGraceAuthNLimit[0]) { //at least one more grace login available?
$this->config->setUserValue($uid, 'user_ldap', 'needsPasswordReset', 'true');
- header('Location: '.\OC::$server->getURLGenerator()->linkToRouteAbsolute(
+ header('Location: ' . \OC::$server->getURLGenerator()->linkToRouteAbsolute(
'user_ldap.renewPassword.showRenewPasswordForm', ['user' => $uid]));
} else { //no more grace login available
- header('Location: '.\OC::$server->getURLGenerator()->linkToRouteAbsolute(
+ header('Location: ' . \OC::$server->getURLGenerator()->linkToRouteAbsolute(
'user_ldap.renewPassword.showLoginFormInvalidPassword', ['user' => $uid]));
}
exit();
@@ -856,7 +856,7 @@ class User {
//handle pwdReset attribute
if (!empty($pwdReset) && $pwdReset[0] === 'TRUE') { //user must change his password
$this->config->setUserValue($uid, 'user_ldap', 'needsPasswordReset', 'true');
- header('Location: '.\OC::$server->getURLGenerator()->linkToRouteAbsolute(
+ header('Location: ' . \OC::$server->getURLGenerator()->linkToRouteAbsolute(
'user_ldap.renewPassword.showRenewPasswordForm', ['user' => $uid]));
exit();
}
@@ -868,7 +868,7 @@ class User {
$pwdExpireWarningInt = (int)$pwdExpireWarning[0];
if ($pwdMaxAgeInt > 0 && $pwdExpireWarningInt > 0) {
$pwdChangedTimeDt = \DateTime::createFromFormat('YmdHisZ', $pwdChangedTime[0]);
- $pwdChangedTimeDt->add(new \DateInterval('PT'.$pwdMaxAgeInt.'S'));
+ $pwdChangedTimeDt->add(new \DateInterval('PT' . $pwdMaxAgeInt . 'S'));
$currentDateTime = new \DateTime();
$secondsToExpiry = $pwdChangedTimeDt->getTimestamp() - $currentDateTime->getTimestamp();
if ($secondsToExpiry <= $pwdExpireWarningInt) {
diff --git a/apps/user_ldap/lib/UserPluginManager.php b/apps/user_ldap/lib/UserPluginManager.php
index ddf23ddfe3e..4a36794bca5 100644
--- a/apps/user_ldap/lib/UserPluginManager.php
+++ b/apps/user_ldap/lib/UserPluginManager.php
@@ -43,12 +43,12 @@ class UserPluginManager {
foreach ($this->which as $action => $v) {
if (is_int($action) && (bool)($respondToActions & $action)) {
$this->which[$action] = $plugin;
- \OCP\Server::get(LoggerInterface::class)->debug('Registered action '.$action.' to plugin '.get_class($plugin), ['app' => 'user_ldap']);
+ \OCP\Server::get(LoggerInterface::class)->debug('Registered action ' . $action . ' to plugin ' . get_class($plugin), ['app' => 'user_ldap']);
}
}
if (method_exists($plugin, 'deleteUser')) {
$this->which['deleteUser'] = $plugin;
- \OCP\Server::get(LoggerInterface::class)->debug('Registered action deleteUser to plugin '.get_class($plugin), ['app' => 'user_ldap']);
+ \OCP\Server::get(LoggerInterface::class)->debug('Registered action deleteUser to plugin ' . get_class($plugin), ['app' => 'user_ldap']);
}
}
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php
index b1065fcf7a7..e34f0fcb185 100644
--- a/apps/user_ldap/lib/User_LDAP.php
+++ b/apps/user_ldap/lib/User_LDAP.php
@@ -217,7 +217,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
*/
public function getUsers($search = '', $limit = 10, $offset = 0) {
$search = $this->access->escapeFilterPart($search, true);
- $cachekey = 'getUsers-'.$search.'-'.$limit.'-'.$offset;
+ $cachekey = 'getUsers-' . $search . '-' . $limit . '-' . $offset;
//check if users are cached, if so return
$ldap_users = $this->access->connection->getFromCache($cachekey);
@@ -237,7 +237,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
]);
$this->logger->debug(
- 'getUsers: Options: search '.$search.' limit '.$limit.' offset '.$offset.' Filter: '.$filter,
+ 'getUsers: Options: search ' . $search . ' limit ' . $limit . ' offset ' . $offset . ' Filter: ' . $filter,
['app' => 'user_ldap']
);
//do the search and translate results to Nextcloud names
@@ -247,7 +247,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
$limit, $offset);
$ldap_users = $this->access->nextcloudUserNames($ldap_users);
$this->logger->debug(
- 'getUsers: '.count($ldap_users). ' Users found',
+ 'getUsers: ' . count($ldap_users) . ' Users found',
['app' => 'user_ldap']
);
@@ -318,7 +318,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
* @throws \Exception when connection could not be established
*/
public function userExists($uid) {
- $userExists = $this->access->connection->getFromCache('userExists'.$uid);
+ $userExists = $this->access->connection->getFromCache('userExists' . $uid);
if (!is_null($userExists)) {
return (bool)$userExists;
}
@@ -326,14 +326,14 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
if (!$userExists) {
$this->logger->debug(
- 'No DN found for '.$uid.' on '.$this->access->connection->ldapHost,
+ 'No DN found for ' . $uid . ' on ' . $this->access->connection->ldapHost,
['app' => 'user_ldap']
);
- $this->access->connection->writeToCache('userExists'.$uid, false);
+ $this->access->connection->writeToCache('userExists' . $uid, false);
return false;
}
- $this->access->connection->writeToCache('userExists'.$uid, true);
+ $this->access->connection->writeToCache('userExists' . $uid, true);
return true;
}
@@ -367,7 +367,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
}
if (!$marked) {
$this->logger->notice(
- 'User '.$uid . ' is not marked as deleted, not cleaning up.',
+ 'User ' . $uid . ' is not marked as deleted, not cleaning up.',
['app' => 'user_ldap']
);
return false;
@@ -400,7 +400,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
return $this->userPluginManager->getHome($uid);
}
- $cacheKey = 'getHome'.$uid;
+ $cacheKey = 'getHome' . $uid;
$path = $this->access->connection->getFromCache($cacheKey);
if (!is_null($path)) {
return $path;
@@ -432,7 +432,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
return false;
}
- $cacheKey = 'getDisplayName'.$uid;
+ $cacheKey = 'getDisplayName' . $uid;
if (!is_null($displayName = $this->access->connection->getFromCache($cacheKey))) {
return $displayName;
}
@@ -495,7 +495,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
* @return array an array of all displayNames (value) and the corresponding uids (key)
*/
public function getDisplayNames($search = '', $limit = null, $offset = null) {
- $cacheKey = 'getDisplayNames-'.$search.'-'.$limit.'-'.$offset;
+ $cacheKey = 'getDisplayNames-' . $search . '-' . $limit . '-' . $offset;
if (!is_null($displayNames = $this->access->connection->getFromCache($cacheKey))) {
return $displayNames;
}
@@ -546,7 +546,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
}
$filter = $this->access->getFilterForUserCount();
- $cacheKey = 'countUsers-'.$filter;
+ $cacheKey = 'countUsers-' . $filter;
if (!is_null($entries = $this->access->connection->getFromCache($cacheKey))) {
return $entries;
}
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php
index fd5f12ce0cf..87f0d04f497 100644
--- a/apps/user_ldap/lib/Wizard.php
+++ b/apps/user_ldap/lib/Wizard.php
@@ -37,7 +37,7 @@ class Wizard extends LDAPUtility {
public function __construct(
Configuration $configuration,
ILDAPWrapper $ldap,
- Access $access
+ Access $access,
) {
parent::__construct($ldap);
$this->configuration = $configuration;
@@ -262,7 +262,7 @@ class Wizard extends LDAPUtility {
$this->applyFind('ldap_email_attr', $winner);
if ($writeLog) {
$this->logger->info(
- 'The mail attribute has automatically been reset, '.
+ 'The mail attribute has automatically been reset, ' .
'because the original value did not return any results.',
['app' => 'user_ldap']
);
@@ -402,7 +402,7 @@ class Wizard extends LDAPUtility {
$filterParts = [];
foreach ($obclasses as $obclass) {
- $filterParts[] = 'objectclass='.$obclass;
+ $filterParts[] = 'objectclass=' . $obclass;
}
//we filter for everything
//- that looks like a group and
@@ -647,7 +647,7 @@ class Wizard extends LDAPUtility {
$p = $setting['port'];
$t = $setting['tls'];
$this->logger->debug(
- 'Wiz: trying port '. $p . ', TLS '. $t,
+ 'Wiz: trying port ' . $p . ', TLS ' . $t,
['app' => 'user_ldap']
);
//connectAndBind may throw Exception, it needs to be caught by the
@@ -755,7 +755,7 @@ class Wizard extends LDAPUtility {
//removes Port from Host
if (is_array($hostInfo) && isset($hostInfo['port'])) {
$port = $hostInfo['port'];
- $host = str_replace(':'.$port, '', $host);
+ $host = str_replace(':' . $port, '', $host);
$this->applyFind('ldap_host', $host);
$this->applyFind('ldap_port', (string)$port);
}
@@ -824,7 +824,7 @@ class Wizard extends LDAPUtility {
$errorNo = $this->ldap->errno($cr);
$errorMsg = $this->ldap->error($cr);
$this->logger->info(
- 'Wiz: Could not search base '.$base.' Error '.$errorNo.': '.$errorMsg,
+ 'Wiz: Could not search base ' . $base . ' Error ' . $errorNo . ': ' . $errorMsg,
['app' => 'user_ldap']
);
return false;
@@ -902,7 +902,7 @@ class Wizard extends LDAPUtility {
$filterPart = '(memberof=' . ldap_escape($dn, '', LDAP_ESCAPE_FILTER) . ')';
if (isset($attrs['primaryGroupToken'])) {
$pgt = $attrs['primaryGroupToken'][0];
- $primaryFilterPart = '(primaryGroupID=' . ldap_escape($pgt, '', LDAP_ESCAPE_FILTER) .')';
+ $primaryFilterPart = '(primaryGroupID=' . ldap_escape($pgt, '', LDAP_ESCAPE_FILTER) . ')';
$filterPart = '(|' . $filterPart . $primaryFilterPart . ')';
}
$filter .= $filterPart;
@@ -1002,12 +1002,12 @@ class Wizard extends LDAPUtility {
$filterLogin .= ')';
}
- $filter = '(&'.$ulf.$filterLogin.')';
+ $filter = '(&' . $ulf . $filterLogin . ')';
break;
}
$this->logger->debug(
- 'Wiz: Final filter '.$filter,
+ 'Wiz: Final filter ' . $filter,
['app' => 'user_ldap']
);
@@ -1069,7 +1069,7 @@ class Wizard extends LDAPUtility {
if ($login === true) {
$this->logger->debug(
- 'Wiz: Bind successful to Port '. $port . ' TLS ' . (int)$tls,
+ 'Wiz: Bind successful to Port ' . $port . ' TLS ' . (int)$tls,
['app' => 'user_ldap']
);
return true;
@@ -1203,7 +1203,7 @@ class Wizard extends LDAPUtility {
}
$p = 'objectclass=';
foreach ($objectclasses as $key => $value) {
- $objectclasses[$key] = $p.$value;
+ $objectclasses[$key] = $p . $value;
}
$maxEntryObjC = '';
diff --git a/apps/user_ldap/templates/part.wizard-server.php b/apps/user_ldap/templates/part.wizard-server.php
index 94bd59f7b96..9fb67342247 100644
--- a/apps/user_ldap/templates/part.wizard-server.php
+++ b/apps/user_ldap/templates/part.wizard-server.php
@@ -15,7 +15,7 @@ $sel = ' selected';
foreach ($_['serverConfigurationPrefixes'] as $prefix) {
?>
<option value="<?php p($prefix); ?>"<?php p($sel);
- $sel = ''; ?>><?php p($l->t('%s. Server:', [$i++])); ?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
+ $sel = ''; ?>><?php p($l->t('%s. Server:', [$i++])); ?> <?php p(' ' . $_['serverConfigurationHosts'][$prefix]); ?></option>
<?php
}
?>
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index 4be24095e99..9117a9f533c 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -73,7 +73,7 @@ style('user_ldap', 'settings');
</ul>
<?php
if (!function_exists('ldap_connect')) {
- print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>');
+ print_unescaped('<p class="ldapwarning">' . $l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.') . '</p>');
}
?>
<?php require_once __DIR__ . '/part.wizard-server.php'; ?>
diff --git a/apps/user_ldap/tests/AccessTest.php b/apps/user_ldap/tests/AccessTest.php
index 79c0f3216a2..a9eeceeb86b 100644
--- a/apps/user_ldap/tests/AccessTest.php
+++ b/apps/user_ldap/tests/AccessTest.php
@@ -526,7 +526,7 @@ class AccessTest extends TestCase {
$base,
$fakeConnection,
$fakeSearchResultResource,
- $fakeLdapEntries
+ $fakeLdapEntries,
) {
$this->connection
->expects($this->any())
diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php
index 58006627410..13c5d35dce4 100644
--- a/apps/user_ldap/tests/Group_LDAPTest.php
+++ b/apps/user_ldap/tests/Group_LDAPTest.php
@@ -1033,10 +1033,10 @@ class Group_LDAPTest extends TestCase {
$this->assertTrue(str_contains($filter, $groupFilter));
}
[$memberFilter] = explode('&', $filter);
- if ($memberFilter === 'member='.$dn) {
+ if ($memberFilter === 'member=' . $dn) {
return [$group1, $group2];
return [];
- } elseif ($memberFilter === 'member='.$group2['dn'][0]) {
+ } elseif ($memberFilter === 'member=' . $group2['dn'][0]) {
return [$group3];
} else {
return [];
diff --git a/apps/user_ldap/tests/Integration/Bootstrap.php b/apps/user_ldap/tests/Integration/Bootstrap.php
index 872e06139ff..1e270aa6f8a 100644
--- a/apps/user_ldap/tests/Integration/Bootstrap.php
+++ b/apps/user_ldap/tests/Integration/Bootstrap.php
@@ -4,5 +4,5 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
define('CLI_TEST_RUN', true);
-require_once __DIR__ . '/../../../../lib/base.php';
+require_once __DIR__ . '/../../../../lib/base.php';
require_once __DIR__ . '/setup-scripts/config.php';
diff --git a/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php b/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
index f42c6d4bccd..4618179f8ab 100644
--- a/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
+++ b/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
@@ -77,7 +77,7 @@ class ExceptionOnLostConnection {
* @throws \Exception
*/
public function setUp(): void {
- require_once __DIR__ . '/../../../../lib/base.php';
+ require_once __DIR__ . '/../../../../lib/base.php';
\OC_App::loadApps(['user_ldap']);
$ch = $this->getCurl();
diff --git a/apps/user_ldap/tests/Settings/AdminTest.php b/apps/user_ldap/tests/Settings/AdminTest.php
index e06563d1856..099cc09c068 100644
--- a/apps/user_ldap/tests/Settings/AdminTest.php
+++ b/apps/user_ldap/tests/Settings/AdminTest.php
@@ -52,7 +52,7 @@ class AdminTest extends TestCase {
$config = new Configuration('', false);
$defaults = $config->getDefaults();
foreach ($defaults as $key => $default) {
- $parameters[$key.'_default'] = $default;
+ $parameters[$key . '_default'] = $default;
}
$expected = new TemplateResponse('user_ldap', 'settings', $parameters);
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php
index aca4e2434e2..d596402d322 100644
--- a/apps/user_ldap/tests/User/UserTest.php
+++ b/apps/user_ldap/tests/User/UserTest.php
@@ -1110,7 +1110,7 @@ class UserTest extends \Test\TestCase {
if ($base === $this->dn) {
return [
[
- 'pwdchangedtime' => [(new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis').'Z'],
+ 'pwdchangedtime' => [(new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis') . 'Z'],
'pwdgraceusetime' => [],
],
];
@@ -1174,7 +1174,7 @@ class UserTest extends \Test\TestCase {
return [
[
'pwdpolicysubentry' => ['cn=custom,ou=policies,dc=foo,dc=bar'],
- 'pwdchangedtime' => [(new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis').'Z'],
+ 'pwdchangedtime' => [(new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis') . 'Z'],
'pwdgraceusetime' => [],
]
];
diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php
index 90166beccff..f766c7f583a 100644
--- a/apps/user_ldap/tests/User_LDAPTest.php
+++ b/apps/user_ldap/tests/User_LDAPTest.php
@@ -654,7 +654,7 @@ class User_LDAPTest extends TestCase {
$this->prepareMockForUserExists();
$dataDir = \OC::$server->getConfig()->getSystemValue(
- 'datadirectory', \OC::$SERVERROOT.'/data');
+ 'datadirectory', \OC::$SERVERROOT . '/data');
$this->connection->expects($this->any())
->method('__get')
@@ -689,7 +689,7 @@ class User_LDAPTest extends TestCase {
->willReturn('dnOfLadyOfShadows,dc=test');
$user->expects($this->any())
->method('getHomePath')
- ->willReturn($dataDir.'/susannah/');
+ ->willReturn($dataDir . '/susannah/');
$this->userManager->expects($this->atLeastOnce())
->method('get')
@@ -701,7 +701,7 @@ class User_LDAPTest extends TestCase {
/** @noinspection PhpUnhandledExceptionInspection */
$result = $backend->getHome('ladyofshadows');
- $this->assertEquals($dataDir.'/susannah/', $result);
+ $this->assertEquals($dataDir . '/susannah/', $result);
}
@@ -1078,11 +1078,11 @@ class User_LDAPTest extends TestCase {
$this->connection->expects($this->exactly(2))
->method('getFromCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName))
+ ->with($this->equalTo('loginName2UserName-' . $loginName))
->willReturnOnConsecutiveCalls(null, $username);
$this->connection->expects($this->once())
->method('writeToCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName), $this->equalTo($username));
+ ->with($this->equalTo('loginName2UserName-' . $loginName), $this->equalTo($username));
$backend = new UserLDAP($this->access, $this->notificationManager, $this->pluginManager, $this->logger, $this->deletedUsersIndex);
$user = $this->createMock(User::class);
@@ -1121,11 +1121,11 @@ class User_LDAPTest extends TestCase {
$this->connection->expects($this->exactly(2))
->method('getFromCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName))
+ ->with($this->equalTo('loginName2UserName-' . $loginName))
->willReturnOnConsecutiveCalls(null, false);
$this->connection->expects($this->once())
->method('writeToCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName), false);
+ ->with($this->equalTo('loginName2UserName-' . $loginName), false);
$this->userManager->expects($this->any())
->method('getAttributes')
@@ -1154,11 +1154,11 @@ class User_LDAPTest extends TestCase {
$this->connection->expects($this->exactly(2))
->method('getFromCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName))
+ ->with($this->equalTo('loginName2UserName-' . $loginName))
->willReturnOnConsecutiveCalls(null, false);
$this->connection->expects($this->once())
->method('writeToCache')
- ->with($this->equalTo('loginName2UserName-'.$loginName), $this->equalTo(false));
+ ->with($this->equalTo('loginName2UserName-' . $loginName), $this->equalTo(false));
$this->userManager->expects($this->any())
->method('get')
@@ -1196,7 +1196,7 @@ class User_LDAPTest extends TestCase {
$this->connection->expects($this->any())
->method('getFromCache')
->willReturnCallback(function ($uid) {
- if ($uid === 'userExists'.'roland') {
+ if ($uid === 'userExists' . 'roland') {
return true;
}
return null;
diff --git a/apps/user_status/lib/ContactsMenu/StatusProvider.php b/apps/user_status/lib/ContactsMenu/StatusProvider.php
index 023b4402fc2..6a6949b46ba 100644
--- a/apps/user_status/lib/ContactsMenu/StatusProvider.php
+++ b/apps/user_status/lib/ContactsMenu/StatusProvider.php
@@ -19,7 +19,9 @@ use function array_map;
class StatusProvider implements IBulkProvider {
- public function __construct(private StatusService $statusService) {
+ public function __construct(
+ private StatusService $statusService,
+ ) {
}
public function process(array $entries): void {
diff --git a/apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php b/apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php
index 8b639169b07..49ac93573dd 100644
--- a/apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php
+++ b/apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php
@@ -46,7 +46,7 @@ class BeforeTemplateRenderedListener implements IEventListener {
ProfileManager $profileManager,
IUserSession $userSession,
IInitialStateService $initialState,
- JSDataService $jsDataService
+ JSDataService $jsDataService,
) {
$this->profileManager = $profileManager;
$this->userSession = $userSession;
diff --git a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php
index 23dec452928..6337d637896 100644
--- a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php
+++ b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php
@@ -28,9 +28,11 @@ use OCP\UserStatus\IUserStatus;
*
*/
class OutOfOfficeStatusListener implements IEventListener {
- public function __construct(private IJobList $jobsList,
+ public function __construct(
+ private IJobList $jobsList,
private ITimeFactory $time,
- private IManager $manager) {
+ private IManager $manager,
+ ) {
}
/**
diff --git a/apps/user_status/lib/Listener/UserLiveStatusListener.php b/apps/user_status/lib/Listener/UserLiveStatusListener.php
index ea8d995b8a3..79305a99b05 100644
--- a/apps/user_status/lib/Listener/UserLiveStatusListener.php
+++ b/apps/user_status/lib/Listener/UserLiveStatusListener.php
@@ -33,11 +33,13 @@ class UserLiveStatusListener implements IEventListener {
private StatusService $statusService;
private ITimeFactory $timeFactory;
- public function __construct(UserStatusMapper $mapper,
+ public function __construct(
+ UserStatusMapper $mapper,
StatusService $statusService,
ITimeFactory $timeFactory,
private CalendarStatusService $calendarStatusService,
- private LoggerInterface $logger) {
+ private LoggerInterface $logger,
+ ) {
$this->mapper = $mapper;
$this->statusService = $statusService;
$this->timeFactory = $timeFactory;
diff --git a/apps/user_status/lib/Migration/Version1008Date20230921144701.php b/apps/user_status/lib/Migration/Version1008Date20230921144701.php
index 561dfd343cf..30ebbf37b0e 100644
--- a/apps/user_status/lib/Migration/Version1008Date20230921144701.php
+++ b/apps/user_status/lib/Migration/Version1008Date20230921144701.php
@@ -18,7 +18,9 @@ use OCP\Migration\SimpleMigrationStep;
class Version1008Date20230921144701 extends SimpleMigrationStep {
- public function __construct(private IDBConnection $connection) {
+ public function __construct(
+ private IDBConnection $connection,
+ ) {
}
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
diff --git a/apps/user_status/tests/bootstrap.php b/apps/user_status/tests/bootstrap.php
index 6abfa601943..c24f86c7cbe 100644
--- a/apps/user_status/tests/bootstrap.php
+++ b/apps/user_status/tests/bootstrap.php
@@ -10,7 +10,7 @@ if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
-require_once __DIR__.'/../../../lib/base.php';
+require_once __DIR__ . '/../../../lib/base.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
diff --git a/apps/weather_status/lib/Service/WeatherStatusService.php b/apps/weather_status/lib/Service/WeatherStatusService.php
index 1ffb3e5cff2..9d9972e84ef 100644
--- a/apps/weather_status/lib/Service/WeatherStatusService.php
+++ b/apps/weather_status/lib/Service/WeatherStatusService.php
@@ -49,7 +49,7 @@ class WeatherStatusService {
private IUserManager $userManager,
private IAppManager $appManager,
private ICacheFactory $cacheFactory,
- private ?string $userId
+ private ?string $userId,
) {
$this->version = $appManager->getAppVersion(Application::APP_ID);
$this->client = $clientService->newClient();
diff --git a/apps/webhook_listeners/lib/BackgroundJobs/WebhookCall.php b/apps/webhook_listeners/lib/BackgroundJobs/WebhookCall.php
index efc9401f44f..c78be6e4e6b 100644
--- a/apps/webhook_listeners/lib/BackgroundJobs/WebhookCall.php
+++ b/apps/webhook_listeners/lib/BackgroundJobs/WebhookCall.php
@@ -81,12 +81,12 @@ class WebhookCall extends QueuedJob {
}
$statusCode = $response->getStatusCode();
if ($statusCode >= 200 && $statusCode < 300) {
- $this->logger->debug('Webhook returned status code '.$statusCode, ['body' => $response->getBody()]);
+ $this->logger->debug('Webhook returned status code ' . $statusCode, ['body' => $response->getBody()]);
} else {
- $this->logger->warning('Webhook(' . $webhookId . ') returned unexpected status code '.$statusCode, ['body' => $response->getBody()]);
+ $this->logger->warning('Webhook(' . $webhookId . ') returned unexpected status code ' . $statusCode, ['body' => $response->getBody()]);
}
} catch (\Exception $e) {
- $this->logger->error('Webhook(' . $webhookId . ') call failed: '.$e->getMessage(), ['exception' => $e]);
+ $this->logger->error('Webhook(' . $webhookId . ') call failed: ' . $e->getMessage(), ['exception' => $e]);
}
}
}
diff --git a/apps/webhook_listeners/lib/Db/WebhookListener.php b/apps/webhook_listeners/lib/Db/WebhookListener.php
index fd592fda169..4f226a3407c 100644
--- a/apps/webhook_listeners/lib/Db/WebhookListener.php
+++ b/apps/webhook_listeners/lib/Db/WebhookListener.php
@@ -118,7 +118,7 @@ class WebhookListener extends Entity implements \JsonSerializable {
public function setAuthDataClear(
#[\SensitiveParameter]
- ?array $data
+ ?array $data,
): void {
if ($data === null) {
if ($this->getAuthMethodEnum() === AuthMethod::Header) {
diff --git a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php
index c0d96891ecc..75456cc0b75 100644
--- a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php
+++ b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php
@@ -256,6 +256,6 @@ class WebhookListenerMapper extends QBMapper {
}
private function buildCacheKey(?string $userIdFilter): string {
- return self::EVENTS_CACHE_KEY_PREFIX.'_'.($userIdFilter ?? '');
+ return self::EVENTS_CACHE_KEY_PREFIX . '_' . ($userIdFilter ?? '');
}
}
diff --git a/apps/webhook_listeners/lib/Service/PHPMongoQuery.php b/apps/webhook_listeners/lib/Service/PHPMongoQuery.php
index 43429ce9393..d2668d17644 100644
--- a/apps/webhook_listeners/lib/Service/PHPMongoQuery.php
+++ b/apps/webhook_listeners/lib/Service/PHPMongoQuery.php
@@ -76,7 +76,7 @@ abstract class PHPMongoQuery {
*/
private static function _executeQuery(array $query, array &$document, array $options = [], string $logicalOperator = '$and'): bool {
if ($logicalOperator !== '$and' && (!count($query) || !isset($query[0]))) {
- throw new Exception($logicalOperator.' requires nonempty array');
+ throw new Exception($logicalOperator . ' requires nonempty array');
}
if ($options['_debug'] && $options['_shouldLog']) {
$options['logger']->debug('_executeQuery called', ['query' => $query, 'document' => $document, 'logicalOperator' => $logicalOperator]);
@@ -180,7 +180,7 @@ abstract class PHPMongoQuery {
return in_array($operatorValue, $v);
}
if (is_string($operatorValue) && preg_match('/^\/(.*?)\/([a-z]*)$/i', $operatorValue, $matches)) {
- return (bool)preg_match('/'.$matches[1].'/'.$matches[2], $v);
+ return (bool)preg_match('/' . $matches[1] . '/' . $matches[2], $v);
}
return $operatorValue === $v;
}
@@ -303,15 +303,15 @@ abstract class PHPMongoQuery {
default:
if (empty($options['unknownOperatorCallback']) || !is_callable($options['unknownOperatorCallback'])) {
- throw new Exception('Operator '.$operator.' is unknown');
+ throw new Exception('Operator ' . $operator . ' is unknown');
}
$res = call_user_func($options['unknownOperatorCallback'], $operator, $operatorValue, $element, $document);
if ($res === null) {
- throw new Exception('Operator '.$operator.' is unknown');
+ throw new Exception('Operator ' . $operator . ' is unknown');
}
if (!is_bool($res)) {
- throw new Exception('Return value of unknownOperatorCallback must be boolean, actual value '.$res);
+ throw new Exception('Return value of unknownOperatorCallback must be boolean, actual value ' . $res);
}
return $res;
}
diff --git a/apps/workflowengine/lib/Check/FileSystemTags.php b/apps/workflowengine/lib/Check/FileSystemTags.php
index ca81eb828dc..e8d27c1c4ad 100644
--- a/apps/workflowengine/lib/Check/FileSystemTags.php
+++ b/apps/workflowengine/lib/Check/FileSystemTags.php
@@ -47,7 +47,7 @@ class FileSystemTags implements ICheck, IFileCheck {
ISystemTagManager $systemTagManager,
ISystemTagObjectMapper $systemTagObjectMapper,
IUserSession $userSession,
- IGroupManager $groupManager
+ IGroupManager $groupManager,
) {
$this->l = $l;
$this->systemTagManager = $systemTagManager;
diff --git a/apps/workflowengine/lib/Controller/AWorkflowController.php b/apps/workflowengine/lib/Controller/AWorkflowController.php
index a738d55dae8..6863cd12ab5 100644
--- a/apps/workflowengine/lib/Controller/AWorkflowController.php
+++ b/apps/workflowengine/lib/Controller/AWorkflowController.php
@@ -32,7 +32,7 @@ abstract class AWorkflowController extends OCSController {
$appName,
IRequest $request,
Manager $manager,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($appName, $request);
@@ -92,7 +92,7 @@ abstract class AWorkflowController extends OCSController {
array $checks,
string $operation,
string $entity,
- array $events
+ array $events,
): DataResponse {
$context = $this->getScopeContext();
try {
@@ -121,7 +121,7 @@ abstract class AWorkflowController extends OCSController {
array $checks,
string $operation,
string $entity,
- array $events
+ array $events,
): DataResponse {
try {
$context = $this->getScopeContext();
diff --git a/apps/workflowengine/lib/Controller/UserWorkflowsController.php b/apps/workflowengine/lib/Controller/UserWorkflowsController.php
index 10197a6f117..a615a280f32 100644
--- a/apps/workflowengine/lib/Controller/UserWorkflowsController.php
+++ b/apps/workflowengine/lib/Controller/UserWorkflowsController.php
@@ -33,7 +33,7 @@ class UserWorkflowsController extends AWorkflowController {
IRequest $request,
Manager $manager,
IUserSession $session,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($appName, $request, $manager, $logger);
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index 25cefcd9314..f9234926e4d 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -68,7 +68,7 @@ class File implements IEntity, IDisplayText, IUrl, IIcon, IContextPortation {
ISystemTagManager $tagManager,
IUserManager $userManager,
UserMountCache $userMountCache,
- IMountManager $mountManager
+ IMountManager $mountManager,
) {
$this->l10n = $l10n;
$this->urlGenerator = $urlGenerator;
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php
index b51e85bdea7..f03f84a33c0 100644
--- a/apps/workflowengine/lib/Manager.php
+++ b/apps/workflowengine/lib/Manager.php
@@ -238,7 +238,7 @@ class Manager implements IManager {
array $checkIds,
string $operation,
string $entity,
- array $events
+ array $events,
): int {
$query = $this->connection->getQueryBuilder();
$query->insert('flow_operations')
@@ -273,7 +273,7 @@ class Manager implements IManager {
string $operation,
ScopeContext $scope,
string $entity,
- array $events
+ array $events,
) {
$this->validateOperation($class, $name, $checks, $operation, $scope, $entity, $events);
@@ -342,7 +342,7 @@ class Manager implements IManager {
string $operation,
ScopeContext $scopeContext,
string $entity,
- array $events
+ array $events,
): array {
if (!$this->canModify($id, $scopeContext)) {
throw new \DomainException('Target operation not within scope');
diff --git a/apps/workflowengine/lib/Service/Logger.php b/apps/workflowengine/lib/Service/Logger.php
index 13ac36659e5..494240bc403 100644
--- a/apps/workflowengine/lib/Service/Logger.php
+++ b/apps/workflowengine/lib/Service/Logger.php
@@ -128,7 +128,7 @@ class Logger {
protected function log(
string $message,
array $context,
- LogContext $logContext
+ LogContext $logContext,
): void {
if (!isset($context['app'])) {
$context['app'] = Application::APP_ID;
diff --git a/apps/workflowengine/lib/Service/RuleMatcher.php b/apps/workflowengine/lib/Service/RuleMatcher.php
index 1712b3b2a32..46758456205 100644
--- a/apps/workflowengine/lib/Service/RuleMatcher.php
+++ b/apps/workflowengine/lib/Service/RuleMatcher.php
@@ -53,7 +53,7 @@ class RuleMatcher implements IRuleMatcher {
IServerContainer $container,
IL10N $l,
Manager $manager,
- Logger $logger
+ Logger $logger,
) {
$this->session = $session;
$this->manager = $manager;
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php
index 390682a2f06..8b875db043c 100644
--- a/apps/workflowengine/lib/Settings/ASettings.php
+++ b/apps/workflowengine/lib/Settings/ASettings.php
@@ -41,7 +41,7 @@ abstract class ASettings implements ISettings {
Manager $manager,
IInitialState $initialStateService,
IConfig $config,
- IURLGenerator $urlGenerator
+ IURLGenerator $urlGenerator,
) {
$this->appName = $appName;
$this->l10n = $l;