]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore: apply changes from Nextcloud coding standards 1.1.1 39271/head
authorJoas Schilling <coding@schilljs.com>
Thu, 23 Nov 2023 09:22:34 +0000 (10:22 +0100)
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Thu, 23 Nov 2023 09:36:13 +0000 (10:36 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
805 files changed:
apps/admin_audit/lib/Actions/Action.php
apps/admin_audit/lib/Actions/UserManagement.php
apps/admin_audit/lib/AppInfo/Application.php
apps/admin_audit/lib/BackgroundJobs/Rotate.php
apps/cloud_federation_api/appinfo/routes.php
apps/cloud_federation_api/lib/ResponseDefinitions.php
apps/comments/lib/AppInfo/Application.php
apps/comments/lib/Controller/NotificationsController.php
apps/comments/lib/Search/LegacyProvider.php
apps/contactsinteraction/lib/Db/CardSearchDao.php
apps/contactsinteraction/lib/Db/RecentContactMapper.php
apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php
apps/dashboard/lib/Controller/DashboardApiController.php
apps/dashboard/lib/ResponseDefinitions.php
apps/dav/appinfo/v1/caldav.php
apps/dav/lib/AppInfo/Application.php
apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php
apps/dav/lib/BackgroundJob/CalendarRetentionJob.php
apps/dav/lib/BackgroundJob/EventReminderJob.php
apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php
apps/dav/lib/BackgroundJob/PruneOutdatedSyncTokensJob.php
apps/dav/lib/BackgroundJob/RegisterRegenerateBirthdayCalendars.php
apps/dav/lib/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJob.php
apps/dav/lib/BackgroundJob/UploadCleanup.php
apps/dav/lib/BackgroundJob/UserStatusAutomation.php
apps/dav/lib/BulkUpload/BulkUploadPlugin.php
apps/dav/lib/BulkUpload/MultipartRequestParser.php
apps/dav/lib/CalDAV/AppCalendar/AppCalendar.php
apps/dav/lib/CalDAV/AppCalendar/AppCalendarPlugin.php
apps/dav/lib/CalDAV/AppCalendar/CalendarObject.php
apps/dav/lib/CalDAV/BirthdayService.php
apps/dav/lib/CalDAV/CalendarImpl.php
apps/dav/lib/CalDAV/CalendarObject.php
apps/dav/lib/CalDAV/EventComparisonService.php
apps/dav/lib/CalDAV/FreeBusy/FreeBusyGenerator.php
apps/dav/lib/CalDAV/PublicCalendarRoot.php
apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
apps/dav/lib/CalDAV/Reminder/Backend.php
apps/dav/lib/CalDAV/Reminder/INotificationProvider.php
apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php
apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
apps/dav/lib/CalDAV/Reminder/Notifier.php
apps/dav/lib/CalDAV/Reminder/ReminderService.php
apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php
apps/dav/lib/CalDAV/ResourceBooking/ResourcePrincipalBackend.php
apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php
apps/dav/lib/CalDAV/RetentionService.php
apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
apps/dav/lib/CalDAV/Schedule/IMipService.php
apps/dav/lib/CalDAV/Schedule/Plugin.php
apps/dav/lib/CalDAV/Status/Status.php
apps/dav/lib/CalDAV/Status/StatusService.php
apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObject.php
apps/dav/lib/CalDAV/Trashbin/DeletedCalendarObjectsCollection.php
apps/dav/lib/CalDAV/Trashbin/Plugin.php
apps/dav/lib/CalDAV/Trashbin/TrashbinHome.php
apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
apps/dav/lib/CardDAV/Activity/Backend.php
apps/dav/lib/CardDAV/Activity/Provider/Addressbook.php
apps/dav/lib/CardDAV/Activity/Provider/Base.php
apps/dav/lib/CardDAV/Activity/Provider/Card.php
apps/dav/lib/CardDAV/AddressBookImpl.php
apps/dav/lib/CardDAV/AddressBookRoot.php
apps/dav/lib/CardDAV/Card.php
apps/dav/lib/CardDAV/CardDavBackend.php
apps/dav/lib/CardDAV/Converter.php
apps/dav/lib/CardDAV/PhotoCache.php
apps/dav/lib/CardDAV/SyncService.php
apps/dav/lib/CardDAV/SystemAddressbook.php
apps/dav/lib/CardDAV/UserAddressBooks.php
apps/dav/lib/Command/CreateAddressBook.php
apps/dav/lib/Comments/CommentsPlugin.php
apps/dav/lib/Connector/PublicAuth.php
apps/dav/lib/Connector/Sabre/AppleQuirksPlugin.php
apps/dav/lib/Connector/Sabre/Auth.php
apps/dav/lib/Connector/Sabre/BearerAuth.php
apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php
apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php
apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
apps/dav/lib/Connector/Sabre/CopyEtagHeaderPlugin.php
apps/dav/lib/Connector/Sabre/Directory.php
apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php
apps/dav/lib/Connector/Sabre/Exception/Forbidden.php
apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php
apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
apps/dav/lib/Connector/Sabre/FilesPlugin.php
apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
apps/dav/lib/Connector/Sabre/Principal.php
apps/dav/lib/Connector/Sabre/RequestIdHeaderPlugin.php
apps/dav/lib/Connector/Sabre/ServerFactory.php
apps/dav/lib/Connector/Sabre/SharesPlugin.php
apps/dav/lib/Connector/Sabre/TagsPlugin.php
apps/dav/lib/Controller/BirthdayCalendarController.php
apps/dav/lib/Controller/DirectController.php
apps/dav/lib/Controller/InvitationResponseController.php
apps/dav/lib/DAV/GroupPrincipalBackend.php
apps/dav/lib/DAV/Sharing/Backend.php
apps/dav/lib/DAV/Sharing/Plugin.php
apps/dav/lib/DAV/ViewOnlyPlugin.php
apps/dav/lib/Direct/ServerFactory.php
apps/dav/lib/Events/AddressBookCreatedEvent.php
apps/dav/lib/Events/AddressBookDeletedEvent.php
apps/dav/lib/Events/AddressBookShareUpdatedEvent.php
apps/dav/lib/Events/AddressBookUpdatedEvent.php
apps/dav/lib/Events/CachedCalendarObjectCreatedEvent.php
apps/dav/lib/Events/CachedCalendarObjectDeletedEvent.php
apps/dav/lib/Events/CachedCalendarObjectUpdatedEvent.php
apps/dav/lib/Events/CalendarCreatedEvent.php
apps/dav/lib/Events/CalendarDeletedEvent.php
apps/dav/lib/Events/CalendarMovedToTrashEvent.php
apps/dav/lib/Events/CalendarObjectCreatedEvent.php
apps/dav/lib/Events/CalendarObjectDeletedEvent.php
apps/dav/lib/Events/CalendarObjectMovedEvent.php
apps/dav/lib/Events/CalendarObjectMovedToTrashEvent.php
apps/dav/lib/Events/CalendarObjectRestoredEvent.php
apps/dav/lib/Events/CalendarObjectUpdatedEvent.php
apps/dav/lib/Events/CalendarPublishedEvent.php
apps/dav/lib/Events/CalendarRestoredEvent.php
apps/dav/lib/Events/CalendarShareUpdatedEvent.php
apps/dav/lib/Events/CalendarUnpublishedEvent.php
apps/dav/lib/Events/CalendarUpdatedEvent.php
apps/dav/lib/Events/CardCreatedEvent.php
apps/dav/lib/Events/CardDeletedEvent.php
apps/dav/lib/Events/CardMovedEvent.php
apps/dav/lib/Events/CardUpdatedEvent.php
apps/dav/lib/Events/SubscriptionCreatedEvent.php
apps/dav/lib/Events/SubscriptionDeletedEvent.php
apps/dav/lib/Events/SubscriptionUpdatedEvent.php
apps/dav/lib/Files/FileSearchBackend.php
apps/dav/lib/Files/LazySearchBackend.php
apps/dav/lib/HookManager.php
apps/dav/lib/Listener/ActivityUpdaterListener.php
apps/dav/lib/Listener/AddressbookListener.php
apps/dav/lib/Listener/CalendarContactInteractionListener.php
apps/dav/lib/Listener/CalendarDeletionDefaultUpdaterListener.php
apps/dav/lib/Listener/CalendarObjectReminderUpdaterListener.php
apps/dav/lib/Listener/CalendarPublicationListener.php
apps/dav/lib/Listener/CalendarShareUpdateListener.php
apps/dav/lib/Listener/CardListener.php
apps/dav/lib/Listener/OutOfOfficeListener.php
apps/dav/lib/Listener/SubscriptionListener.php
apps/dav/lib/Migration/BuildCalendarSearchIndex.php
apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php
apps/dav/lib/Migration/BuildSocialSearchIndex.php
apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php
apps/dav/lib/Migration/ChunkCleanup.php
apps/dav/lib/Migration/RegenerateBirthdayCalendars.php
apps/dav/lib/Migration/RegisterBuildReminderIndexBackgroundJob.php
apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php
apps/dav/lib/Migration/Version1005Date20180413093149.php
apps/dav/lib/Migration/Version1005Date20180530124431.php
apps/dav/lib/Migration/Version1006Date20180619154313.php
apps/dav/lib/Migration/Version1006Date20180628111625.php
apps/dav/lib/Migration/Version1008Date20181030113700.php
apps/dav/lib/Migration/Version1008Date20181105104826.php
apps/dav/lib/Migration/Version1008Date20181105110300.php
apps/dav/lib/Migration/Version1011Date20190725113607.php
apps/dav/lib/Migration/Version1011Date20190806104428.php
apps/dav/lib/Migration/Version1012Date20190808122342.php
apps/dav/lib/Migration/Version1027Date20230504122946.php
apps/dav/lib/Profiler/ProfilerPlugin.php
apps/dav/lib/RootCollection.php
apps/dav/lib/Search/ACalendarSearchProvider.php
apps/dav/lib/Search/EventsSearchProvider.php
apps/dav/lib/Service/AbsenceService.php
apps/dav/lib/Settings/AvailabilitySettings.php
apps/dav/lib/Settings/CalDAVSettings.php
apps/dav/lib/SystemTag/SystemTagPlugin.php
apps/dav/lib/Upload/RootCollection.php
apps/dav/lib/UserMigration/CalendarMigrator.php
apps/dav/lib/UserMigration/ContactsMigrator.php
apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php
apps/dav/tests/integration/UserMigration/ContactsMigratorTest.php
apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
apps/dav/tests/unit/CalDAV/AppCalendar/CalendarObjectTest.php
apps/dav/tests/unit/CalDAV/EventComparisonServiceTest.php
apps/dav/tests/unit/CalDAV/PublicCalendarTest.php
apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php
apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
apps/dav/tests/unit/CalDAV/Schedule/IMipServiceTest.php
apps/dav/tests/unit/CardDAV/AddressBookTest.php
apps/dav/tests/unit/CardDAV/ConverterTest.php
apps/dav/tests/unit/Connector/PublicAuthTest.php
apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php
apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php
apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
apps/dav/tests/unit/Connector/Sabre/NodeTest.php
apps/dav/tests/unit/DAV/ViewOnlyPluginTest.php
apps/dav/tests/unit/Files/FileSearchBackendTest.php
apps/dav/tests/unit/Files/MultipartRequestParserTest.php
apps/dav/tests/unit/Search/EventsSearchProviderTest.php
apps/dav/tests/unit/Settings/CalDAVSettingsTest.php
apps/dav/tests/unit/Upload/AssemblyStreamTest.php
apps/encryption/lib/Command/DisableMasterKey.php
apps/encryption/lib/Command/EnableMasterKey.php
apps/encryption/lib/Command/FixKeyLocation.php
apps/encryption/lib/Command/RecoverUser.php
apps/encryption/lib/Command/ScanLegacyFormat.php
apps/encryption/lib/Controller/RecoveryController.php
apps/encryption/lib/Controller/SettingsController.php
apps/encryption/lib/Controller/StatusController.php
apps/encryption/lib/Crypto/Crypt.php
apps/encryption/lib/Hooks/UserHooks.php
apps/encryption/lib/Recovery.php
apps/encryption/lib/Users/Setup.php
apps/encryption/templates/settings-admin.php
apps/encryption/templates/settings-personal.php
apps/encryption/tests/Crypto/CryptTest.php
apps/encryption/tests/Hooks/UserHooksTest.php
apps/encryption/tests/KeyManagerTest.php
apps/encryption/tests/Settings/AdminTest.php
apps/federatedfilesharing/lib/AppInfo/Application.php
apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
apps/federatedfilesharing/lib/FederatedShareProvider.php
apps/federatedfilesharing/lib/Migration/Version1010Date20200630191755.php
apps/federatedfilesharing/lib/Migration/Version1011Date20201120125158.php
apps/federatedfilesharing/lib/Settings/Personal.php
apps/federatedfilesharing/tests/AddressHandlerTest.php
apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
apps/federation/lib/BackgroundJob/GetSharedSecret.php
apps/federation/lib/Command/SyncFederationAddressBooks.php
apps/federation/lib/Controller/SettingsController.php
apps/federation/lib/DbHandler.php
apps/federation/lib/Migration/Version1010Date20200630191302.php
apps/federation/lib/SyncFederationAddressBooks.php
apps/federation/lib/SyncJob.php
apps/federation/lib/TrustedServers.php
apps/federation/tests/Middleware/AddServerMiddlewareTest.php
apps/federation/tests/SyncFederationAddressbooksTest.php
apps/federation/tests/TrustedServersTest.php
apps/files/lib/Activity/Provider.php
apps/files/lib/AppInfo/Application.php
apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php
apps/files/lib/BackgroundJob/CleanupFileLocks.php
apps/files/lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php
apps/files/lib/BackgroundJob/TransferOwnership.php
apps/files/lib/Collaboration/Resources/Listener.php
apps/files/lib/Collaboration/Resources/ResourceProvider.php
apps/files/lib/Command/Copy.php
apps/files/lib/Command/Get.php
apps/files/lib/Command/Move.php
apps/files/lib/Command/Object/Delete.php
apps/files/lib/Command/Object/Get.php
apps/files/lib/Command/Object/Put.php
apps/files/lib/Command/Put.php
apps/files/lib/Command/Scan.php
apps/files/lib/Command/TransferOwnership.php
apps/files/lib/Controller/ApiController.php
apps/files/lib/Controller/DirectEditingController.php
apps/files/lib/Controller/TemplateController.php
apps/files/lib/Controller/TransferOwnershipController.php
apps/files/lib/Controller/ViewController.php
apps/files/lib/Event/LoadAdditionalScriptsEvent.php
apps/files/lib/Migration/Version12101Date20221011153334.php
apps/files/lib/Notification/Notifier.php
apps/files/lib/ResponseDefinitions.php
apps/files/lib/Search/FilesSearchProvider.php
apps/files/lib/Service/OwnershipTransferService.php
apps/files/lib/Service/UserConfig.php
apps/files/lib/Service/ViewConfig.php
apps/files/list.php
apps/files/templates/appnavigation.php
apps/files/tests/Activity/ProviderTest.php
apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
apps/files_external/lib/Command/Create.php
apps/files_external/lib/Command/Verify.php
apps/files_external/lib/Config/ConfigAdapter.php
apps/files_external/lib/Config/ExternalMountPoint.php
apps/files_external/lib/Config/SystemMountPoint.php
apps/files_external/lib/Controller/AjaxController.php
apps/files_external/lib/Controller/StoragesController.php
apps/files_external/lib/Lib/Auth/AuthMechanism.php
apps/files_external/lib/Lib/Backend/Backend.php
apps/files_external/lib/Lib/Backend/LegacyBackend.php
apps/files_external/lib/Lib/Storage/AmazonS3.php
apps/files_external/lib/Lib/Storage/SFTP.php
apps/files_external/lib/Lib/Storage/Swift.php
apps/files_external/lib/Listener/LoadAdditionalListener.php
apps/files_external/lib/Migration/Version1011Date20200630192246.php
apps/files_external/lib/ResponseDefinitions.php
apps/files_external/templates/settings.php
apps/files_external/tests/Controller/GlobalStoragesControllerTest.php
apps/files_external/tests/Controller/UserStoragesControllerTest.php
apps/files_external/tests/Listener/StorePasswordListenerTest.php
apps/files_external/tests/PersonalMountTest.php
apps/files_external/tests/sso-setup/apps.config.php
apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
apps/files_reminders/lib/Listener/NodeDeletedListener.php
apps/files_reminders/lib/Listener/UserDeletedListener.php
apps/files_reminders/lib/Notification/Notifier.php
apps/files_reminders/lib/Service/ReminderService.php
apps/files_sharing/lib/Activity/Providers/Base.php
apps/files_sharing/lib/Activity/Providers/Groups.php
apps/files_sharing/lib/Activity/Providers/RemoteShares.php
apps/files_sharing/lib/AppInfo/Application.php
apps/files_sharing/lib/Cache.php
apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php
apps/files_sharing/lib/Command/DeleteOrphanShares.php
apps/files_sharing/lib/Command/ExiprationNotification.php
apps/files_sharing/lib/Controller/DeletedShareAPIController.php
apps/files_sharing/lib/Controller/PublicPreviewController.php
apps/files_sharing/lib/Controller/SettingsController.php
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/lib/Controller/ShareController.php
apps/files_sharing/lib/Controller/ShareInfoController.php
apps/files_sharing/lib/Controller/ShareesAPIController.php
apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
apps/files_sharing/lib/External/MountProvider.php
apps/files_sharing/lib/Listener/LoadAdditionalListener.php
apps/files_sharing/lib/Listener/LoadSidebarListener.php
apps/files_sharing/lib/Middleware/OCSShareAPIMiddleware.php
apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
apps/files_sharing/lib/Migration/OwncloudGuestShareType.php
apps/files_sharing/lib/Migration/Version11300Date20201120141438.php
apps/files_sharing/lib/Migration/Version21000Date20201223143245.php
apps/files_sharing/lib/Migration/Version24000Date20220208195521.php
apps/files_sharing/lib/MountProvider.php
apps/files_sharing/lib/Notification/Notifier.php
apps/files_sharing/lib/ResponseDefinitions.php
apps/files_sharing/lib/SharedMount.php
apps/files_sharing/lib/SharedStorage.php
apps/files_sharing/lib/Updater.php
apps/files_sharing/templates/public.php
apps/files_sharing/tests/ApiTest.php
apps/files_sharing/tests/ApplicationTest.php
apps/files_sharing/tests/CacheTest.php
apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
apps/files_sharing/tests/Controller/ShareControllerTest.php
apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
apps/files_sharing/tests/SharedMountTest.php
apps/files_sharing/tests/TestCase.php
apps/files_trashbin/lib/AppInfo/Application.php
apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
apps/files_trashbin/lib/Command/ExpireTrash.php
apps/files_trashbin/lib/Expiration.php
apps/files_trashbin/lib/Listeners/LoadAdditionalScripts.php
apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php
apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
apps/files_trashbin/lib/Trash/LegacyTrashBackend.php
apps/files_trashbin/lib/Trash/TrashItem.php
apps/files_trashbin/lib/Trashbin.php
apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
apps/files_trashbin/tests/ExpirationTest.php
apps/files_versions/lib/AppInfo/Application.php
apps/files_versions/lib/Db/VersionsMapper.php
apps/files_versions/lib/Expiration.php
apps/files_versions/lib/Sabre/Plugin.php
apps/files_versions/lib/Sabre/VersionFile.php
apps/files_versions/lib/Storage.php
apps/files_versions/lib/Versions/LegacyVersionsBackend.php
apps/files_versions/lib/Versions/VersionManager.php
apps/files_versions/tests/StorageTest.php
apps/lookup_server_connector/lib/AppInfo/Application.php
apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
apps/lookup_server_connector/lib/UpdateLookupServer.php
apps/oauth2/lib/Controller/LoginRedirectorController.php
apps/oauth2/lib/Controller/SettingsController.php
apps/oauth2/lib/Migration/SetTokenExpiration.php
apps/oauth2/lib/Settings/Admin.php
apps/oauth2/tests/Controller/SettingsControllerTest.php
apps/provisioning_api/lib/Controller/AUserData.php
apps/provisioning_api/lib/Controller/AppConfigController.php
apps/provisioning_api/lib/Controller/GroupsController.php
apps/provisioning_api/lib/ResponseDefinitions.php
apps/settings/lib/Activity/GroupProvider.php
apps/settings/lib/Activity/Provider.php
apps/settings/lib/BackgroundJobs/VerifyUserData.php
apps/settings/lib/Controller/AISettingsController.php
apps/settings/lib/Controller/AppSettingsController.php
apps/settings/lib/Controller/AuthSettingsController.php
apps/settings/lib/Controller/AuthorizedGroupController.php
apps/settings/lib/Controller/ChangePasswordController.php
apps/settings/lib/Controller/HelpController.php
apps/settings/lib/Controller/MailSettingsController.php
apps/settings/lib/Controller/TwoFactorSettingsController.php
apps/settings/lib/Controller/UsersController.php
apps/settings/lib/Hooks.php
apps/settings/lib/Listener/AppPasswordCreatedActivityListener.php
apps/settings/lib/Mailer/NewUserMailHelper.php
apps/settings/lib/Middleware/SubadminMiddleware.php
apps/settings/lib/Search/SectionSearch.php
apps/settings/lib/Service/AuthorizedGroupService.php
apps/settings/lib/Settings/Admin/Delegation.php
apps/settings/lib/Settings/Admin/Security.php
apps/settings/lib/Settings/Admin/Server.php
apps/settings/lib/Settings/Personal/PersonalInfo.php
apps/settings/lib/Settings/Personal/Security/Authtokens.php
apps/settings/lib/Settings/Personal/Security/Password.php
apps/settings/lib/Settings/Personal/Security/TwoFactor.php
apps/settings/lib/Settings/Personal/Security/WebAuthn.php
apps/settings/lib/Settings/Personal/ServerDevNotice.php
apps/settings/templates/help.php
apps/settings/templates/settings/additional.php
apps/settings/templates/settings/admin/additional-mail.php
apps/settings/templates/settings/admin/overview.php
apps/settings/templates/settings/empty.php
apps/settings/templates/settings/frame.php
apps/settings/templates/settings/personal/development.notice.php
apps/settings/templates/settings/personal/security/twofactor.php
apps/settings/tests/Controller/MailSettingsControllerTest.php
apps/settings/tests/Controller/UsersControllerTest.php
apps/settings/tests/Settings/Admin/SecurityTest.php
apps/settings/tests/Settings/Admin/ServerTest.php
apps/settings/tests/SetupChecks/PhpDefaultCharsetTest.php
apps/sharebymail/lib/Capabilities.php
apps/systemtags/lib/Activity/Listener.php
apps/systemtags/lib/AppInfo/Application.php
apps/systemtags/lib/Capabilities.php
apps/systemtags/lib/Search/TagSearchProvider.php
apps/testing/lib/AppInfo/Application.php
apps/testing/lib/Controller/ConfigController.php
apps/testing/lib/Controller/LockingController.php
apps/testing/lib/Locking/FakeDBLockingProvider.php
apps/theming/lib/Capabilities.php
apps/theming/lib/Controller/IconController.php
apps/theming/lib/Controller/ThemingController.php
apps/theming/lib/Controller/UserThemeController.php
apps/theming/lib/ITheme.php
apps/theming/lib/IconBuilder.php
apps/theming/lib/Listener/BeforeTemplateRenderedListener.php
apps/theming/lib/Migration/MigrateAdminConfig.php
apps/theming/lib/Migration/MigrateUserConfig.php
apps/theming/lib/ResponseDefinitions.php
apps/theming/lib/Service/BackgroundService.php
apps/theming/lib/Service/JSDataService.php
apps/theming/lib/Service/ThemeInjectionService.php
apps/theming/lib/Service/ThemesService.php
apps/theming/lib/Settings/Admin.php
apps/theming/lib/Settings/Personal.php
apps/theming/lib/Settings/PersonalSection.php
apps/theming/lib/Themes/CommonThemeTrait.php
apps/theming/lib/Themes/DarkHighContrastTheme.php
apps/theming/lib/Themes/DarkTheme.php
apps/theming/lib/Themes/DefaultTheme.php
apps/theming/lib/Themes/DyslexiaFont.php
apps/theming/lib/Themes/HighContrastTheme.php
apps/theming/lib/Themes/LightTheme.php
apps/theming/lib/ThemingDefaults.php
apps/theming/lib/Util.php
apps/theming/tests/Controller/ThemingControllerTest.php
apps/theming/tests/Controller/UserThemeControllerTest.php
apps/theming/tests/IconBuilderTest.php
apps/theming/tests/Service/ThemesServiceTest.php
apps/theming/tests/Settings/PersonalTest.php
apps/theming/tests/Themes/DyslexiaFontTest.php
apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php
apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php
apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php
apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php
apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php
apps/updatenotification/lib/Controller/APIController.php
apps/updatenotification/lib/Controller/AdminController.php
apps/updatenotification/lib/ResetTokenBackgroundJob.php
apps/updatenotification/lib/ResponseDefinitions.php
apps/updatenotification/lib/Settings/Admin.php
apps/updatenotification/templates/admin.php
apps/updatenotification/tests/Settings/AdminTest.php
apps/user_ldap/ajax/clearMappings.php
apps/user_ldap/lib/Access.php
apps/user_ldap/lib/AppInfo/Application.php
apps/user_ldap/lib/Command/CheckUser.php
apps/user_ldap/lib/Command/DeleteConfig.php
apps/user_ldap/lib/Command/Search.php
apps/user_ldap/lib/Command/SetConfig.php
apps/user_ldap/lib/Command/ShowConfig.php
apps/user_ldap/lib/Command/UpdateUUID.php
apps/user_ldap/lib/DataCollector/LdapDataCollector.php
apps/user_ldap/lib/GroupPluginManager.php
apps/user_ldap/lib/Group_LDAP.php
apps/user_ldap/lib/Helper.php
apps/user_ldap/lib/Jobs/CleanUp.php
apps/user_ldap/lib/Jobs/UpdateGroups.php
apps/user_ldap/lib/LDAP.php
apps/user_ldap/lib/Migration/GroupMappingMigration.php
apps/user_ldap/lib/Migration/SetDefaultProvider.php
apps/user_ldap/lib/Migration/UUIDFixUser.php
apps/user_ldap/lib/Migration/Version1010Date20200630192842.php
apps/user_ldap/lib/Migration/Version1120Date20210917155206.php
apps/user_ldap/lib/User/Manager.php
apps/user_ldap/lib/User/User.php
apps/user_ldap/lib/User_Proxy.php
apps/user_ldap/lib/Wizard.php
apps/user_ldap/tests/Group_LDAPTest.php
apps/user_ldap/tests/Migration/UUIDFixInsertTest.php
apps/user_ldap/tests/UserLDAPPluginTest.php
apps/user_ldap/tests/User_LDAPTest.php
apps/user_status/lib/AppInfo/Application.php
apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php
apps/user_status/lib/Connector/UserStatus.php
apps/user_status/lib/Connector/UserStatusProvider.php
apps/user_status/lib/ContactsMenu/StatusProvider.php
apps/user_status/lib/Controller/HeartbeatController.php
apps/user_status/lib/Controller/PredefinedStatusController.php
apps/user_status/lib/Controller/StatusesController.php
apps/user_status/lib/Controller/UserStatusController.php
apps/user_status/lib/Dashboard/UserStatusWidget.php
apps/user_status/lib/Db/UserStatusMapper.php
apps/user_status/lib/Listener/UserDeletedListener.php
apps/user_status/lib/Listener/UserLiveStatusListener.php
apps/user_status/lib/Migration/Version0001Date20200602134824.php
apps/user_status/lib/ResponseDefinitions.php
apps/user_status/lib/Service/JSDataService.php
apps/user_status/lib/Service/StatusService.php
apps/user_status/tests/Unit/Connector/UserStatusTest.php
apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
apps/user_status/tests/Unit/Db/UserStatusMapperTest.php
apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php
apps/user_status/tests/Unit/Service/StatusServiceTest.php
apps/weather_status/lib/AppInfo/Application.php
apps/weather_status/lib/Capabilities.php
apps/weather_status/lib/ResponseDefinitions.php
apps/workflowengine/lib/AppInfo/Application.php
apps/workflowengine/lib/BackgroundJobs/Rotate.php
apps/workflowengine/lib/Check/FileSystemTags.php
apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php
apps/workflowengine/lib/Manager.php
apps/workflowengine/lib/Migration/Version2000Date20190808074233.php
build/integration/features/bootstrap/Auth.php
build/integration/features/bootstrap/CommentsContext.php
build/integration/features/bootstrap/Sharing.php
core/Command/Base.php
core/Command/Broadcast/Test.php
core/Command/Db/AddMissingIndices.php
core/Command/Db/ConvertFilecacheBigInt.php
core/Command/Db/ConvertType.php
core/Command/Info/FileUtils.php
core/Command/Maintenance/Repair.php
core/Command/Maintenance/RepairShareOwnership.php
core/Command/Preview/Generate.php
core/Command/TwoFactorAuth/Enforce.php
core/Command/TwoFactorAuth/State.php
core/Command/Upgrade.php
core/Command/User/AuthTokens/Delete.php
core/Command/User/AuthTokens/ListCommand.php
core/Controller/ClientFlowLoginController.php
core/Controller/LoginController.php
core/Controller/LostController.php
core/Controller/ProfileApiController.php
core/Controller/ProfilePageController.php
core/Controller/ReferenceController.php
core/Controller/TextProcessingApiController.php
core/Controller/TextToImageApiController.php
core/Controller/UnifiedSearchController.php
core/Db/ProfileConfig.php
core/Migrations/Version13000Date20170705121758.php
core/Migrations/Version13000Date20170718121200.php
core/Migrations/Version14000Date20180522074438.php
core/Migrations/Version14000Date20180710092004.php
core/Migrations/Version16000Date20190207141427.php
core/Migrations/Version16000Date20190212081545.php
core/Migrations/Version16000Date20190428150708.php
core/Migrations/Version17000Date20190514105811.php
core/Migrations/Version18000Date20190920085628.php
core/Migrations/Version18000Date20191014105105.php
core/Migrations/Version18000Date20191204114856.php
core/Migrations/Version20000Date20201109081915.php
core/Migrations/Version20000Date20201109081918.php
core/Migrations/Version21000Date20201202095923.php
core/Migrations/Version23000Date20210721100600.php
core/Migrations/Version23000Date20210906132259.php
core/ajax/update.php
core/templates/publicshareauth.php
lib/composer/composer/installed.php
lib/private/Accounts/AccountManager.php
lib/private/Activity/Manager.php
lib/private/App/AppManager.php
lib/private/App/AppStore/Fetcher/AppFetcher.php
lib/private/App/AppStore/Fetcher/CategoryFetcher.php
lib/private/App/AppStore/Fetcher/Fetcher.php
lib/private/App/Platform.php
lib/private/AppFramework/App.php
lib/private/AppFramework/Bootstrap/Coordinator.php
lib/private/AppFramework/Bootstrap/EventListenerRegistration.php
lib/private/AppFramework/Bootstrap/ParameterRegistration.php
lib/private/AppFramework/Bootstrap/PreviewProviderRegistration.php
lib/private/AppFramework/Bootstrap/RegistrationContext.php
lib/private/AppFramework/Bootstrap/ServiceAliasRegistration.php
lib/private/AppFramework/Bootstrap/ServiceFactoryRegistration.php
lib/private/AppFramework/Http/Dispatcher.php
lib/private/AppFramework/Http/Request.php
lib/private/AppFramework/Http/RequestId.php
lib/private/AppFramework/Middleware/Security/CORSMiddleware.php
lib/private/AppFramework/Middleware/Security/CSPMiddleware.php
lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php
lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
lib/private/AppFramework/Middleware/SessionMiddleware.php
lib/private/AppFramework/OCS/BaseResponse.php
lib/private/AppFramework/ScopedPsrLogger.php
lib/private/AppFramework/Utility/SimpleContainer.php
lib/private/AppScriptSort.php
lib/private/Authentication/Listeners/RemoteWipeActivityListener.php
lib/private/Authentication/Listeners/RemoteWipeEmailListener.php
lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php
lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php
lib/private/Authentication/Login/Chain.php
lib/private/Authentication/Login/CreateSessionTokenCommand.php
lib/private/Authentication/Login/LoggedInCheckCommand.php
lib/private/Authentication/Login/LoginData.php
lib/private/Authentication/Login/SetUserTimezoneCommand.php
lib/private/Authentication/Login/TwoFactorCommand.php
lib/private/Authentication/Login/UserDisabledCheckCommand.php
lib/private/Authentication/Login/WebAuthnChain.php
lib/private/Authentication/LoginCredentials/Store.php
lib/private/Authentication/Token/IProvider.php
lib/private/Authentication/Token/Manager.php
lib/private/Authentication/Token/PublicKeyTokenProvider.php
lib/private/Authentication/Token/RemoteWipe.php
lib/private/Authentication/TwoFactorAuth/EnforcementState.php
lib/private/Authentication/TwoFactorAuth/Manager.php
lib/private/Authentication/TwoFactorAuth/ProviderSet.php
lib/private/Authentication/TwoFactorAuth/Registry.php
lib/private/Authentication/WebAuthn/Manager.php
lib/private/Avatar/GuestAvatar.php
lib/private/BinaryFinder.php
lib/private/CapabilitiesManager.php
lib/private/Collaboration/Collaborators/MailPlugin.php
lib/private/Command/ClosureJob.php
lib/private/Command/CronBus.php
lib/private/Comments/Manager.php
lib/private/Console/Application.php
lib/private/DB/Connection.php
lib/private/DB/Migrator.php
lib/private/Dashboard/Manager.php
lib/private/DirectEditing/Manager.php
lib/private/Encryption/EncryptionWrapper.php
lib/private/Encryption/File.php
lib/private/Encryption/HookManager.php
lib/private/Encryption/Update.php
lib/private/EventDispatcher/EventDispatcher.php
lib/private/EventDispatcher/ServiceEventListener.php
lib/private/Federation/CloudFederationShare.php
lib/private/Files/AppData/AppData.php
lib/private/Files/AppData/Factory.php
lib/private/Files/Cache/Cache.php
lib/private/Files/Cache/Scanner.php
lib/private/Files/Filesystem.php
lib/private/Files/Mount/Manager.php
lib/private/Files/Node/LazyFolder.php
lib/private/Files/Node/LazyUserFolder.php
lib/private/Files/Node/Root.php
lib/private/Files/SimpleFS/SimpleFolder.php
lib/private/Files/Storage/DAV.php
lib/private/Files/Storage/Wrapper/Encoding.php
lib/private/Files/Stream/Encryption.php
lib/private/Files/Template/TemplateManager.php
lib/private/Files/Type/Detection.php
lib/private/Files/Utils/Scanner.php
lib/private/Files/View.php
lib/private/Group/Database.php
lib/private/Group/Group.php
lib/private/Group/Manager.php
lib/private/Group/MetaData.php
lib/private/Http/CookieHelper.php
lib/private/Http/WellKnown/RequestManager.php
lib/private/IntegrityCheck/Checker.php
lib/private/Log.php
lib/private/Memcache/Factory.php
lib/private/Migration/BackgroundRepair.php
lib/private/NavigationManager.php
lib/private/Notification/Manager.php
lib/private/OCS/DiscoveryService.php
lib/private/OCS/Provider.php
lib/private/Preview/BackgroundCleanupJob.php
lib/private/Preview/Imaginary.php
lib/private/Preview/WatcherConnector.php
lib/private/Profile/Actions/FediverseAction.php
lib/private/Profile/Actions/TwitterAction.php
lib/private/Profile/ProfileManager.php
lib/private/Profiler/Profiler.php
lib/private/Repair.php
lib/private/Repair/ClearFrontendCaches.php
lib/private/Repair/ClearGeneratedAvatarCache.php
lib/private/Repair/ClearGeneratedAvatarCacheJob.php
lib/private/Repair/NC18/ResetGeneratedAvatarFlag.php
lib/private/Repair/NC20/EncryptionLegacyCipher.php
lib/private/Repair/NC20/EncryptionMigration.php
lib/private/Repair/NC21/ValidatePhoneNumber.php
lib/private/Repair/Owncloud/CleanPreviews.php
lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php
lib/private/Repair/Owncloud/MigrateOauthTables.php
lib/private/Repair/Owncloud/MoveAvatars.php
lib/private/Repair/Owncloud/UpdateLanguageCodes.php
lib/private/Repair/RemoveLinkShares.php
lib/private/Repair/RepairMimeTypes.php
lib/private/Route/Router.php
lib/private/Search/FilterCollection.php
lib/private/Search/FilterFactory.php
lib/private/Search/SearchComposer.php
lib/private/Search/SearchQuery.php
lib/private/Security/Bruteforce/Capabilities.php
lib/private/Security/Bruteforce/Throttler.php
lib/private/Security/VerificationToken/CleanUpJob.php
lib/private/Server.php
lib/private/Session/CryptoSessionData.php
lib/private/Session/CryptoWrapper.php
lib/private/Setup.php
lib/private/Setup/MySQL.php
lib/private/Share/Share.php
lib/private/Share20/Manager.php
lib/private/Share20/PublicShareTemplateFactory.php
lib/private/Share20/Share.php
lib/private/StreamImage.php
lib/private/SubAdmin.php
lib/private/Support/Subscription/Registry.php
lib/private/TagManager.php
lib/private/Tagging/TagMapper.php
lib/private/Talk/Broker.php
lib/private/Template/JSCombiner.php
lib/private/Template/JSConfigHelper.php
lib/private/TextProcessing/Manager.php
lib/private/TextToImage/Manager.php
lib/private/URLGenerator.php
lib/private/Updater.php
lib/private/User/Listeners/BeforeUserDeletedListener.php
lib/private/User/Listeners/UserChangedListener.php
lib/private/User/Manager.php
lib/private/User/Session.php
lib/private/User/User.php
lib/private/UserStatus/Manager.php
lib/private/legacy/OC_App.php
lib/private/legacy/OC_Files.php
lib/private/legacy/OC_Helper.php
lib/public/AppFramework/ApiController.php
lib/public/AppFramework/AuthPublicShareController.php
lib/public/AppFramework/Bootstrap/IRegistrationContext.php
lib/public/AppFramework/Controller.php
lib/public/AppFramework/Http/TooManyRequestsResponse.php
lib/public/AppFramework/OCSController.php
lib/public/AppFramework/PublicShareController.php
lib/public/Comments/ICommentsManager.php
lib/public/Dashboard/Model/WidgetItem.php
lib/public/Files/Events/FileCacheUpdated.php
lib/public/Files/Events/NodeAddedToCache.php
lib/public/Files/Events/NodeRemovedFromCache.php
lib/public/Files/Node.php
lib/public/Http/WellKnown/JrdResponse.php
lib/public/Log/Audit/CriticalActionPerformedEvent.php
lib/public/Search/SearchResult.php
lib/public/Search/SearchResultEntry.php
lib/public/Security/ISecureRandom.php
lib/public/Security/RateLimiting/ILimiter.php
lib/public/Share.php
lib/public/Share/Events/VerifyMountPointEvent.php
lib/public/Share/IShareProvider.php
lib/public/Talk/IBroker.php
lib/public/Talk/ITalkBackend.php
lib/public/User/Events/BeforePasswordUpdatedEvent.php
lib/public/User/Events/BeforeUserCreatedEvent.php
lib/public/User/Events/PasswordUpdatedEvent.php
lib/public/User/Events/UserChangedEvent.php
lib/public/User/Events/UserCreatedEvent.php
lib/public/User/Events/UserLiveStatusEvent.php
lib/public/Util.php
ocs/v1.php
remote.php
tests/Core/Command/Preview/RepairTest.php
tests/Core/Command/User/AuthTokens/DeleteTest.php
tests/Core/Controller/LoginControllerTest.php
tests/Core/Service/LoginFlowV2ServiceUnitTest.php
tests/lib/App/AppStore/Version/VersionParserTest.php
tests/lib/App/InfoParserTest.php
tests/lib/AppFramework/Controller/ControllerTest.php
tests/lib/AppFramework/Http/DispatcherTest.php
tests/lib/AppFramework/Middleware/MiddlewareTest.php
tests/lib/AppFramework/Routing/RoutingTest.php
tests/lib/Authentication/TwoFactorAuth/ManagerTest.php
tests/lib/Avatar/AvatarManagerTest.php
tests/lib/Collaboration/Collaborators/MailPluginTest.php
tests/lib/Collaboration/Collaborators/UserPluginTest.php
tests/lib/Diagnostics/EventLoggerTest.php
tests/lib/Encryption/ManagerTest.php
tests/lib/Encryption/UpdateTest.php
tests/lib/Files/Cache/UpdaterLegacyTest.php
tests/lib/Files/Config/UserMountCacheTest.php
tests/lib/Files/EtagTest.php
tests/lib/Files/FilesystemTest.php
tests/lib/Files/Node/RootTest.php
tests/lib/Files/Storage/Wrapper/EncryptionTest.php
tests/lib/Files/Stream/EncryptionTest.php
tests/lib/Files/ViewTest.php
tests/lib/Group/ManagerTest.php
tests/lib/InitialStateServiceTest.php
tests/lib/Mail/MailerTest.php
tests/lib/Mail/MessageTest.php
tests/lib/Memcache/FactoryTest.php
tests/lib/Migration/BackgroundRepairTest.php
tests/lib/Repair/RepairDavSharesTest.php
tests/lib/RepairTest.php
tests/lib/Security/Bruteforce/ThrottlerTest.php
tests/lib/Security/CertificateManagerTest.php
tests/lib/Security/VerificationToken/VerificationTokenTest.php
tests/lib/Settings/ManagerTest.php
tests/lib/Share20/DefaultShareProviderTest.php
tests/lib/TextProcessing/TextProcessingTest.php
tests/lib/Updater/ChangesCheckTest.php
tests/lib/UpdaterTest.php
tests/lib/User/SessionTest.php
tests/lib/Util/Group/Dummy.php

index bfd67f474f94367e1302f3baecc919e7e2a33e6d..238ed10e4d9c94d0a24b12328c465362c3e806ba 100644 (file)
@@ -34,7 +34,8 @@ class Action {
 
        public function __construct(
                private IAuditLogger $logger,
-       ) {}
+       ) {
+       }
 
        /**
         * Log a single action with a log level of info
@@ -45,9 +46,9 @@ class Action {
         * @param bool $obfuscateParameters
         */
        public function log(string $text,
-                                               array $params,
-                                               array $elements,
-                                               bool $obfuscateParameters = false): void {
+               array $params,
+               array $elements,
+               bool $obfuscateParameters = false): void {
                foreach ($elements as $element) {
                        if (!isset($params[$element])) {
                                if ($obfuscateParameters) {
index 02d5b60d2fa295cdcc49c2bd1417ee275c3dcb25..c66793d8a5b3396f9ed5056a8383d02b67a0ff53 100644 (file)
@@ -61,7 +61,7 @@ class UserManagement extends Action {
         */
        public function assign(string $uid): void {
                $this->log(
-               'UserID assigned: "%s"',
+                       'UserID assigned: "%s"',
                        [ 'uid' => $uid ],
                        [ 'uid' ]
                );
index 1daf9f18ef07b80815c9f06b7874d067e8ccf3cf..d034e79e0c2afcc8bd3a4c515018576195dba5e8 100644 (file)
@@ -101,7 +101,7 @@ class Application extends App implements IBootstrap {
         * Register hooks in order to log them
         */
        private function registerHooks(IAuditLogger $logger,
-                                                                  ContainerInterface $serverContainer): void {
+               ContainerInterface $serverContainer): void {
                $this->userManagementHooks($logger, $serverContainer->get(IUserSession::class));
                $this->groupHooks($logger, $serverContainer->get(IGroupManager::class));
                $this->authHooks($logger);
@@ -122,7 +122,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function userManagementHooks(IAuditLogger $logger,
-                                                                                IUserSession $userSession): void {
+               IUserSession $userSession): void {
                $userActions = new UserManagement($logger);
 
                Util::connectHook('OC_User', 'post_createUser', $userActions, 'create');
@@ -136,7 +136,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function groupHooks(IAuditLogger $logger,
-                                                               IGroupManager $groupManager): void {
+               IGroupManager $groupManager): void {
                $groupActions = new GroupManagement($logger);
 
                assert($groupManager instanceof GroupManager);
@@ -167,7 +167,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function appHooks(IAuditLogger $logger,
-                                                         IEventDispatcher $eventDispatcher): void {
+               IEventDispatcher $eventDispatcher): void {
                $eventDispatcher->addListener(ManagerEvent::EVENT_APP_ENABLE, function (ManagerEvent $event) use ($logger) {
                        $appActions = new AppManagement($logger);
                        $appActions->enableApp($event->getAppID());
@@ -183,7 +183,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function consoleHooks(IAuditLogger $logger,
-                                                                 IEventDispatcher $eventDispatcher): void {
+               IEventDispatcher $eventDispatcher): void {
                $eventDispatcher->addListener(ConsoleEvent::class, function (ConsoleEvent $event) use ($logger) {
                        $appActions = new Console($logger);
                        $appActions->runCommand($event->getArguments());
@@ -191,7 +191,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function fileHooks(IAuditLogger $logger,
-                                                          IEventDispatcher $eventDispatcher): void {
+               IEventDispatcher $eventDispatcher): void {
                $fileActions = new Files($logger);
                $eventDispatcher->addListener(
                        BeforePreviewFetchedEvent::class,
@@ -264,7 +264,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function securityHooks(IAuditLogger $logger,
-                                                                  IEventDispatcher $eventDispatcher): void {
+               IEventDispatcher $eventDispatcher): void {
                $eventDispatcher->addListener(TwoFactorProviderChallengePassed::class, function (TwoFactorProviderChallengePassed $event) use ($logger) {
                        $security = new Security($logger);
                        $security->twofactorSuccess($event->getUser(), $event->getProvider());
index ce441be11f63cb8c5ff498e0f68ea7bc7da4fa83..4482a45df4ee161c2e4fbac8dd711cbc337b7506 100755 (executable)
@@ -27,8 +27,8 @@ declare(strict_types=1);
  */
 namespace OCA\AdminAudit\BackgroundJobs;
 
-use OCP\BackgroundJob\TimedJob;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
 use OCP\IConfig;
 use OCP\Log\RotationTrait;
 
index 966ff2ce3a17986b623a8316964433b07b7d9954..ad508e1327789753450b688cb728a7001f52f7c2 100644 (file)
@@ -38,11 +38,11 @@ return [
                        'verb' => 'POST',
                        'root' => '/ocm',
                ],
-//             [
-//                     'name' => 'RequestHandler#inviteAccepted',
-//                     'url' => '/invite-accepted',
-//                     'verb' => 'POST',
-//                     'root' => '/ocm',
-//             ]
+               //              [
+               //                      'name' => 'RequestHandler#inviteAccepted',
+               //                      'url' => '/invite-accepted',
+               //                      'verb' => 'POST',
+               //                      'root' => '/ocm',
+               //              ]
        ],
 ];
index 7f916d6c6cdb70ea19c7437a33d1561c4c4819ad..69090e6196f20a179358ff9f5d42e0c345111c8d 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index db147970a64c6a930238f204ec78fbc3b1d683bf..a6d6d9fb78d910bd394cc2d43b74b7d26b4ba795 100644 (file)
@@ -34,8 +34,8 @@ use OCA\Comments\Listener\LoadAdditionalScripts;
 use OCA\Comments\Listener\LoadSidebarScripts;
 use OCA\Comments\MaxAutoCompleteResultsInitialState;
 use OCA\Comments\Notification\Notifier;
-use OCA\Comments\Search\LegacyProvider;
 use OCA\Comments\Search\CommentsSearchProvider;
+use OCA\Comments\Search\LegacyProvider;
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
 use OCA\Files\Event\LoadSidebar;
 use OCP\AppFramework\App;
@@ -43,9 +43,9 @@ use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
 use OCP\Comments\CommentsEntityEvent;
+use OCP\Comments\ICommentsManager;
 use OCP\ISearch;
 use OCP\IServerContainer;
-use OCP\Comments\ICommentsManager;
 
 class Application extends App implements IBootstrap {
        public const APP_ID = 'comments';
index b0255e62639b5ae07546c42037cb68e953aff2be..cc37dc628be5dff362ac054a8589b5128330ef1b 100644 (file)
 namespace OCA\Comments\Controller;
 
 use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
 use OCP\AppFramework\Http\NotFoundResponse;
 use OCP\AppFramework\Http\RedirectResponse;
-use OCP\AppFramework\Http;
 use OCP\Comments\IComment;
 use OCP\Comments\ICommentsManager;
 use OCP\Files\IRootFolder;
index bb67b30c0775ff7e1dbfa05e5e5c0fe10927d572..55f7ef8eeb90c99c28e54b0f165e943dde63cf05 100644 (file)
@@ -26,12 +26,12 @@ declare(strict_types=1);
 namespace OCA\Comments\Search;
 
 use OCP\Comments\IComment;
+use OCP\Comments\ICommentsManager;
 use OCP\Files\Folder;
 use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\IUser;
 use OCP\Search\Provider;
-use OCP\Comments\ICommentsManager;
 use function count;
 
 class LegacyProvider extends Provider {
index 6bd6538257cb015e7c88c0d198efa2fa83bcb2ab..7fd8cb2ab3c66d43acc2a66f3fd003e18eac1815 100644 (file)
@@ -39,9 +39,9 @@ class CardSearchDao {
        }
 
        public function findExisting(IUser $user,
-                                                                ?string $uid,
-                                                                ?string $email,
-                                                                ?string $cloudId): ?string {
+               ?string $uid,
+               ?string $email,
+               ?string $cloudId): ?string {
                $addressbooksQuery = $this->db->getQueryBuilder();
                $cardQuery = $this->db->getQueryBuilder();
                $propQuery = $this->db->getQueryBuilder();
index 49a705af570d99857b056526a727b89b5b043263..257c888e8185deb2f64e4b4b346e7dca2de891a5 100644 (file)
@@ -74,9 +74,9 @@ class RecentContactMapper extends QBMapper {
         * @return RecentContact[]
         */
        public function findMatch(IUser $user,
-                                                         ?string $uid,
-                                                         ?string $email,
-                                                         ?string $cloudId): array {
+               ?string $uid,
+               ?string $email,
+               ?string $cloudId): array {
                $qb = $this->db->getQueryBuilder();
 
                $or = $qb->expr()->orX();
index 499a9f28ca57a7ecef3004bedbd8d7ee53afe8a1..58be052d2f32efbbfa472781a46ca65a805bb486 100644 (file)
@@ -38,9 +38,7 @@ use OCP\IL10N;
 use OCP\IUserManager;
 use Psr\Log\LoggerInterface;
 use Sabre\VObject\Component\VCard;
-use Sabre\VObject\Reader;
 use Sabre\VObject\UUIDUtil;
-use Throwable;
 
 class ContactInteractionListener implements IEventListener {
 
index e62c21bcc4af3bf252c593b6e220255e5551823c..35db52225daa61f320dc7de64323bfd62c3b3764 100644 (file)
@@ -29,25 +29,24 @@ declare(strict_types=1);
 namespace OCA\Dashboard\Controller;
 
 use OCA\Dashboard\ResponseDefinitions;
-use OCP\AppFramework\OCSController;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
+use OCP\AppFramework\OCSController;
+use OCP\Dashboard\IAPIWidget;
+use OCP\Dashboard\IAPIWidgetV2;
 use OCP\Dashboard\IButtonWidget;
 use OCP\Dashboard\IIconWidget;
-use OCP\Dashboard\IOptionWidget;
 use OCP\Dashboard\IManager;
+use OCP\Dashboard\IOptionWidget;
 use OCP\Dashboard\IReloadableWidget;
 use OCP\Dashboard\IWidget;
 use OCP\Dashboard\Model\WidgetButton;
+use OCP\Dashboard\Model\WidgetItem;
+
 use OCP\Dashboard\Model\WidgetOptions;
 use OCP\IConfig;
 use OCP\IRequest;
 
-use OCP\Dashboard\IAPIWidget;
-use OCP\Dashboard\IAPIWidgetV2;
-use OCP\Dashboard\Model\WidgetItem;
-use OCP\Dashboard\Model\WidgetItems;
-
 /**
  * @psalm-import-type DashboardWidget from ResponseDefinitions
  * @psalm-import-type DashboardWidgetItem from ResponseDefinitions
index b35531be2a74e09d37dc1eecce99bf956703c8cd..5592af1a324831c9641d95c5607c6f8945a17031 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 24a81e9af9400c3b5fb3022005d38fc89eaf14cb..8ea9c5dcb4e280e19ffbdcd29c36d75ee812817c 100644 (file)
@@ -28,8 +28,8 @@
 // Backends
 use OC\KnownUser\KnownUserService;
 use OCA\DAV\CalDAV\CalDavBackend;
-use OCA\DAV\Connector\LegacyDAVACL;
 use OCA\DAV\CalDAV\CalendarRoot;
+use OCA\DAV\Connector\LegacyDAVACL;
 use OCA\DAV\Connector\Sabre\Auth;
 use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
 use OCA\DAV\Connector\Sabre\MaintenancePlugin;
index 52f44ee02357a4f1253b85db645568f577e0e31c..1284e7cae758b008afb11611ab2a9cf6bba8ec25 100644 (file)
@@ -69,10 +69,6 @@ use OCA\DAV\Events\CardDeletedEvent;
 use OCA\DAV\Events\CardUpdatedEvent;
 use OCA\DAV\Events\SubscriptionCreatedEvent;
 use OCA\DAV\Events\SubscriptionDeletedEvent;
-use OCA\DAV\Listener\OutOfOfficeListener;
-use OCP\Accounts\UserUpdatedEvent;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Federation\Events\TrustedServerRemovedEvent;
 use OCA\DAV\HookManager;
 use OCA\DAV\Listener\ActivityUpdaterListener;
 use OCA\DAV\Listener\AddressbookListener;
@@ -84,6 +80,7 @@ use OCA\DAV\Listener\CalendarPublicationListener;
 use OCA\DAV\Listener\CalendarShareUpdateListener;
 use OCA\DAV\Listener\CardListener;
 use OCA\DAV\Listener\ClearPhotoCacheListener;
+use OCA\DAV\Listener\OutOfOfficeListener;
 use OCA\DAV\Listener\SubscriptionListener;
 use OCA\DAV\Listener\TrustedServerRemovedListener;
 use OCA\DAV\Listener\UserPreferenceListener;
@@ -93,6 +90,7 @@ use OCA\DAV\Search\TasksSearchProvider;
 use OCA\DAV\SetupChecks\NeedsSystemAddressBookSync;
 use OCA\DAV\UserMigration\CalendarMigrator;
 use OCA\DAV\UserMigration\ContactsMigrator;
+use OCP\Accounts\UserUpdatedEvent;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
@@ -102,6 +100,8 @@ use OCP\Calendar\IManager as ICalendarManager;
 use OCP\Config\BeforePreferenceDeletedEvent;
 use OCP\Config\BeforePreferenceSetEvent;
 use OCP\Contacts\IManager as IContactsManager;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Federation\Events\TrustedServerRemovedEvent;
 use OCP\Files\AppData\IAppDataFactory;
 use OCP\IUser;
 use OCP\User\Events\OutOfOfficeChangedEvent;
@@ -224,8 +224,8 @@ class Application extends App implements IBootstrap {
        }
 
        public function registerHooks(HookManager $hm,
-                                                                  IEventDispatcher $dispatcher,
-                                                                  IAppContainer $container) {
+               IEventDispatcher $dispatcher,
+               IAppContainer $container) {
                $hm->setup();
 
                // first time login event setup
@@ -268,8 +268,8 @@ class Application extends App implements IBootstrap {
        }
 
        private function setupContactsProvider(IContactsManager $contactsManager,
-                                                                                  IAppContainer $container,
-                                                                                  string $userID): void {
+               IAppContainer $container,
+               string $userID): void {
                /** @var ContactsManager $cm */
                $cm = $container->query(ContactsManager::class);
                $urlGenerator = $container->getServer()->getURLGenerator();
@@ -277,7 +277,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function setupSystemContactsProvider(IContactsManager $contactsManager,
-                                                                                                IAppContainer $container): void {
+               IAppContainer $container): void {
                /** @var ContactsManager $cm */
                $cm = $container->query(ContactsManager::class);
                $urlGenerator = $container->getServer()->getURLGenerator();
@@ -285,7 +285,7 @@ class Application extends App implements IBootstrap {
        }
 
        public function registerCalendarManager(ICalendarManager $calendarManager,
-                                                                                        IAppContainer $container): void {
+               IAppContainer $container): void {
                $calendarManager->register(function () use ($container, $calendarManager) {
                        $user = \OC::$server->getUserSession()->getUser();
                        if ($user !== null) {
@@ -295,14 +295,14 @@ class Application extends App implements IBootstrap {
        }
 
        private function setupCalendarProvider(ICalendarManager $calendarManager,
-                                                                                  IAppContainer $container,
-                                                                                  $userId) {
+               IAppContainer $container,
+               $userId) {
                $cm = $container->query(CalendarManager::class);
                $cm->setupCalendarProvider($calendarManager, $userId);
        }
 
        public function registerCalendarReminders(NotificationProviderManager $manager,
-                                                                                          LoggerInterface $logger): void {
+               LoggerInterface $logger): void {
                try {
                        $manager->registerProvider(AudioProvider::class);
                        $manager->registerProvider(EmailProvider::class);
index a2607ca13c4636feafabb8f8f90de5dc3c84ff79..d1cafbf57c2be878358352e54fe1442998f5737e 100644 (file)
@@ -59,10 +59,10 @@ class BuildReminderIndexBackgroundJob extends QueuedJob {
         * BuildReminderIndexBackgroundJob constructor.
         */
        public function __construct(IDBConnection $db,
-                                                               ReminderService $reminderService,
-                                                               LoggerInterface $logger,
-                                                               IJobList $jobList,
-                                                               ITimeFactory $timeFactory) {
+               ReminderService $reminderService,
+               LoggerInterface $logger,
+               IJobList $jobList,
+               ITimeFactory $timeFactory) {
                parent::__construct($timeFactory);
                $this->db = $db;
                $this->reminderService = $reminderService;
index b57ed07d5c24790270868d40b02619738379cc5e..96ceb644489191332dc0c78ba59514e410e425b8 100644 (file)
@@ -34,7 +34,7 @@ class CalendarRetentionJob extends TimedJob {
        private $service;
 
        public function __construct(ITimeFactory $time,
-                                                               RetentionService $service) {
+               RetentionService $service) {
                parent::__construct($time);
                $this->service = $service;
 
index 55cecf5519d529b3cdcd0c59908fac0d96e6a764..f628a7284040bbdc2f5d28797a32e1a365f143ee 100644 (file)
@@ -40,8 +40,8 @@ class EventReminderJob extends TimedJob {
        private $config;
 
        public function __construct(ITimeFactory $time,
-                                                               ReminderService $reminderService,
-                                                               IConfig $config) {
+               ReminderService $reminderService,
+               IConfig $config) {
                parent::__construct($time);
                $this->reminderService = $reminderService;
                $this->config = $config;
index 8e72e8f076c8cbe57ad404ccd442ac99bf54908f..220050b392790f94a42da39d35e93c0b6a09e222 100644 (file)
@@ -39,8 +39,8 @@ class GenerateBirthdayCalendarBackgroundJob extends QueuedJob {
        private $config;
 
        public function __construct(ITimeFactory $time,
-                                                               BirthdayService $birthdayService,
-                                                               IConfig $config) {
+               BirthdayService $birthdayService,
+               IConfig $config) {
                parent::__construct($time);
 
                $this->birthdayService = $birthdayService;
index deca55a26cb6d9c81a07c500d8fb7c4da14d7ac7..749690693874cfbb674a6c2b91810f5613e64894 100644 (file)
@@ -25,11 +25,11 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\BackgroundJob;
 
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\BackgroundJob\TimedJob;
 use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\CardDAV\CardDavBackend;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
 use OCP\IConfig;
 use Psr\Log\LoggerInterface;
 
index 85da81b3b91fd25ede87620f0ed57844a3fcd20f..8c0b5e3ea45afb23d593eaf0f52a5e48911cafd5 100644 (file)
@@ -49,8 +49,8 @@ class RegisterRegenerateBirthdayCalendars extends QueuedJob {
         * @param IJobList $jobList
         */
        public function __construct(ITimeFactory $time,
-                                                               IUserManager $userManager,
-                                                               IJobList $jobList) {
+               IUserManager $userManager,
+               IJobList $jobList) {
                parent::__construct($time);
                $this->userManager = $userManager;
                $this->jobList = $jobList;
index f0ff16d3f2fb93f0b4cd44f6e5938eb205cdc7f2..b4571e2509d06ae607386ff4698d9238f9175f2e 100644 (file)
@@ -55,10 +55,10 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
        private $calDavBackend;
 
        public function __construct(ITimeFactory $time,
-                                                               IResourceManager $resourceManager,
-                                                               IRoomManager $roomManager,
-                                                               IDBConnection $dbConnection,
-                                                               CalDavBackend $calDavBackend) {
+               IResourceManager $resourceManager,
+               IRoomManager $roomManager,
+               IDBConnection $dbConnection,
+               CalDavBackend $calDavBackend) {
                parent::__construct($time);
                $this->resourceManager = $resourceManager;
                $this->roomManager = $roomManager;
@@ -101,10 +101,10 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param string $principalPrefix
         */
        private function runForBackend($backendManager,
-                                                                  string $dbTable,
-                                                                  string $dbTableMetadata,
-                                                                  string $foreignKey,
-                                                                  string $principalPrefix): void {
+               string $dbTable,
+               string $dbTableMetadata,
+               string $foreignKey,
+               string $principalPrefix): void {
                $backends = $backendManager->getBackends();
 
                foreach ($backends as $backend) {
@@ -194,8 +194,8 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @return int Insert id
         */
        private function addToCache(string $table,
-                                                               string $backendId,
-                                                               $remote): int {
+               string $backendId,
+               $remote): int {
                $query = $this->dbConnection->getQueryBuilder();
                $query->insert($table)
                        ->values([
@@ -219,9 +219,9 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param array $metadata
         */
        private function addMetadataToCache(string $table,
-                                                                               string $foreignKey,
-                                                                               int $foreignId,
-                                                                               array $metadata): void {
+               string $foreignKey,
+               int $foreignId,
+               array $metadata): void {
                foreach ($metadata as $key => $value) {
                        $query = $this->dbConnection->getQueryBuilder();
                        $query->insert($table)
@@ -241,7 +241,7 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param int $id
         */
        private function deleteFromCache(string $table,
-                                                                        int $id): void {
+               int $id): void {
                $query = $this->dbConnection->getQueryBuilder();
                $query->delete($table)
                        ->where($query->expr()->eq('id', $query->createNamedParameter($id)))
@@ -254,8 +254,8 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param int $id
         */
        private function deleteMetadataFromCache(string $table,
-                                                                                        string $foreignKey,
-                                                                                        int $id): void {
+               string $foreignKey,
+               int $id): void {
                $query = $this->dbConnection->getQueryBuilder();
                $query->delete($table)
                        ->where($query->expr()->eq($foreignKey, $query->createNamedParameter($id)))
@@ -270,8 +270,8 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param IResource|IRoom $remote
         */
        private function updateCache(string $table,
-                                                                int $id,
-                                                                $remote): void {
+               int $id,
+               $remote): void {
                $query = $this->dbConnection->getQueryBuilder();
                $query->update($table)
                        ->set('email', $query->createNamedParameter($remote->getEMail()))
@@ -292,10 +292,10 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param array $cachedMetadata
         */
        private function updateMetadataCache(string $dbTable,
-                                                                                string $foreignKey,
-                                                                                int $id,
-                                                                                array $metadata,
-                                                                                array $cachedMetadata): void {
+               string $foreignKey,
+               int $id,
+               array $metadata,
+               array $cachedMetadata): void {
                $newMetadata = array_diff_key($metadata, $cachedMetadata);
                $deletedMetadata = array_diff_key($cachedMetadata, $metadata);
 
@@ -371,8 +371,8 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @return array
         */
        private function getAllMetadataOfCache(string $table,
-                                                                                  string $foreignKey,
-                                                                                  int $id): array {
+               string $foreignKey,
+               int $id): array {
                $query = $this->dbConnection->getQueryBuilder();
                $query->select(['key', 'value'])
                        ->from($table)
@@ -398,7 +398,7 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @return array
         */
        private function getAllCachedByBackend(string $tableName,
-                                                                                  string $backendId): array {
+               string $backendId): array {
                $query = $this->dbConnection->getQueryBuilder();
                $query->select('resource_id')
                        ->from($tableName)
@@ -417,7 +417,7 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @param $principalUri
         */
        private function deleteCalendarDataForResource(string $principalPrefix,
-                                                                                                  string $principalUri): void {
+               string $principalUri): void {
                $calendar = $this->calDavBackend->getCalendarByUri(
                        implode('/', [$principalPrefix, $principalUri]),
                        CalDavBackend::RESOURCE_BOOKING_CALENDAR_URI);
@@ -438,8 +438,8 @@ class UpdateCalendarResourcesRoomsBackgroundJob extends TimedJob {
         * @return int
         */
        private function getIdForBackendAndResource(string $table,
-                                                                                               string $backendId,
-                                                                                               string $resourceId): int {
+               string $backendId,
+               string $resourceId): int {
                $query = $this->dbConnection->getQueryBuilder();
                $query->select('id')
                        ->from($table)
index 3a6f296deafa18b05883b8ba30d41ceb723ea742..c35aff4d15a7c530f2d44c361e2d45f6238521ed 100644 (file)
@@ -32,7 +32,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\IJobList;
 use OCP\BackgroundJob\TimedJob;
-use OCP\Files\Node;
 use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
index 43fccbf233e2241895c1f08b38ece80e3c4f6299..53184be6f2511ca4a15c9bbd9d7634066f813038 100644 (file)
@@ -46,11 +46,11 @@ class UserStatusAutomation extends TimedJob {
        protected IConfig $config;
 
        public function __construct(ITimeFactory $timeFactory,
-                                                               IDBConnection $connection,
-                                                               IJobList $jobList,
-                                                               LoggerInterface $logger,
-                                                               IManager $manager,
-                                                               IConfig $config) {
+               IDBConnection $connection,
+               IJobList $jobList,
+               LoggerInterface $logger,
+               IManager $manager,
+               IConfig $config) {
                parent::__construct($timeFactory);
                $this->connection = $connection;
                $this->jobList = $jobList;
index dab4bbffc6e8d3f8399484d189a9d3c2564a4938..66e2a9efa2e7b6392b15d0528936a805a21d7b1b 100644 (file)
 
 namespace OCA\DAV\BulkUpload;
 
+use OCA\DAV\Connector\Sabre\MtimeSanitizer;
+use OCP\AppFramework\Http;
+use OCP\Files\DavUtil;
+use OCP\Files\Folder;
 use Psr\Log\LoggerInterface;
 use Sabre\DAV\Server;
 use Sabre\DAV\ServerPlugin;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use OCP\Files\DavUtil;
-use OCP\Files\Folder;
-use OCP\AppFramework\Http;
-use OCA\DAV\Connector\Sabre\MtimeSanitizer;
 
 class BulkUploadPlugin extends ServerPlugin {
        private Folder $userFolder;
index 16c83fee64e31fbd2805167583d81afb14df6ba7..930e86c28b58273998a715d4f30f4d387789e63b 100644 (file)
 
 namespace OCA\DAV\BulkUpload;
 
-use Sabre\HTTP\RequestInterface;
+use OCP\AppFramework\Http;
 use Sabre\DAV\Exception;
 use Sabre\DAV\Exception\BadRequest;
 use Sabre\DAV\Exception\LengthRequired;
-use OCP\AppFramework\Http;
+use Sabre\HTTP\RequestInterface;
 
 class MultipartRequestParser {
 
index d67f1f5a81606b976c649560fdcf688060873561..68b71404371f040e668bfa73dfa1551aefa7cb5b 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
@@ -25,8 +26,8 @@ declare(strict_types=1);
 
 namespace OCA\DAV\CalDAV\AppCalendar;
 
-use OCA\DAV\CalDAV\Plugin;
 use OCA\DAV\CalDAV\Integration\ExternalCalendar;
+use OCA\DAV\CalDAV\Plugin;
 use OCP\Calendar\ICalendar;
 use OCP\Calendar\ICreateFromString;
 use OCP\Constants;
index cdf7cb9059a60b7f7c7925ad481342b780c7eca5..ddf76e27f3a19894458a4f21b2023ac7ce2fd6ae 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 985b137c9557eb6f6f20fd7ba643ba14161c42b2..bfcab35f74e89d6c087bc6a72171c53936942b28 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 70b2e859f89a4ad90282767d5df951a39ec5d92e..95176283f11d445399b58cc948f41171fb1e85a2 100644 (file)
@@ -67,11 +67,11 @@ class BirthdayService {
         * BirthdayService constructor.
         */
        public function __construct(CalDavBackend $calDavBackEnd,
-                                                               CardDavBackend $cardDavBackEnd,
-                                                               GroupPrincipalBackend $principalBackend,
-                                                               IConfig $config,
-                                                               IDBConnection $dbConnection,
-                                                               IL10N $l10n) {
+               CardDavBackend $cardDavBackEnd,
+               GroupPrincipalBackend $principalBackend,
+               IConfig $config,
+               IDBConnection $dbConnection,
+               IL10N $l10n) {
                $this->calDavBackEnd = $calDavBackEnd;
                $this->cardDavBackEnd = $cardDavBackEnd;
                $this->principalBackend = $principalBackend;
@@ -81,8 +81,8 @@ class BirthdayService {
        }
 
        public function onCardChanged(int $addressBookId,
-                                                                 string $cardUri,
-                                                                 string $cardData): void {
+               string $cardUri,
+               string $cardData): void {
                if (!$this->isGloballyEnabled()) {
                        return;
                }
@@ -117,7 +117,7 @@ class BirthdayService {
        }
 
        public function onCardDeleted(int $addressBookId,
-                                                                 string $cardUri): void {
+               string $cardUri): void {
                if (!$this->isGloballyEnabled()) {
                        return;
                }
@@ -164,9 +164,9 @@ class BirthdayService {
         * @throws InvalidDataException
         */
        public function buildDateFromContact(string  $cardData,
-                                                                                string  $dateField,
-                                                                                string  $postfix,
-                                                                                ?string $reminderOffset):?VCalendar {
+               string  $dateField,
+               string  $postfix,
+               ?string $reminderOffset):?VCalendar {
                if (empty($cardData)) {
                        return null;
                }
@@ -322,7 +322,7 @@ class BirthdayService {
         * @return bool
         */
        public function birthdayEvenChanged(string $existingCalendarData,
-                                                                               VCalendar $newCalendarData):bool {
+               VCalendar $newCalendarData):bool {
                try {
                        $existingBirthday = Reader::read($existingCalendarData);
                } catch (Exception $ex) {
@@ -366,11 +366,11 @@ class BirthdayService {
         * @throws \Sabre\DAV\Exception\BadRequest
         */
        private function updateCalendar(string $cardUri,
-                                                                       string $cardData,
-                                                                       array $book,
-                                                                       int $calendarId,
-                                                                       array $type,
-                                                                       ?string $reminderOffset):void {
+               string $cardData,
+               array $book,
+               int $calendarId,
+               array $type,
+               ?string $reminderOffset):void {
                $objectUri = $book['uri'] . '-' . $cardUri . $type['postfix'] . '.ics';
                $calendarData = $this->buildDateFromContact($cardData, $type['field'], $type['postfix'], $reminderOffset);
                $existing = $this->calDavBackEnd->getCalendarObject($calendarId, $objectUri);
@@ -469,9 +469,9 @@ class BirthdayService {
         * @return string The formatted title
         */
        private function formatTitle(string $field,
-                                                                string $name,
-                                                                int $year = null,
-                                                                bool $supports4Byte = true):string {
+               string $name,
+               int $year = null,
+               bool $supports4Byte = true):string {
                if ($supports4Byte) {
                        switch ($field) {
                                case 'BDAY':
index de20c9ac3aefba192861439811a0b365ff15f43b..397cff3803737f94ab8ee44416783d4dd511934f 100644 (file)
@@ -33,7 +33,6 @@ use OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer;
 use OCP\Calendar\Exceptions\CalendarException;
 use OCP\Calendar\ICreateFromString;
 use OCP\Calendar\IHandleImipMessage;
-use OCP\Calendar\ISchedulingInformation;
 use OCP\Constants;
 use Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp;
 use Sabre\DAV\Exception\Conflict;
@@ -52,8 +51,8 @@ class CalendarImpl implements ICreateFromString, IHandleImipMessage {
        private array $calendarInfo;
 
        public function __construct(Calendar $calendar,
-                                                               array $calendarInfo,
-                                                               CalDavBackend $backend) {
+               array $calendarInfo,
+               CalDavBackend $backend) {
                $this->calendar = $calendar;
                $this->calendarInfo = $calendarInfo;
                $this->backend = $backend;
index 32bcff900c222a92321d48cb370c9297d56dc250..7f4bd9054e085f38f931a697a26e81174f9d33b4 100644 (file)
@@ -45,8 +45,8 @@ class CalendarObject extends \Sabre\CalDAV\CalendarObject {
         * @param array $objectData
         */
        public function __construct(CalDavBackend $caldavBackend, IL10N $l10n,
-                                                               array $calendarInfo,
-                                                               array $objectData) {
+               array $calendarInfo,
+               array $objectData) {
                parent::__construct($caldavBackend, $calendarInfo, $objectData);
 
                if ($this->isShared()) {
index d8d6ea07ed241cf11ecd6d7f5b2f2a5c450f11e9..0f9914dcf98dd42246570da1a527aca1940a2d8f 100644 (file)
@@ -25,15 +25,9 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\CalDAV;
 
-use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CalDAV\Schedule\IMipService;
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\IConfig;
 use Sabre\VObject\Component\VCalendar;
 use Sabre\VObject\Component\VEvent;
-use Sabre\VObject\Component\VTimeZone;
-use Sabre\VObject\Component\VTodo;
-use function max;
 
 class EventComparisonService {
 
index 29daca4e09206c2385d71312ccb0ace3109e12f5..84dd05dfa555989e270ec6a44e9a68e609313adb 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /*
  * *
@@ -25,8 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\CalDAV\FreeBusy;
 
-use DateTimeInterface;
-use DateTimeZone;
 use Sabre\VObject\Component\VCalendar;
 
 /**
index 4f7dfea268227994df8676aba330277e49848776..a652b6ef1e5297d3f5146c0632581d96aefb8dbc 100644 (file)
@@ -52,7 +52,7 @@ class PublicCalendarRoot extends Collection {
         * @param IConfig $config
         */
        public function __construct(CalDavBackend $caldavBackend, IL10N $l10n,
-                                                IConfig $config, LoggerInterface $logger) {
+               IConfig $config, LoggerInterface $logger) {
                $this->caldavBackend = $caldavBackend;
                $this->l10n = $l10n;
                $this->config = $config;
index 1d8505af8aefe810cef310a075f96f403d4c940b..fedd918e6a482bc2590b77b431959a17bb8c7f5c 100644 (file)
@@ -114,7 +114,7 @@ class PublishPlugin extends ServerPlugin {
                $this->server = $server;
 
                $this->server->on('method:POST', [$this, 'httpPost']);
-               $this->server->on('propFind',    [$this, 'propFind']);
+               $this->server->on('propFind', [$this, 'propFind']);
        }
 
        public function propFind(PropFind $propFind, INode $node) {
@@ -184,72 +184,72 @@ class PublishPlugin extends ServerPlugin {
 
                        case '{'.self::NS_CALENDARSERVER.'}publish-calendar':
 
-                       // We can only deal with IShareableCalendar objects
-                       if (!$node instanceof Calendar) {
-                               return;
-                       }
-                       $this->server->transactionType = 'post-publish-calendar';
+                               // We can only deal with IShareableCalendar objects
+                               if (!$node instanceof Calendar) {
+                                       return;
+                               }
+                               $this->server->transactionType = 'post-publish-calendar';
 
-                       // Getting ACL info
-                       $acl = $this->server->getPlugin('acl');
+                               // Getting ACL info
+                               $acl = $this->server->getPlugin('acl');
 
-                       // If there's no ACL support, we allow everything
-                       if ($acl) {
-                               /** @var \Sabre\DAVACL\Plugin $acl */
-                               $acl->checkPrivileges($path, '{DAV:}write');
+                               // If there's no ACL support, we allow everything
+                               if ($acl) {
+                                       /** @var \Sabre\DAVACL\Plugin $acl */
+                                       $acl->checkPrivileges($path, '{DAV:}write');
 
-                               $limitSharingToOwner = $this->config->getAppValue('dav', 'limitAddressBookAndCalendarSharingToOwner', 'no') === 'yes';
-                               $isOwner = $acl->getCurrentUserPrincipal() === $node->getOwner();
-                               if ($limitSharingToOwner && !$isOwner) {
-                                       return;
+                                       $limitSharingToOwner = $this->config->getAppValue('dav', 'limitAddressBookAndCalendarSharingToOwner', 'no') === 'yes';
+                                       $isOwner = $acl->getCurrentUserPrincipal() === $node->getOwner();
+                                       if ($limitSharingToOwner && !$isOwner) {
+                                               return;
+                                       }
                                }
-                       }
 
-                       $node->setPublishStatus(true);
+                               $node->setPublishStatus(true);
 
-                       // iCloud sends back the 202, so we will too.
-                       $response->setStatus(202);
+                               // iCloud sends back the 202, so we will too.
+                               $response->setStatus(202);
 
-                       // Adding this because sending a response body may cause issues,
-                       // and I wanted some type of indicator the response was handled.
-                       $response->setHeader('X-Sabre-Status', 'everything-went-well');
+                               // Adding this because sending a response body may cause issues,
+                               // and I wanted some type of indicator the response was handled.
+                               $response->setHeader('X-Sabre-Status', 'everything-went-well');
 
-                       // Breaking the event chain
-                       return false;
+                               // Breaking the event chain
+                               return false;
 
                        case '{'.self::NS_CALENDARSERVER.'}unpublish-calendar':
 
-                       // We can only deal with IShareableCalendar objects
-                       if (!$node instanceof Calendar) {
-                               return;
-                       }
-                       $this->server->transactionType = 'post-unpublish-calendar';
+                               // We can only deal with IShareableCalendar objects
+                               if (!$node instanceof Calendar) {
+                                       return;
+                               }
+                               $this->server->transactionType = 'post-unpublish-calendar';
 
-                       // Getting ACL info
-                       $acl = $this->server->getPlugin('acl');
+                               // Getting ACL info
+                               $acl = $this->server->getPlugin('acl');
 
-                       // If there's no ACL support, we allow everything
-                       if ($acl) {
-                               /** @var \Sabre\DAVACL\Plugin $acl */
-                               $acl->checkPrivileges($path, '{DAV:}write');
+                               // If there's no ACL support, we allow everything
+                               if ($acl) {
+                                       /** @var \Sabre\DAVACL\Plugin $acl */
+                                       $acl->checkPrivileges($path, '{DAV:}write');
 
-                               $limitSharingToOwner = $this->config->getAppValue('dav', 'limitAddressBookAndCalendarSharingToOwner', 'no') === 'yes';
-                               $isOwner = $acl->getCurrentUserPrincipal() === $node->getOwner();
-                               if ($limitSharingToOwner && !$isOwner) {
-                                       return;
+                                       $limitSharingToOwner = $this->config->getAppValue('dav', 'limitAddressBookAndCalendarSharingToOwner', 'no') === 'yes';
+                                       $isOwner = $acl->getCurrentUserPrincipal() === $node->getOwner();
+                                       if ($limitSharingToOwner && !$isOwner) {
+                                               return;
+                                       }
                                }
-                       }
 
-                       $node->setPublishStatus(false);
+                               $node->setPublishStatus(false);
 
-                       $response->setStatus(200);
+                               $response->setStatus(200);
 
-                       // Adding this because sending a response body may cause issues,
-                       // and I wanted some type of indicator the response was handled.
-                       $response->setHeader('X-Sabre-Status', 'everything-went-well');
+                               // Adding this because sending a response body may cause issues,
+                               // and I wanted some type of indicator the response was handled.
+                               $response->setHeader('X-Sabre-Status', 'everything-went-well');
 
-                       // Breaking the event chain
-                       return false;
+                               // Breaking the event chain
+                               return false;
 
                }
        }
index b0476e9594c1e614aed26bce37000cf6084d5dac..f1f5d8c4ac36ca6739a88477d7a63adf61e56500 100644 (file)
@@ -51,7 +51,7 @@ class Backend {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(IDBConnection $db,
-                                                               ITimeFactory $timeFactory) {
+               ITimeFactory $timeFactory) {
                $this->db = $db;
                $this->timeFactory = $timeFactory;
        }
@@ -114,17 +114,17 @@ class Backend {
         * @return int The insert id
         */
        public function insertReminder(int $calendarId,
-                                                                  int $objectId,
-                                                                  string $uid,
-                                                                  bool $isRecurring,
-                                                                  int $recurrenceId,
-                                                                  bool $isRecurrenceException,
-                                                                  string $eventHash,
-                                                                  string $alarmHash,
-                                                                  string $type,
-                                                                  bool $isRelative,
-                                                                  int $notificationDate,
-                                                                  bool $isRepeatBased):int {
+               int $objectId,
+               string $uid,
+               bool $isRecurring,
+               int $recurrenceId,
+               bool $isRecurrenceException,
+               string $eventHash,
+               string $alarmHash,
+               string $type,
+               bool $isRelative,
+               int $notificationDate,
+               bool $isRepeatBased):int {
                $query = $this->db->getQueryBuilder();
                $query->insert('calendar_reminders')
                        ->values([
@@ -153,7 +153,7 @@ class Backend {
         * @param int $newNotificationDate
         */
        public function updateReminder(int $reminderId,
-                                                                  int $newNotificationDate):void {
+               int $newNotificationDate):void {
                $query = $this->db->getQueryBuilder();
                $query->update('calendar_reminders')
                        ->set('notification_date', $query->createNamedParameter($newNotificationDate))
index e8cbfdd0ab3687c251a4e9e4a301a3c46b503bdd..1eb3932e61116c34408b85f8b5ce2bf1caba3f2f 100644 (file)
@@ -48,7 +48,7 @@ interface INotificationProvider {
         * @return void
         */
        public function send(VEvent $vevent,
-                                                ?string $calendarDisplayName,
-                                                array  $principalEmailAddresses,
-                                                array $users = []): void;
+               ?string $calendarDisplayName,
+               array  $principalEmailAddresses,
+               array $users = []): void;
 }
index bccbec5fe3caa4656ff7269785514179fd7021c0..52c994554ccabe831c0aba58604006e772e46e04 100644 (file)
@@ -69,9 +69,9 @@ abstract class AbstractProvider implements INotificationProvider {
        protected $config;
 
        public function __construct(LoggerInterface $logger,
-                                                               L10NFactory $l10nFactory,
-                                                               IURLGenerator $urlGenerator,
-                                                               IConfig $config) {
+               L10NFactory $l10nFactory,
+               IURLGenerator $urlGenerator,
+               IConfig $config) {
                $this->logger = $logger;
                $this->l10nFactory = $l10nFactory;
                $this->urlGenerator = $urlGenerator;
@@ -88,9 +88,9 @@ abstract class AbstractProvider implements INotificationProvider {
         * @return void
         */
        abstract public function send(VEvent $vevent,
-                                                  ?string $calendarDisplayName,
-                                                  array $principalEmailAddresses,
-                                                  array $users = []): void;
+               ?string $calendarDisplayName,
+               array $principalEmailAddresses,
+               array $users = []): void;
 
        /**
         * @return string
index da275efdcf19f38d0ad2d77893ce92ef0ead5c5d..262ceb479f0d46c7cfddb51ac4be69366e348c6d 100644 (file)
@@ -58,10 +58,10 @@ class EmailProvider extends AbstractProvider {
        private IMailer $mailer;
 
        public function __construct(IConfig $config,
-                                                               IMailer $mailer,
-                                                               LoggerInterface $logger,
-                                                               L10NFactory $l10nFactory,
-                                                               IURLGenerator $urlGenerator) {
+               IMailer $mailer,
+               LoggerInterface $logger,
+               L10NFactory $l10nFactory,
+               IURLGenerator $urlGenerator) {
                parent::__construct($logger, $l10nFactory, $urlGenerator, $config);
                $this->mailer = $mailer;
        }
@@ -76,9 +76,9 @@ class EmailProvider extends AbstractProvider {
         * @throws \Exception
         */
        public function send(VEvent $vevent,
-                                                ?string $calendarDisplayName,
-                                                array $principalEmailAddresses,
-                                                array $users = []):void {
+               ?string $calendarDisplayName,
+               array $principalEmailAddresses,
+               array $users = []):void {
                $fallbackLanguage = $this->getFallbackLanguage();
 
                $organizerEmailAddress = null;
@@ -162,9 +162,9 @@ class EmailProvider extends AbstractProvider {
         * @param array $eventData
         */
        private function addBulletList(IEMailTemplate $template,
-                                                                  IL10N $l10n,
-                                                                  string $calendarDisplayName,
-                                                                  VEvent $vevent):void {
+               IL10N $l10n,
+               string $calendarDisplayName,
+               VEvent $vevent):void {
                $template->addBodyListItem($calendarDisplayName, $l10n->t('Calendar:'),
                        $this->getAbsoluteImagePath('actions/info.png'));
 
@@ -220,7 +220,7 @@ class EmailProvider extends AbstractProvider {
         * @return array<string, string[]>
         */
        private function sortEMailAddressesByLanguage(array $emails,
-                                                                                                 string $defaultLanguage):array {
+               string $defaultLanguage):array {
                $sortedByLanguage = [];
 
                foreach ($emails as $emailAddress => $parameters) {
@@ -435,7 +435,7 @@ class EmailProvider extends AbstractProvider {
        }
 
        private function isDayEqual(DateTime $dtStart,
-                                                               DateTime $dtEnd):bool {
+               DateTime $dtEnd):bool {
                return $dtStart->format('Y-m-d') === $dtEnd->format('Y-m-d');
        }
 
index ab7f12c570a5dcd88d11efa59543630d19a58fda..79e4e44e6d8c3c0eca41c1e9c892adb76690c8ae 100644 (file)
@@ -59,11 +59,11 @@ class PushProvider extends AbstractProvider {
        private $timeFactory;
 
        public function __construct(IConfig $config,
-                                                               IManager $manager,
-                                                               LoggerInterface $logger,
-                                                               L10NFactory $l10nFactory,
-                                                               IURLGenerator $urlGenerator,
-                                                               ITimeFactory $timeFactory) {
+               IManager $manager,
+               LoggerInterface $logger,
+               L10NFactory $l10nFactory,
+               IURLGenerator $urlGenerator,
+               ITimeFactory $timeFactory) {
                parent::__construct($logger, $l10nFactory, $urlGenerator, $config);
                $this->manager = $manager;
                $this->timeFactory = $timeFactory;
@@ -79,9 +79,9 @@ class PushProvider extends AbstractProvider {
         * @throws \Exception
         */
        public function send(VEvent $vevent,
-                                                ?string $calendarDisplayName,
-                                                array $principalEmailAddresses,
-                                                array $users = []):void {
+               ?string $calendarDisplayName,
+               array $principalEmailAddresses,
+               array $users = []):void {
                if ($this->config->getAppValue('dav', 'sendEventRemindersPush', 'yes') !== 'yes') {
                        return;
                }
index c658ef2ff016540dd0c156c535c7a6276419a555..271d8e88fa77caa1bdf16a2aecf1b3b5661de031 100644 (file)
@@ -66,8 +66,8 @@ class Notifier implements INotifier {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(IFactory $factory,
-                                                               IURLGenerator $urlGenerator,
-                                                               ITimeFactory $timeFactory) {
+               IURLGenerator $urlGenerator,
+               ITimeFactory $timeFactory) {
                $this->l10nFactory = $factory;
                $this->urlGenerator = $urlGenerator;
                $this->timeFactory = $timeFactory;
@@ -102,7 +102,7 @@ class Notifier implements INotifier {
         * @throws \Exception
         */
        public function prepare(INotification $notification,
-                                                       string $languageCode):INotification {
+               string $languageCode):INotification {
                if ($notification->getApp() !== Application::APP_ID) {
                        throw new \InvalidArgumentException('Notification not from this app');
                }
@@ -289,7 +289,7 @@ class Notifier implements INotifier {
         * @return bool
         */
        private function isDayEqual(DateTime $dtStart,
-                                                               DateTime $dtEnd):bool {
+               DateTime $dtEnd):bool {
                return $dtStart->format('Y-m-d') === $dtEnd->format('Y-m-d');
        }
 
index d4b22911099486bc7129c7c8718f67096d9561bf..9ededb8d015927ecd4eaf410cb88be7b5c564e8b 100644 (file)
@@ -98,14 +98,14 @@ class ReminderService {
        ];
 
        public function __construct(Backend $backend,
-                                                               NotificationProviderManager $notificationProviderManager,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               CalDavBackend $caldavBackend,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config,
-                                                               LoggerInterface $logger,
-                                                               Principal $principalConnector) {
+               NotificationProviderManager $notificationProviderManager,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               CalDavBackend $caldavBackend,
+               ITimeFactory $timeFactory,
+               IConfig $config,
+               LoggerInterface $logger,
+               Principal $principalConnector) {
                $this->backend = $backend;
                $this->notificationProviderManager = $notificationProviderManager;
                $this->userManager = $userManager;
@@ -390,12 +390,12 @@ class ReminderService {
         * @return array
         */
        private function getRemindersForVAlarm(VAlarm $valarm,
-                                                                                  array $objectData,
-                                                                                  DateTimeZone $calendarTimeZone,
-                                                                                  string $eventHash = null,
-                                                                                  string $alarmHash = null,
-                                                                                  bool $isRecurring = false,
-                                                                                  bool $isRecurrenceException = false):array {
+               array $objectData,
+               DateTimeZone $calendarTimeZone,
+               string $eventHash = null,
+               string $alarmHash = null,
+               bool $isRecurring = false,
+               bool $isRecurrenceException = false):array {
                if ($eventHash === null) {
                        $eventHash = $this->getEventHash($valarm->parent);
                }
@@ -490,7 +490,7 @@ class ReminderService {
         * @param VEvent $vevent
         */
        private function deleteOrProcessNext(array $reminder,
-                                                                                VObject\Component\VEvent $vevent):void {
+               VObject\Component\VEvent $vevent):void {
                if ($reminder['is_repeat_based'] ||
                        !$reminder['is_recurring'] ||
                        !$reminder['is_relative'] ||
@@ -673,8 +673,8 @@ class ReminderService {
         * @return VEvent|null
         */
        private function getVEventByRecurrenceId(VObject\Component\VCalendar $vcalendar,
-                                                                                        int $recurrenceId,
-                                                                                        bool $isRecurrenceException):?VEvent {
+               int $recurrenceId,
+               bool $isRecurrenceException):?VEvent {
                $vevents = $this->getAllVEventsFromVCalendar($vcalendar);
                if (count($vevents) === 0) {
                        return null;
index 32642bee1955a07c6add964ed037933df839a3e2..92c61e72780ee8d45a479688cb10a7e3dd13105f 100644 (file)
@@ -75,13 +75,13 @@ abstract class AbstractPrincipalBackend implements BackendInterface {
        private $cuType;
 
        public function __construct(IDBConnection $dbConnection,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager,
-                                                               LoggerInterface $logger,
-                                                               ProxyMapper $proxyMapper,
-                                                               string $principalPrefix,
-                                                               string $dbPrefix,
-                                                               string $cuType) {
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               LoggerInterface $logger,
+               ProxyMapper $proxyMapper,
+               string $principalPrefix,
+               string $dbPrefix,
+               string $cuType) {
                $this->db = $dbConnection;
                $this->userSession = $userSession;
                $this->groupManager = $groupManager;
@@ -165,7 +165,7 @@ abstract class AbstractPrincipalBackend implements BackendInterface {
                }
                [, $name] = \Sabre\Uri\split($path);
 
-               [$backendId, $resourceId] = explode('-',  $name, 2);
+               [$backendId, $resourceId] = explode('-', $name, 2);
 
                $query = $this->db->getQueryBuilder();
                $query->select(['id', 'backend_id', 'resource_id', 'email', 'displayname'])
@@ -309,7 +309,7 @@ abstract class AbstractPrincipalBackend implements BackendInterface {
 
                                case IRoomMetadata::CAPACITY:
                                case IResourceMetadata::VEHICLE_SEATING_CAPACITY:
-                                       $results[] = $this->searchPrincipalsByCapacity($prop,$value);
+                                       $results[] = $this->searchPrincipalsByCapacity($prop, $value);
                                        break;
 
                                default:
@@ -470,7 +470,7 @@ abstract class AbstractPrincipalBackend implements BackendInterface {
                        }
 
                        [, $name] = \Sabre\Uri\split($path);
-                       [$backendId, $resourceId] = explode('-',  $name, 2);
+                       [$backendId, $resourceId] = explode('-', $name, 2);
 
                        $query = $this->db->getQueryBuilder();
                        $query->select(['id', 'backend_id', 'resource_id', 'email', 'displayname', 'group_restrictions'])
index 20fdadbca0cb266f69e17e7bb8d7b5ffcf17bc25..45795377e111062b2404edd15be63b17ce998d7b 100644 (file)
@@ -39,10 +39,10 @@ class ResourcePrincipalBackend extends AbstractPrincipalBackend {
         * ResourcePrincipalBackend constructor.
         */
        public function __construct(IDBConnection $dbConnection,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager,
-                                                               LoggerInterface $logger,
-                                                               ProxyMapper $proxyMapper) {
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               LoggerInterface $logger,
+               ProxyMapper $proxyMapper) {
                parent::__construct($dbConnection, $userSession, $groupManager, $logger,
                        $proxyMapper, 'principals/calendar-resources', 'resource', 'RESOURCE');
        }
index 931635d632f7dce59beecdb2d265b006cbd56408..829ca7d60336cb273e9ba0f778dd1114469e09c8 100644 (file)
@@ -39,10 +39,10 @@ class RoomPrincipalBackend extends AbstractPrincipalBackend {
         * RoomPrincipalBackend constructor.
         */
        public function __construct(IDBConnection $dbConnection,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager,
-                                                               LoggerInterface $logger,
-                                                               ProxyMapper $proxyMapper) {
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               LoggerInterface $logger,
+               ProxyMapper $proxyMapper) {
                parent::__construct($dbConnection, $userSession, $groupManager, $logger,
                        $proxyMapper, 'principals/calendar-rooms', 'room', 'ROOM');
        }
index 1d92d847641b69d626d758bad3d51d623d63ba0e..9a43d5bdc915e071b79f66d78fff4e5d51bc59b2 100644 (file)
@@ -44,8 +44,8 @@ class RetentionService {
        private $calDavBackend;
 
        public function __construct(IConfig $config,
-                                                               ITimeFactory $time,
-                                                               CalDavBackend $calDavBackend) {
+               ITimeFactory $time,
+               CalDavBackend $calDavBackend) {
                $this->config = $config;
                $this->time = $time;
                $this->calDavBackend = $calDavBackend;
index 437a135e38c4a2745527f45826c208942a398692..fcc2ae1e166c51dedd7b17ac0a5ede1e640c8d01 100644 (file)
@@ -86,14 +86,14 @@ class IMipPlugin extends SabreIMipPlugin {
        private EventComparisonService $eventComparisonService;
 
        public function __construct(IConfig $config,
-                                                               IMailer $mailer,
-                                                               LoggerInterface $logger,
-                                                               ITimeFactory $timeFactory,
-                                                               Defaults $defaults,
-                                                               IUserManager $userManager,
-                                                               $userId,
-                                                               IMipService $imipService,
-                                                               EventComparisonService $eventComparisonService) {
+               IMailer $mailer,
+               LoggerInterface $logger,
+               ITimeFactory $timeFactory,
+               Defaults $defaults,
+               IUserManager $userManager,
+               $userId,
+               IMipService $imipService,
+               EventComparisonService $eventComparisonService) {
                parent::__construct('');
                $this->userId = $userId;
                $this->config = $config;
@@ -305,9 +305,9 @@ class IMipPlugin extends SabreIMipPlugin {
 
                $itip_msg = $iTipMessage->message->serialize();
                $message->attachInline(
-                               $itip_msg,
+                       $itip_msg,
                        'event.ics',
-                               'text/calendar; method=' . $iTipMessage->method,
+                       'text/calendar; method=' . $iTipMessage->method,
                );
 
                try {
index 1e7b0bc3b02cd83cb381486d2b65ee318136af2f..4cd859d79ac0a06b24f35dd43ca2e23d347cb176 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /*
  * DAV App
@@ -57,10 +58,10 @@ class IMipService {
        ];
 
        public function __construct(URLGenerator $urlGenerator,
-                                                               IConfig $config,
-                                                               IDBConnection $db,
-                                                               ISecureRandom $random,
-                                                               L10NFactory $l10nFactory) {
+               IConfig $config,
+               IDBConnection $db,
+               ISecureRandom $random,
+               L10NFactory $l10nFactory) {
                $this->urlGenerator = $urlGenerator;
                $this->config = $config;
                $this->db = $db;
@@ -99,7 +100,7 @@ class IMipService {
                        return $default;
                }
                $newstring = $vevent->$property->getValue();
-               if(isset($oldVEvent->$property) && $oldVEvent->$property->getValue() !== $newstring ) {
+               if(isset($oldVEvent->$property) && $oldVEvent->$property->getValue() !== $newstring) {
                        $oldstring = $oldVEvent->$property->getValue();
                        return sprintf($strikethrough, $oldstring, $newstring);
                }
@@ -162,7 +163,7 @@ class IMipService {
 
                if(!empty($oldVEvent)) {
                        $oldMeetingWhen = $this->generateWhenString($oldVEvent);
-                       $data['meeting_title_html']     = $this->generateDiffString($vEvent, $oldVEvent, 'SUMMARY', $data['meeting_title']);
+                       $data['meeting_title_html'] = $this->generateDiffString($vEvent, $oldVEvent, 'SUMMARY', $data['meeting_title']);
                        $data['meeting_description_html'] = $this->generateDiffString($vEvent, $oldVEvent, 'DESCRIPTION', $data['meeting_description']);
                        $data['meeting_location_html'] = $this->generateLinkifiedDiffString($vEvent, $oldVEvent, 'LOCATION', $data['meeting_location']);
 
@@ -281,7 +282,8 @@ class IMipService {
                $strikethrough = "<span style='text-decoration: line-through'>%s</span>";
 
                $newMeetingWhen = $this->generateWhenString($vEvent);
-               $newSummary = isset($vEvent->SUMMARY) && (string)$vEvent->SUMMARY !== '' ? (string)$vEvent->SUMMARY : $this->l10n->t('Untitled event');;
+               $newSummary = isset($vEvent->SUMMARY) && (string)$vEvent->SUMMARY !== '' ? (string)$vEvent->SUMMARY : $this->l10n->t('Untitled event');
+               ;
                $newDescription = isset($vEvent->DESCRIPTION) && (string)$vEvent->DESCRIPTION !== '' ? (string)$vEvent->DESCRIPTION : $defaultVal;
                $newUrl = isset($vEvent->URL) && (string)$vEvent->URL !== '' ? sprintf('<a href="%1$s">%1$s</a>', $vEvent->URL) : $defaultVal;
                $newLocation = isset($vEvent->LOCATION) && (string)$vEvent->LOCATION !== '' ? (string)$vEvent->LOCATION : $defaultVal;
@@ -483,7 +485,7 @@ class IMipService {
                                htmlspecialchars($organizer->getNormalizedValue()),
                                htmlspecialchars($organizerName ?: $organizerEmail));
                        $organizerText = sprintf('%s <%s>', $organizerName, $organizerEmail);
-                       if(isset($organizer['PARTSTAT']) ) {
+                       if(isset($organizer['PARTSTAT'])) {
                                /** @var Parameter $partstat */
                                $partstat = $organizer['PARTSTAT'];
                                if(strcasecmp($partstat->getValue(), 'ACCEPTED') === 0) {
index 16acc72d9886ccb37166ca2191902ac182a7ca37..2845ccdf6c213ea5953e67901e28b0d025873dd1 100644 (file)
@@ -36,7 +36,6 @@ use OCA\DAV\CalDAV\CalendarHome;
 use OCP\IConfig;
 use Psr\Log\LoggerInterface;
 use Sabre\CalDAV\ICalendar;
-use Sabre\CalDAV\Schedule\IOutbox;
 use Sabre\DAV\INode;
 use Sabre\DAV\IProperties;
 use Sabre\DAV\PropFind;
@@ -45,7 +44,6 @@ use Sabre\DAV\Xml\Property\LocalHref;
 use Sabre\DAVACL\IPrincipal;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use Sabre\VObject;
 use Sabre\VObject\Component;
 use Sabre\VObject\Component\VCalendar;
 use Sabre\VObject\Component\VEvent;
index 8857d0f14e7817c739803679d48d4aa9bee0d499..d1c35002fcd34073aeff261c845e1275fcb86d01 100644 (file)
@@ -27,7 +27,8 @@ namespace OCA\DAV\CalDAV\Status;
 
 class Status {
 
-       public function __construct(private string $status = '', private ?string $message = null, private ?string $customMessage = null){}
+       public function __construct(private string $status = '', private ?string $message = null, private ?string $customMessage = null) {
+       }
 
        public function getStatus(): string {
                return $this->status;
index 92554f800c332d7ffaed43e6d172cf7b6a2e5291..1dce2c4c3a398a71f41ee63faf2f15206ab15b47 100644 (file)
@@ -48,16 +48,13 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\CalDAV\Status;
 
-use DateTimeZone;
 use OC\Calendar\CalendarQuery;
 use OCA\DAV\CalDAV\CalendarImpl;
 use OCA\DAV\CalDAV\FreeBusy\FreeBusyGenerator;
 use OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer;
-use OCA\DAV\CalDAV\IUser;
 use OCA\DAV\CalDAV\Schedule\Plugin as SchedulePlugin;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Calendar\IManager;
-use OCP\Calendar\ISchedulingInformation;
 use OCP\IL10N;
 use OCP\IUser as User;
 use OCP\UserStatus\IUserStatus;
@@ -66,7 +63,6 @@ use Sabre\DAV\Exception\NotAuthenticated;
 use Sabre\DAVACL\Exception\NeedPrivileges;
 use Sabre\DAVACL\Plugin as AclPlugin;
 use Sabre\VObject\Component;
-use Sabre\VObject\Component\VCalendar;
 use Sabre\VObject\Component\VEvent;
 use Sabre\VObject\Parameter;
 use Sabre\VObject\Property;
@@ -74,10 +70,11 @@ use Sabre\VObject\Reader;
 
 class StatusService {
        public function __construct(private ITimeFactory $timeFactory,
-                                                               private IManager $calendarManager,
-                                                               private InvitationResponseServer $server,
-                                                               private IL10N $l10n,
-                                                               private FreeBusyGenerator $generator){}
+               private IManager $calendarManager,
+               private InvitationResponseServer $server,
+               private IL10N $l10n,
+               private FreeBusyGenerator $generator) {
+       }
 
        public function processCalendarAvailability(User $user, ?string $availability): ?Status {
                $userId = $user->getUID();
@@ -172,7 +169,7 @@ class StatusService {
                foreach ($calendarEvents as $calendarEvent) {
                        $vEvent = new VEvent($calendar, 'VEVENT');
                        foreach($calendarEvent['objects'] as $component) {
-                               foreach ($component as $key =>  $value) {
+                               foreach ($component as $key => $value) {
                                        $vEvent->add($key, $value[0]);
                                }
                        }
index 5730b7a10028167df51856e84bbbd78cf492b4fb..b1a3fea21b71d1ce52a27164d3eff6e0c8e0bd94 100644 (file)
@@ -48,9 +48,9 @@ class DeletedCalendarObject implements IACL, ICalendarObject, IRestorable {
        private $calDavBackend;
 
        public function __construct(string $name,
-                                                               array $objectData,
-                                                               string $principalUri,
-                                                               CalDavBackend $calDavBackend) {
+               array $objectData,
+               string $principalUri,
+               CalDavBackend $calDavBackend) {
                $this->name = $name;
                $this->objectData = $objectData;
                $this->calDavBackend = $calDavBackend;
index 20d05c047b1309e5614e24e364684c0d0db34a6a..f7f0bd7b5127df6361180968c039f6655fbeff37 100644 (file)
@@ -45,7 +45,7 @@ class DeletedCalendarObjectsCollection implements ICalendarObjectContainer {
        private $principalInfo;
 
        public function __construct(CalDavBackend $caldavBackend,
-                                                               array $principalInfo) {
+               array $principalInfo) {
                $this->caldavBackend = $caldavBackend;
                $this->principalInfo = $principalInfo;
        }
index 58ff76beca1e8101208a381c441d8ce741b823f0..8a661732f195644e0b0f8b16f51d980bb381a145 100644 (file)
@@ -56,7 +56,7 @@ class Plugin extends ServerPlugin {
        private $server;
 
        public function __construct(IRequest $request,
-                                                               RetentionService $retentionService) {
+               RetentionService $retentionService) {
                $this->disableTrashbin = $request->getHeader('X-NC-CalDAV-No-Trashbin') === '1';
                $this->retentionService = $retentionService;
        }
index 34d11e51eb3ec97201d6592ff956a2c7abf5197a..e9bf6da19e8edbd9435d826d353b88f369a6d315 100644 (file)
@@ -50,7 +50,7 @@ class TrashbinHome implements IACL, ICollection, IProperties {
        private $principalInfo;
 
        public function __construct(CalDavBackend $caldavBackend,
-                                                               array $principalInfo) {
+               array $principalInfo) {
                $this->caldavBackend = $caldavBackend;
                $this->principalInfo = $principalInfo;
        }
index 8928d05b93c9607756662192792ae8eeb09ef9fd..4035f345876549631028c36660eb71360b913f9a 100644 (file)
@@ -46,9 +46,9 @@ use Sabre\DAV\Xml\Property\Href;
 use Sabre\VObject\Component;
 use Sabre\VObject\DateTimeParser;
 use Sabre\VObject\InvalidDataException;
-use Sabre\VObject\Recur\NoInstancesException;
 use Sabre\VObject\ParseException;
 use Sabre\VObject\Reader;
+use Sabre\VObject\Recur\NoInstancesException;
 use Sabre\VObject\Splitter\ICalendar;
 use Sabre\VObject\UUIDUtil;
 use function count;
index 53639f84f843eab7b0aa43e9e34bed45e951747a..f0a5ee05e82d835df0e86a7406580a1ce2fc8770 100644 (file)
@@ -55,10 +55,10 @@ class Backend {
        protected $userManager;
 
        public function __construct(IActivityManager $activityManager,
-                                                               IGroupManager $groupManager,
-                                                               IUserSession $userSession,
-                                                               IAppManager $appManager,
-                                                               IUserManager $userManager) {
+               IGroupManager $groupManager,
+               IUserSession $userSession,
+               IAppManager $appManager,
+               IUserManager $userManager) {
                $this->activityManager = $activityManager;
                $this->groupManager = $groupManager;
                $this->userSession = $userSession;
index 0f4acaaa434f922004e1adf98ec835ab8693ead0..a9ed767ffc7194ce8b9a2e29b642d3124d770289 100644 (file)
@@ -53,11 +53,11 @@ class Addressbook extends Base {
        protected $eventMerger;
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IEventMerger $eventMerger) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               IEventMerger $eventMerger) {
                parent::__construct($userManager, $groupManager, $url);
                $this->languageFactory = $languageFactory;
                $this->activityManager = $activityManager;
index a59c3b57262fdf9b397d526c293fb82371bd1022..f475f9d76b75324cfacde77ce3b1fed836d0284a 100644 (file)
@@ -51,8 +51,8 @@ abstract class Base implements IProvider {
        protected $url;
 
        public function __construct(IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IURLGenerator $urlGenerator) {
+               IGroupManager $groupManager,
+               IURLGenerator $urlGenerator) {
                $this->userManager = $userManager;
                $this->groupManager = $groupManager;
                $this->url = $urlGenerator;
index e2abdda161a16f852a79a4434ff392406edda537..8f205942d4bce354268743e817496a07a4350752 100644 (file)
@@ -53,12 +53,12 @@ class Card extends Base {
        protected $appManager;
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IEventMerger $eventMerger,
-                                                               IAppManager $appManager) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               IEventMerger $eventMerger,
+               IAppManager $appManager) {
                parent::__construct($userManager, $groupManager, $url);
                $this->languageFactory = $languageFactory;
                $this->activityManager = $activityManager;
index c385d0e7b86e58a24179b32e6e5b68b9848b9ca1..7972042947999a720da7d2bdbc5acd0ea516ed8d 100644 (file)
@@ -63,10 +63,10 @@ class AddressBookImpl implements IAddressBook {
         * @param IUrlGenerator $urlGenerator
         */
        public function __construct(
-                       AddressBook $addressBook,
-                       array $addressBookInfo,
-                       CardDavBackend $backend,
-                       IURLGenerator $urlGenerator) {
+               AddressBook $addressBook,
+               array $addressBookInfo,
+               CardDavBackend $backend,
+               IURLGenerator $urlGenerator) {
                $this->addressBook = $addressBook;
                $this->addressBookInfo = $addressBookInfo;
                $this->backend = $backend;
index c82943d2879ed5674ee0d41c809c4cc6b4fb63f6..f450dbe2ef96c850fa8b14d4d8714b4140d241d6 100644 (file)
@@ -41,11 +41,11 @@ class AddressBookRoot extends \Sabre\CardDAV\AddressBookRoot {
         * @param string $principalPrefix
         */
        public function __construct(\Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend,
-                                                               \Sabre\CardDAV\Backend\BackendInterface $carddavBackend,
-                                                               PluginManager $pluginManager,
-                                                               ?IUser $user,
-                                                               ?IGroupManager $groupManager,
-                                                               string $principalPrefix = 'principals') {
+               \Sabre\CardDAV\Backend\BackendInterface $carddavBackend,
+               PluginManager $pluginManager,
+               ?IUser $user,
+               ?IGroupManager $groupManager,
+               string $principalPrefix = 'principals') {
                parent::__construct($principalBackend, $carddavBackend, $principalPrefix);
                $this->pluginManager = $pluginManager;
                $this->user = $user;
index 72a9bd88c1e23c351de6014bfad07dcb09177653..093255392e0cc2db8bd3ad11868c8a63da14e932 100644 (file)
@@ -24,8 +24,7 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\CardDAV;
 
-class Card extends \Sabre\CardDAV\Card
-{
+class Card extends \Sabre\CardDAV\Card {
        public function getId(): int {
                return (int) $this->cardData['id'];
        }
index 8be0bd8050c7633b0bd5c70b70c85304e1c6ba7c..c1f0fe0c93c9ca6217ffdcb62f7c920f9fefd6ae 100644 (file)
@@ -35,6 +35,7 @@
  */
 namespace OCA\DAV\CardDAV;
 
+use OC\Search\Filter\DateTimeFilter;
 use OCA\DAV\Connector\Sabre\Principal;
 use OCA\DAV\DAV\Sharing\Backend;
 use OCA\DAV\DAV\Sharing\IShareable;
@@ -53,7 +54,6 @@ use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IDBConnection;
 use OCP\IGroupManager;
 use OCP\IUserManager;
-use OC\Search\Filter\DateTimeFilter;
 use PDO;
 use Sabre\CardDAV\Backend\BackendInterface;
 use Sabre\CardDAV\Backend\SyncSupport;
@@ -98,10 +98,10 @@ class CardDavBackend implements BackendInterface, SyncSupport {
         * @param IEventDispatcher $dispatcher
         */
        public function __construct(IDBConnection $db,
-                                                               Principal $principalBackend,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IEventDispatcher $dispatcher) {
+               Principal $principalBackend,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               IEventDispatcher $dispatcher) {
                $this->db = $db;
                $this->principalBackend = $principalBackend;
                $this->userManager = $userManager;
@@ -1093,9 +1093,9 @@ class CardDavBackend implements BackendInterface, SyncSupport {
         * @return array
         */
        public function searchPrincipalUri(string $principalUri,
-                                                                          string $pattern,
-                                                                          array $searchProperties,
-                                                                          array $options = []): array {
+               string $pattern,
+               array $searchProperties,
+               array $options = []): array {
                return $this->atomic(function () use ($principalUri, $pattern, $searchProperties, $options) {
                        $addressBookIds = array_map(static function ($row):int {
                                return (int) $row['id'];
@@ -1123,9 +1123,9 @@ class CardDavBackend implements BackendInterface, SyncSupport {
         * @return array
         */
        private function searchByAddressBookIds(array $addressBookIds,
-                                                                                       string $pattern,
-                                                                                       array $searchProperties,
-                                                                                       array $options = []): array {
+               string $pattern,
+               array $searchProperties,
+               array $options = []): array {
                if (empty($addressBookIds)) {
                        return [];
                }
index e19b52b47836203fd1b71cce3488bba6ccf072a8..8ea75fbef74745c60acf4c1f1ff56ff3d37a8971 100644 (file)
@@ -29,8 +29,8 @@ namespace OCA\DAV\CardDAV;
 
 use Exception;
 use OCP\Accounts\IAccountManager;
-use OCP\IURLGenerator;
 use OCP\IImage;
+use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 use Sabre\VObject\Component\VCard;
index 0d31f1f523950a360269441c110931c721ea1d9e..9f05ec2354aaf3ce85646a66d01523ca62b6144a 100644 (file)
@@ -34,12 +34,12 @@ use OCP\Files\NotFoundException;
 use OCP\Files\NotPermittedException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\ISimpleFolder;
+use Psr\Log\LoggerInterface;
 use Sabre\CardDAV\Card;
 use Sabre\VObject\Document;
 use Sabre\VObject\Parameter;
 use Sabre\VObject\Property\Binary;
 use Sabre\VObject\Reader;
-use Psr\Log\LoggerInterface;
 
 class PhotoCache {
 
index 09c31683069fb83c7374a107c1903a1250562ea8..66927d35e0421c1321a1812a60aa6cf0e7297aef 100644 (file)
@@ -30,7 +30,6 @@
  */
 namespace OCA\DAV\CardDAV;
 
-use OC\Accounts\AccountManager;
 use OCP\AppFramework\Db\TTransactional;
 use OCP\AppFramework\Http;
 use OCP\IDBConnection;
@@ -57,10 +56,10 @@ class SyncService {
        protected string $certPath;
 
        public function __construct(CardDavBackend $backend,
-                                                               IUserManager $userManager,
-                                                               IDBConnection $dbConnection,
-                                                               LoggerInterface $logger,
-                                                               Converter $converter) {
+               IUserManager $userManager,
+               IDBConnection $dbConnection,
+               LoggerInterface $logger,
+               Converter $converter) {
                $this->backend = $backend;
                $this->userManager = $userManager;
                $this->logger = $logger;
@@ -97,7 +96,7 @@ class SyncService {
                        $cardUri = basename($resource);
                        if (isset($status[200])) {
                                $vCard = $this->download($url, $userName, $sharedSecret, $resource);
-                               $this->atomic(function() use ($addressBookId, $cardUri, $vCard) {
+                               $this->atomic(function () use ($addressBookId, $cardUri, $vCard) {
                                        $existingCard = $this->backend->getCard($addressBookId, $cardUri);
                                        if ($existingCard === false) {
                                                $this->backend->createCard($addressBookId, $cardUri, $vCard['body']);
@@ -117,7 +116,7 @@ class SyncService {
         * @throws \Sabre\DAV\Exception\BadRequest
         */
        public function ensureSystemAddressBookExists(string $principal, string $uri, array $properties): ?array {
-               return $this->atomic(function() use ($principal, $uri, $properties) {
+               return $this->atomic(function () use ($principal, $uri, $properties) {
                        $book = $this->backend->getAddressBooksByUri($principal, $uri);
                        if (!is_null($book)) {
                                return $book;
@@ -226,7 +225,7 @@ class SyncService {
 
                $cardId = self::getCardUri($user);
                if ($user->isEnabled()) {
-                       $this->atomic(function() use ($addressBookId, $cardId, $user) {
+                       $this->atomic(function () use ($addressBookId, $cardId, $user) {
                                $card = $this->backend->getCard($addressBookId, $cardId);
                                if ($card === false) {
                                        $vCard = $this->converter->createCardFromUser($user);
index 498c4e95be7d6499d15024f25489dd15e914283f..dc5ee0e1f218bcae3705aa5db1a3d55e3bfdd72a 100644 (file)
@@ -36,8 +36,8 @@ use OCP\IGroupManager;
 use OCP\IL10N;
 use OCP\IRequest;
 use OCP\IUserSession;
-use Sabre\CardDAV\Backend\SyncSupport;
 use Sabre\CardDAV\Backend\BackendInterface;
+use Sabre\CardDAV\Backend\SyncSupport;
 use Sabre\CardDAV\Card;
 use Sabre\DAV\Exception\Forbidden;
 use Sabre\DAV\Exception\NotFound;
index 02e500acc86a3ee58e30371251cef4c5994a0042..2d12941006753b7b6853f6456991642fb743be8a 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OCA\DAV\CardDAV;
 
 use OCA\DAV\AppInfo\PluginManager;
-use OCA\DAV\CardDAV\Integration\IAddressBookProvider;
 use OCA\DAV\CardDAV\Integration\ExternalAddressBook;
+use OCA\DAV\CardDAV\Integration\IAddressBookProvider;
 use OCA\Federation\TrustedServers;
 use OCP\AppFramework\QueryException;
 use OCP\IConfig;
@@ -42,10 +42,10 @@ use OCP\IUserSession;
 use Psr\Container\ContainerExceptionInterface;
 use Psr\Container\NotFoundExceptionInterface;
 use Sabre\CardDAV\Backend;
-use Sabre\DAV\Exception\MethodNotAllowed;
 use Sabre\CardDAV\IAddressBook;
-use function array_map;
+use Sabre\DAV\Exception\MethodNotAllowed;
 use Sabre\DAV\MkCol;
+use function array_map;
 
 class UserAddressBooks extends \Sabre\CardDAV\AddressBookHome {
        /** @var IL10N */
@@ -60,10 +60,10 @@ class UserAddressBooks extends \Sabre\CardDAV\AddressBookHome {
        private ?IGroupManager $groupManager;
 
        public function __construct(Backend\BackendInterface $carddavBackend,
-                                                               string $principalUri,
-                                                               PluginManager $pluginManager,
-                                                               ?IUser $user,
-                                                               ?IGroupManager $groupManager) {
+               string $principalUri,
+               PluginManager $pluginManager,
+               ?IUser $user,
+               ?IGroupManager $groupManager) {
                parent::__construct($carddavBackend, $principalUri);
                $this->pluginManager = $pluginManager;
                $this->user = $user;
index 9dfc539a25d8986e571395771df79552dd4fcb7b..27ecb5973e43dfa8fc24db34c4ca8dd52ba16d8b 100644 (file)
@@ -44,11 +44,11 @@ class CreateAddressBook extends Command {
                                ->setName('dav:create-addressbook')
                                ->setDescription('Create a dav addressbook')
                                ->addArgument('user',
-                                               InputArgument::REQUIRED,
-                                               'User for whom the addressbook will be created')
+                                       InputArgument::REQUIRED,
+                                       'User for whom the addressbook will be created')
                                ->addArgument('name',
-                                               InputArgument::REQUIRED,
-                                               'Name of the addressbook');
+                                       InputArgument::REQUIRED,
+                                       'Name of the addressbook');
        }
 
        protected function execute(InputInterface $input, OutputInterface $output): int {
index 58de3e36139d16ab92b064febf2570e7ea720149..1cfaa8b4e1632aca803ad8059502efde68ad7782 100644 (file)
@@ -247,7 +247,7 @@ class CommentsPlugin extends ServerPlugin {
                        throw new BadRequest('Invalid input values', 0, $e);
                } catch (\OCP\Comments\MessageTooLongException $e) {
                        $msg = 'Message exceeds allowed character limit of ';
-                       throw new BadRequest($msg . \OCP\Comments\IComment::MAX_MESSAGE_LENGTH, 0,      $e);
+                       throw new BadRequest($msg . \OCP\Comments\IComment::MAX_MESSAGE_LENGTH, 0, $e);
                }
        }
 }
index 6f58e89f1c0ee68df51fa3471fc596c72bbde66d..d613a5a188f1b54d3819655389028ef632e3d323 100644 (file)
@@ -51,9 +51,9 @@ class PublicAuth extends AbstractBasic {
        private IThrottler $throttler;
 
        public function __construct(IRequest $request,
-                                                               IManager $shareManager,
-                                                               ISession $session,
-                                                               IThrottler $throttler) {
+               IManager $shareManager,
+               ISession $session,
+               IThrottler $throttler) {
                $this->request = $request;
                $this->shareManager = $shareManager;
                $this->session = $session;
index 6c50f5682b71c40e5da04d21e0a7d33f234b00e1..db0f4e56b2e07cc68059797d8978c7913c52410e 100644 (file)
@@ -50,40 +50,37 @@ class AppleQuirksPlugin extends ServerPlugin {
        private $isMacOSDavAgent = false;
 
        /**
-     * Sets up the plugin.
-     *
-     * This method is automatically called by the server class.
+        * Sets up the plugin.
+        *
+        * This method is automatically called by the server class.
         *
         * @return void
-     */
-    public function initialize(Server $server)
-    {
+        */
+       public function initialize(Server $server) {
                $server->on('beforeMethod:REPORT', [$this, 'beforeReport'], 0);
                $server->on('report', [$this, 'report'], 0);
        }
 
        /**
-     * Triggered before any method is handled.
+        * Triggered before any method is handled.
         *
         * @return void
-     */
-    public function beforeReport(RequestInterface $request, ResponseInterface $response)
-    {
+        */
+       public function beforeReport(RequestInterface $request, ResponseInterface $response) {
                $userAgent = $request->getRawServerValue('HTTP_USER_AGENT') ?? 'unknown';
                $this->isMacOSDavAgent = $this->isMacOSUserAgent($userAgent);
        }
 
        /**
-     * This method handles HTTP REPORT requests.
-     *
-     * @param string $reportName
-     * @param mixed  $report
-     * @param mixed  $path
+        * This method handles HTTP REPORT requests.
+        *
+        * @param string $reportName
+        * @param mixed  $report
+        * @param mixed  $path
         *
         * @return bool
-     */
-    public function report($reportName, $report, $path)
-    {
+        */
+       public function report($reportName, $report, $path) {
                if ($reportName == '{DAV:}principal-property-search' && $this->isMacOSDavAgent) {
                        /** @var \Sabre\DAVACL\Xml\Request\PrincipalPropertySearchReport $report */
                        $report->applyToPrincipalCollectionSet = true;
@@ -98,8 +95,7 @@ class AppleQuirksPlugin extends ServerPlugin {
         *
         * @return bool
         */
-       protected function isMacOSUserAgent(string $userAgent):bool
-       {
+       protected function isMacOSUserAgent(string $userAgent):bool {
                return str_starts_with(self::OSX_AGENT_PREFIX, $userAgent);
        }
 
@@ -110,8 +106,7 @@ class AppleQuirksPlugin extends ServerPlugin {
         *
         * @return null|array
         */
-       protected function decodeMacOSAgentString(string $userAgent):?array
-       {
+       protected function decodeMacOSAgentString(string $userAgent):?array {
                // OSX agent string is like: macOS/13.2.1 (22D68) dataaccessd/1.0
                if (preg_match('|^' . self::OSX_AGENT_PREFIX . '/([0-9]+)\\.([0-9]+)\\.([0-9]+)\s+\((\w+)\)\s+([^/]+)/([0-9]+)(?:\\.([0-9]+))?(?:\\.([0-9]+))?$|i', $userAgent, $matches)) {
                        return [
index 29e393497040225e919d63c6f0d8e9afe8989df5..243b92e63f744ac95361a429285e684232b31734 100644 (file)
@@ -61,11 +61,11 @@ class Auth extends AbstractBasic {
        private IThrottler $throttler;
 
        public function __construct(ISession $session,
-                                                               Session $userSession,
-                                                               IRequest $request,
-                                                               Manager $twoFactorManager,
-                                                               IThrottler $throttler,
-                                                               string $principalPrefix = 'principals/users/') {
+               Session $userSession,
+               IRequest $request,
+               Manager $twoFactorManager,
+               IThrottler $throttler,
+               string $principalPrefix = 'principals/users/') {
                $this->session = $session;
                $this->userSession = $userSession;
                $this->twoFactorManager = $twoFactorManager;
@@ -223,7 +223,7 @@ class Auth extends AbstractBasic {
 
                if (!$this->userSession->isLoggedIn() && in_array('XMLHttpRequest', explode(',', $request->getHeader('X-Requested-With') ?? ''))) {
                        // do not re-authenticate over ajax, use dummy auth name to prevent browser popup
-                       $response->addHeader('WWW-Authenticate','DummyBasic realm="' . $this->realm . '"');
+                       $response->addHeader('WWW-Authenticate', 'DummyBasic realm="' . $this->realm . '"');
                        $response->setStatus(401);
                        throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls');
                }
index 5a69d07b0026d010526d47139b31ae4a4eda8b4b..4d9599b97a3da0aecd11daeb959ffc220f897080 100644 (file)
@@ -37,9 +37,9 @@ class BearerAuth extends AbstractBearer {
        private string $principalPrefix;
 
        public function __construct(IUserSession $userSession,
-                                                               ISession $session,
-                                                               IRequest $request,
-                                                               $principalPrefix = 'principals/users/') {
+               ISession $session,
+               IRequest $request,
+               $principalPrefix = 'principals/users/') {
                $this->userSession = $userSession;
                $this->session = $session;
                $this->request = $request;
index 5d3f7104d6ad90c73b2b70da99f5432fe4931dba..eda2399a780f9e47817c5cde22bf138d67fa4021 100644 (file)
@@ -27,9 +27,9 @@ namespace OCA\DAV\Connector\Sabre;
 
 use OCP\IConfig;
 use OCP\IRequest;
+use Sabre\DAV\Server;
 use Sabre\DAV\ServerPlugin;
 use Sabre\HTTP\RequestInterface;
-use Sabre\DAV\Server;
 
 /**
  * Class BlockLegacyClientPlugin is used to detect old legacy sync clients and
index c222923bc8e55b72cb0721fbdbbf18c3f9b0c388..d68ced8361636d89f0b8637b2c8775a773bfb254 100644 (file)
@@ -23,10 +23,10 @@ declare(strict_types=1);
 
 namespace OCA\DAV\Connector\Sabre;
 
+use Sabre\DAV\Server;
 use Sabre\DAV\ServerPlugin;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use Sabre\DAV\Server;
 
 class ChecksumUpdatePlugin extends ServerPlugin {
        protected ?Server $server = null;
index eaa7f1bc2d2067d884c92d0b7124da865158ac4d..94f9e167aaec3400a8bb8068f5ba94d1c0eb4b93 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2016, ownCloud, Inc.
@@ -29,8 +30,8 @@ namespace OCA\DAV\Connector\Sabre;
 use OCP\Comments\ICommentsManager;
 use OCP\IUserSession;
 use Sabre\DAV\PropFind;
-use Sabre\DAV\ServerPlugin;
 use Sabre\DAV\Server;
+use Sabre\DAV\ServerPlugin;
 
 class CommentPropertiesPlugin extends ServerPlugin {
        public const PROPERTY_NAME_HREF = '{http://owncloud.org/ns}comments-href';
index f3ea94be3b6a138991b9daa3a19dcf364db7801e..0533dcab4d97749788589138566ceeaba4f585c3 100644 (file)
@@ -25,9 +25,9 @@
 namespace OCA\DAV\Connector\Sabre;
 
 use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\Server;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use Sabre\DAV\Server;
 
 /**
  * Copies the "Etag" header to "OC-Etag" after any request.
index ab321a363a2c768ce1ce9deb9d8434af3c787211..441e6ea8f570ce3ed9bffa63e920bf8c3b270545 100644 (file)
@@ -49,6 +49,7 @@ use OCP\IRequest;
 use OCP\L10N\IFactory;
 use OCP\Lock\ILockingProvider;
 use OCP\Lock\LockedException;
+use OCP\Share\IManager as IShareManager;
 use Psr\Log\LoggerInterface;
 use Sabre\DAV\Exception\BadRequest;
 use Sabre\DAV\Exception\Locked;
@@ -56,7 +57,6 @@ use Sabre\DAV\Exception\NotFound;
 use Sabre\DAV\Exception\ServiceUnavailable;
 use Sabre\DAV\IFile;
 use Sabre\DAV\INode;
-use OCP\Share\IManager as IShareManager;
 
 class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICollection, \Sabre\DAV\IQuota, \Sabre\DAV\IMoveTarget, \Sabre\DAV\ICopyTarget {
        /**
index 8e35afe2e7cc7f5de7f96abc80530da08ada10c1..2019c77ad3511a8515882139472b3d3ba1a436a9 100644 (file)
@@ -26,9 +26,9 @@
  */
 namespace OCA\DAV\Connector\Sabre;
 
+use Sabre\DAV\Server;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use Sabre\DAV\Server;
 
 /**
  * Class DummyGetResponsePlugin is a plugin used to not show a "Not implemented"
@@ -63,7 +63,7 @@ class DummyGetResponsePlugin extends \Sabre\DAV\ServerPlugin {
        public function httpGet(RequestInterface $request, ResponseInterface $response) {
                $string = 'This is the WebDAV interface. It can only be accessed by ' .
                        'WebDAV clients such as the Nextcloud desktop sync client.';
-               $stream = fopen('php://memory','r+');
+               $stream = fopen('php://memory', 'r+');
                fwrite($stream, $string);
                rewind($stream);
 
index aabd5fda2fb8909d64992862bb3b16f7f7b31797..a5eed91170125ec96ef6adc690fd70e3ab607c70 100644 (file)
@@ -48,17 +48,17 @@ class Forbidden extends \Sabre\DAV\Exception\Forbidden {
         * @param \DOMElement $errorNode
         * @return void
         */
-       public function serialize(\Sabre\DAV\Server $server,\DOMElement $errorNode) {
+       public function serialize(\Sabre\DAV\Server $server, \DOMElement $errorNode) {
 
                // set ownCloud namespace
                $errorNode->setAttribute('xmlns:o', self::NS_OWNCLOUD);
 
                // adding the retry node
-               $error = $errorNode->ownerDocument->createElementNS('o:','o:retry', var_export($this->retry, true));
+               $error = $errorNode->ownerDocument->createElementNS('o:', 'o:retry', var_export($this->retry, true));
                $errorNode->appendChild($error);
 
                // adding the message node
-               $error = $errorNode->ownerDocument->createElementNS('o:','o:reason', $this->getMessage());
+               $error = $errorNode->ownerDocument->createElementNS('o:', 'o:reason', $this->getMessage());
                $errorNode->appendChild($error);
        }
 }
index c504483d45af9bfed011a24e0a769f5ea4371725..9d1fda339a23331642022acd706bd2988906a36f 100644 (file)
@@ -60,17 +60,17 @@ class InvalidPath extends Exception {
         * @param \DOMElement $errorNode
         * @return void
         */
-       public function serialize(\Sabre\DAV\Server $server,\DOMElement $errorNode) {
+       public function serialize(\Sabre\DAV\Server $server, \DOMElement $errorNode) {
 
                // set ownCloud namespace
                $errorNode->setAttribute('xmlns:o', self::NS_OWNCLOUD);
 
                // adding the retry node
-               $error = $errorNode->ownerDocument->createElementNS('o:','o:retry', var_export($this->retry, true));
+               $error = $errorNode->ownerDocument->createElementNS('o:', 'o:retry', var_export($this->retry, true));
                $errorNode->appendChild($error);
 
                // adding the message node
-               $error = $errorNode->ownerDocument->createElementNS('o:','o:reason', $this->getMessage());
+               $error = $errorNode->ownerDocument->createElementNS('o:', 'o:reason', $this->getMessage());
                $errorNode->appendChild($error);
        }
 }
index ebf3e4021eb456ae56c035342afdce41c6586c64..a195b5722f58b08f3237bed35057ad299bd28785 100644 (file)
@@ -42,7 +42,6 @@ use Sabre\DAV\Exception\NotFound;
 use Sabre\DAV\Exception\NotImplemented;
 use Sabre\DAV\Exception\PreconditionFailed;
 use Sabre\DAV\Exception\RequestedRangeNotSatisfiable;
-use Sabre\DAV\Exception\ServiceUnavailable;
 
 class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
        protected $nonFatalExceptions = [
index 7209450745cc4c6146352b4626f4da9f4e2ee9a6..b61e9dc0c39b6fa3f247a39afcdf23a0c27fd7bb 100644 (file)
@@ -125,7 +125,7 @@ class FakeLockerPlugin extends ServerPlugin {
         * @return bool
         */
        public function fakeLockProvider(RequestInterface $request,
-                                                                        ResponseInterface $response) {
+               ResponseInterface $response) {
                $lockInfo = new LockInfo();
                $lockInfo->token = md5($request->getPath());
                $lockInfo->uri = $request->getPath();
@@ -151,7 +151,7 @@ class FakeLockerPlugin extends ServerPlugin {
         * @return bool
         */
        public function fakeUnlockProvider(RequestInterface $request,
-                                                                        ResponseInterface $response) {
+               ResponseInterface $response) {
                $response->setStatus(204);
                $response->setHeader('Content-Length', '0');
                return false;
index 8c467f11d0cb00c8603583eb7f9fa531fa7cc87a..81cdfa464b59ccc2b019488eddf3e65c664d9355 100644 (file)
@@ -105,12 +105,12 @@ class FilesPlugin extends ServerPlugin {
        private IPreview $previewManager;
 
        public function __construct(Tree $tree,
-                                                               IConfig $config,
-                                                               IRequest $request,
-                                                               IPreview $previewManager,
-                                                               IUserSession $userSession,
-                                                               bool $isPublic = false,
-                                                               bool $downloadAttachment = true) {
+               IConfig $config,
+               IRequest $request,
+               IPreview $previewManager,
+               IUserSession $userSession,
+               bool $isPublic = false,
+               bool $downloadAttachment = true) {
                $this->tree = $tree;
                $this->config = $config;
                $this->request = $request;
index 18998d9c5cb057bd0aac8334623a8ef32b1966fe..e43fb740cac7bc089110bdcfdc466e0280b2850c 100644 (file)
@@ -119,14 +119,14 @@ class FilesReportPlugin extends ServerPlugin {
         * @param IAppManager $appManager
         */
        public function __construct(Tree $tree,
-                                                               View $view,
-                                                               ISystemTagManager $tagManager,
-                                                               ISystemTagObjectMapper $tagMapper,
-                                                               ITagManager $fileTagger,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager,
-                                                               Folder $userFolder,
-                                                               IAppManager $appManager
+               View $view,
+               ISystemTagManager $tagManager,
+               ISystemTagObjectMapper $tagMapper,
+               ITagManager $fileTagger,
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               Folder $userFolder,
+               IAppManager $appManager
        ) {
                $this->tree = $tree;
                $this->fileView = $view;
index 823eafe8fdbe7ba34d602948f9a71d43a900a010..df1de17fe200bfe02c3535087f42ed7a4ed4cc68 100644 (file)
@@ -100,16 +100,16 @@ class Principal implements BackendInterface {
        private $languageFactory;
 
        public function __construct(IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IAccountManager $accountManager,
-                                                               IShareManager $shareManager,
-                                                               IUserSession $userSession,
-                                                               IAppManager $appManager,
-                                                               ProxyMapper $proxyMapper,
-                                                               KnownUserService $knownUserService,
-                                                               IConfig $config,
-                                                               IFactory $languageFactory,
-                                                               string $principalPrefix = 'principals/users/') {
+               IGroupManager $groupManager,
+               IAccountManager $accountManager,
+               IShareManager $shareManager,
+               IUserSession $userSession,
+               IAppManager $appManager,
+               ProxyMapper $proxyMapper,
+               KnownUserService $knownUserService,
+               IConfig $config,
+               IFactory $languageFactory,
+               string $principalPrefix = 'principals/users/') {
                $this->userManager = $userManager;
                $this->groupManager = $groupManager;
                $this->accountManager = $accountManager;
index b281a1053b8d52f6b08f6a61c648766de890c345..df82db59f1d39b9dfdaf7655d128338df4d1ae79 100644 (file)
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Robin Appelman <robin@icewind.nl>
  *
index d0cc8aab5d01df45316c68b001e6749e1c8f8daa..828977fd8128719c761d3cfb0690e2cf3d356696 100644 (file)
  */
 namespace OCA\DAV\Connector\Sabre;
 
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Files\Folder;
 use OCA\DAV\AppInfo\PluginManager;
 use OCA\DAV\DAV\ViewOnlyPlugin;
 use OCA\DAV\Files\BrowserErrorPagePlugin;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Files\Folder;
 use OCP\Files\Mount\IMountManager;
 use OCP\IConfig;
 use OCP\IDBConnection;
@@ -88,9 +88,9 @@ class ServerFactory {
         * @param callable $viewCallBack callback that should return the view for the dav endpoint
         */
        public function createServer(string $baseUri,
-                                                                string $requestUri,
-                                                                Plugin $authPlugin,
-                                                                callable $viewCallBack): Server {
+               string $requestUri,
+               Plugin $authPlugin,
+               callable $viewCallBack): Server {
                // Fire up server
                $objectTree = new \OCA\DAV\Connector\Sabre\ObjectTree();
                $server = new \OCA\DAV\Connector\Sabre\Server($objectTree);
index 3d52a44b6a65973f767a77795add46b62b7ce488..4cda346af0191a14d8a6dcbdcc8270b4358d8994 100644 (file)
@@ -33,11 +33,11 @@ use OCP\Files\Folder;
 use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\IUserSession;
-use OCP\Share\IShare;
 use OCP\Share\IManager;
+use OCP\Share\IShare;
 use Sabre\DAV\PropFind;
-use Sabre\DAV\Tree;
 use Sabre\DAV\Server;
+use Sabre\DAV\Tree;
 
 /**
  * Sabre Plugin to provide share-related properties
index da5dd8749052e5e8448557b99c0c9deff99330b3..dc2b6b0c3394e53797049826610c3f490d6bde0a 100644 (file)
@@ -222,7 +222,7 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin {
                        && $propFind->getDepth() !== 0
                        && (!is_null($propFind->getStatus(self::TAGS_PROPERTYNAME))
                        || !is_null($propFind->getStatus(self::FAVORITE_PROPERTYNAME))
-               )) {
+                       )) {
                        // note: pre-fetching only supported for depth <= 1
                        $folderContent = $node->getChildren();
                        $fileIds[] = (int)$node->getId();
index 4305d6daaef79d98c4a75c902ce07f926cb8cccf..5df13cefe974728a0cf8ea52538930e0591d9ff0 100644 (file)
@@ -74,10 +74,10 @@ class BirthdayCalendarController extends Controller {
         * @param CalDavBackend $calDavBackend
         */
        public function __construct($appName, IRequest $request,
-                                                               IDBConnection $db, IConfig $config,
-                                                               IJobList $jobList,
-                                                               IUserManager $userManager,
-                                                               CalDavBackend $calDavBackend) {
+               IDBConnection $db, IConfig $config,
+               IJobList $jobList,
+               IUserManager $userManager,
+               CalDavBackend $calDavBackend) {
                parent::__construct($appName, $request);
                $this->db = $db;
                $this->config = $config;
index 1a7b3b5762684c435b5ad289a1f15765c29f2ccc..0f618e46b2275389f64ba2653e5e4fb57b7c1b8b 100644 (file)
@@ -32,11 +32,10 @@ use OCA\DAV\Db\DirectMapper;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCS\OCSBadRequestException;
-use OCP\AppFramework\OCS\OCSNotFoundException;
 use OCP\AppFramework\OCS\OCSForbiddenException;
+use OCP\AppFramework\OCS\OCSNotFoundException;
 use OCP\AppFramework\OCSController;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\EventDispatcher\GenericEvent;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Events\BeforeDirectFileDownloadEvent;
 use OCP\Files\File;
@@ -69,14 +68,14 @@ class DirectController extends OCSController {
        private $eventDispatcher;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IRootFolder $rootFolder,
-                                                               string $userId,
-                                                               DirectMapper $mapper,
-                                                               ISecureRandom $random,
-                                                               ITimeFactory $timeFactory,
-                                                               IURLGenerator $urlGenerator,
-                                                               IEventDispatcher $eventDispatcher) {
+               IRequest $request,
+               IRootFolder $rootFolder,
+               string $userId,
+               DirectMapper $mapper,
+               ISecureRandom $random,
+               ITimeFactory $timeFactory,
+               IURLGenerator $urlGenerator,
+               IEventDispatcher $eventDispatcher) {
                parent::__construct($appName, $request);
 
                $this->rootFolder = $rootFolder;
index 0ec630883dcb4999fec5b88d4dba5038c72f9ea1..69d6bea4e5b63b3aee154fc14d3ff444a170957c 100644 (file)
@@ -60,8 +60,8 @@ class InvitationResponseController extends Controller {
         * @param InvitationResponseServer $responseServer
         */
        public function __construct(string $appName, IRequest $request,
-                                                               IDBConnection $db, ITimeFactory $timeFactory,
-                                                               InvitationResponseServer $responseServer) {
+               IDBConnection $db, ITimeFactory $timeFactory,
+               InvitationResponseServer $responseServer) {
                parent::__construct($appName, $request);
                $this->db = $db;
                $this->timeFactory = $timeFactory;
index 9acc7c4b05b666f20b7a11d891cb32d7925068e5..8c126e6b71cfedc9e253c32ab936fcb39f0aad8f 100644 (file)
@@ -104,7 +104,7 @@ class GroupPrincipalBackend implements BackendInterface {
         * @return array
         */
        public function getPrincipalByPath($path) {
-               $elements = explode('/', $path,  3);
+               $elements = explode('/', $path, 3);
                if ($elements[0] !== 'principals') {
                        return null;
                }
index 74b34b81b2204604e2d8c77bb312473fb37ce8a5..b115ef61313edee37be09fc4e8c4493c828d8c74 100644 (file)
@@ -31,10 +31,10 @@ namespace OCA\DAV\DAV\Sharing;
 use OCA\DAV\Connector\Sabre\Principal;
 use OCP\AppFramework\Db\TTransactional;
 use OCP\Cache\CappedMemoryCache;
+use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
 use OCP\IGroupManager;
 use OCP\IUserManager;
-use OCP\DB\QueryBuilder\IQueryBuilder;
 
 class Backend {
        use TTransactional;
@@ -211,7 +211,7 @@ class Backend {
        }
 
        public function preloadShares(array $resourceIds): void {
-               $resourceIds = array_filter($resourceIds, function(int $resourceId) {
+               $resourceIds = array_filter($resourceIds, function (int $resourceId) {
                        return !isset($this->shareCache[$resourceId]);
                });
                if (count($resourceIds) === 0) {
index c7d8691ab06c53bc60821d64da04a4a56c30e244..78e086bc9079b35eee16f457de447e8b5f8a74ce 100644 (file)
@@ -113,7 +113,7 @@ class Plugin extends ServerPlugin {
                $this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}invite'] = Invite::class;
 
                $this->server->on('method:POST', [$this, 'httpPost']);
-               $this->server->on('propFind',    [$this, 'propFind']);
+               $this->server->on('propFind', [$this, 'propFind']);
        }
 
        /**
index 51e3622142db3195cf671b222e677aad061438ab..27e4a06f7186baf0a81ae5447dee79d676b8141e 100644 (file)
@@ -26,10 +26,10 @@ use OCA\DAV\Connector\Sabre\File as DavFile;
 use OCA\Files_Versions\Sabre\VersionFile;
 use OCP\Files\NotFoundException;
 use Psr\Log\LoggerInterface;
+use Sabre\DAV\Exception\NotFound;
 use Sabre\DAV\Server;
 use Sabre\DAV\ServerPlugin;
 use Sabre\HTTP\RequestInterface;
-use Sabre\DAV\Exception\NotFound;
 
 /**
  * Sabre plugin for restricting file share receiver download:
@@ -74,7 +74,7 @@ class ViewOnlyPlugin extends ServerPlugin {
                        if ($davNode instanceof DavFile) {
                                // Restrict view-only to nodes which are shared
                                $node = $davNode->getNode();
-                       } else if ($davNode instanceof VersionFile) {
+                       } elseif ($davNode instanceof VersionFile) {
                                $node = $davNode->getVersion()->getSourceFile();
                        } else {
                                return true;
index ce689b1e88e64f33e8246a11f69222a399bcca45..f9914a5cb36a889fabd62234cf79b6d14f912205 100644 (file)
@@ -53,12 +53,12 @@ class ServerFactory {
        }
 
        public function createServer(string $baseURI,
-                                                                string $requestURI,
-                                                                IRootFolder $rootFolder,
-                                                                DirectMapper $mapper,
-                                                                ITimeFactory $timeFactory,
-                                                                IThrottler $throttler,
-                                                                IRequest $request): Server {
+               string $requestURI,
+               IRootFolder $rootFolder,
+               DirectMapper $mapper,
+               ITimeFactory $timeFactory,
+               IThrottler $throttler,
+               IRequest $request): Server {
                $home = new DirectHome($rootFolder, $mapper, $timeFactory, $throttler, $request, $this->eventDispatcher);
                $server = new Server($home);
 
index 86c4cd23640a46261003ff29a523defcf591eafe..396c246289c7ae6593e930588a52449d5200c0a8 100644 (file)
@@ -49,7 +49,7 @@ class AddressBookCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData) {
+               array $addressBookData) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index 3c8da6b7bf07e87cc2a3838e0d5ee6799062ced4..79785f5f0fa15674b40527a7eecf4f8ef1c52552 100644 (file)
@@ -53,8 +53,8 @@ class AddressBookDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $shares) {
+               array $addressBookData,
+               array $shares) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index f9f8ff99d40b197586a11603714950305eb75d32..da3c2701abd06dad72c39cf27543353f6232e775 100644 (file)
@@ -61,10 +61,10 @@ class AddressBookShareUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $oldShares,
-                                                               array $added,
-                                                               array $removed) {
+               array $addressBookData,
+               array $oldShares,
+               array $added,
+               array $removed) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index c632f1817a83e08642e10b4d7818e2603bb47ee2..d651e56946760482666cf849728b37155ad679ef 100644 (file)
@@ -57,9 +57,9 @@ class AddressBookUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $shares,
-                                                               array $mutations) {
+               array $addressBookData,
+               array $shares,
+               array $mutations) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index 29e11ddc1464f8b5215e9beac4bb18ba398981fc..64d9b6dd2c7501ccc6b9a85b15c66a3725886132 100644 (file)
@@ -57,9 +57,9 @@ class CachedCalendarObjectCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $subscriptionData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index eaf98df60bfde43429ff96df42c3663ee58a3c64..183e8e8bcf949795d60378c396dae6cce250bf91 100644 (file)
@@ -57,9 +57,9 @@ class CachedCalendarObjectDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $subscriptionData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index d47d75ec1d8fcb8f7c9c23388f8944312ba8026f..62781483defedd9c923595f3593daa6355e1ef9a 100644 (file)
@@ -57,9 +57,9 @@ class CachedCalendarObjectUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $subscriptionData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index ba51002f829813a3bd62823f6274b4d31a1c1321..649a242a1d2e4e92ad752fd532ad66fa85a0c16c 100644 (file)
@@ -49,7 +49,7 @@ class CalendarCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData) {
+               array $calendarData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index d6207ac6ee29a089d7a61f8fe23ef59b44085ccd..97d522cde7c5f7b5cbab2601d41f6da74cef43a5 100644 (file)
@@ -53,8 +53,8 @@ class CalendarDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares) {
+               array $calendarData,
+               array $shares) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index c04b383d5bf5a79f181c0762621de5c17b3fb82f..5fb2f48a75c708bf70e3997475b0169fd440decd 100644 (file)
@@ -48,8 +48,8 @@ class CalendarMovedToTrashEvent extends Event {
         * @since 22.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares) {
+               array $calendarData,
+               array $shares) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 294c778335e56ded036a9f2a5d6f4e7b5f5acaf7..123f7fc229f7f537c0b163216fe8d7e8ce4fe8ce 100644 (file)
@@ -57,9 +57,9 @@ class CalendarObjectCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $calendarData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 7a621994b80344f684d5a3b29edec9953c310312..8c5834ff050433f30e2dddc25b6fd29d6195375b 100644 (file)
@@ -57,9 +57,9 @@ class CalendarObjectDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $calendarData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 0143dad9a9601f32ce92f105c70dc5ff21c19b0a..402a9adf97927afb7c16a00c2490d275e0861690 100644 (file)
@@ -46,12 +46,12 @@ class CalendarObjectMovedEvent extends Event {
         * @since 25.0.0
         */
        public function __construct(int $sourceCalendarId,
-                                                               array $sourceCalendarData,
-                                                               int $targetCalendarId,
-                                                               array $targetCalendarData,
-                                                               array $sourceShares,
-                                                               array $targetShares,
-                                                               array $objectData) {
+               array $sourceCalendarData,
+               int $targetCalendarId,
+               array $targetCalendarData,
+               array $sourceShares,
+               array $targetShares,
+               array $objectData) {
                parent::__construct();
                $this->sourceCalendarId = $sourceCalendarId;
                $this->sourceCalendarData = $sourceCalendarData;
index d7a3b99de825973abd5fa3d0959621421c74f050..b963d1321a4f3c5ca754996d356d6c1776eeb882 100644 (file)
@@ -52,9 +52,9 @@ class CalendarObjectMovedToTrashEvent extends Event {
         * @since 22.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $calendarData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 42f296e64cc9961f24ef87c8b5a0842e3af29490..76589725986854d757f7c5025e7124611972dd16 100644 (file)
@@ -52,9 +52,9 @@ class CalendarObjectRestoredEvent extends Event {
         * @since 22.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $calendarData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 84157afd20a4b847af6f3ded74c9e7484607f31e..45d66370137844c239bf32edb67da440de16660d 100644 (file)
@@ -57,9 +57,9 @@ class CalendarObjectUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $objectData) {
+               array $calendarData,
+               array $shares,
+               array $objectData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index a95e9f294c1df413abaf6b1b2447e3f57ee51853..b92d17901f7c3e3a4754c043378d4889b5215d25 100644 (file)
@@ -48,8 +48,8 @@ class CalendarPublishedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               string $publicUri) {
+               array $calendarData,
+               string $publicUri) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index ef477ac1d4823401219fc73584490eac64c0ec50..b44b3607969a615bc7c3d3b8f1941a409159fe6a 100644 (file)
@@ -48,8 +48,8 @@ class CalendarRestoredEvent extends Event {
         * @since 22.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares) {
+               array $calendarData,
+               array $shares) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index dedd9f8a5663bb8d4e1bceac448adbf786491ee5..ebde62a8be23cfae583cda143c015dc07664b0f1 100644 (file)
@@ -61,10 +61,10 @@ class CalendarShareUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $oldShares,
-                                                               array $added,
-                                                               array $removed) {
+               array $calendarData,
+               array $oldShares,
+               array $added,
+               array $removed) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index b2536fc7aefe4c5df279f0ebf0c5a28b39575c6c..ede60aeb90469d3bba4e35ef3ae5222e6ff0fd14 100644 (file)
@@ -46,7 +46,7 @@ class CalendarUnpublishedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData) {
+               array $calendarData) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index ec33412b478c62ebd341ff7163d195aa5df545c2..c39d22b281cc05487d04b0aec954b86c22df27ad 100644 (file)
@@ -57,9 +57,9 @@ class CalendarUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $calendarId,
-                                                               array $calendarData,
-                                                               array $shares,
-                                                               array $mutations) {
+               array $calendarData,
+               array $shares,
+               array $mutations) {
                parent::__construct();
                $this->calendarId = $calendarId;
                $this->calendarData = $calendarData;
index 4c6b1714721dd8226935b97f3ca75474563af309..138cccd6862627465688b8a56eb8c414710a2f8c 100644 (file)
@@ -57,9 +57,9 @@ class CardCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $shares,
-                                                               array $cardData) {
+               array $addressBookData,
+               array $shares,
+               array $cardData) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index f4d7e21fab1310293a2ae352d3bf125e16c173e7..e0a92a2076af0316655c7923b9c5c786634ad30a 100644 (file)
@@ -57,9 +57,9 @@ class CardDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $shares,
-                                                               array $cardData) {
+               array $addressBookData,
+               array $shares,
+               array $cardData) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index 07139cfdecf7e7e19f87732b3a81594b0894d2cb..38a66ed08b6d2bcba10af4bd5838b4d9b05a34d5 100644 (file)
@@ -46,12 +46,12 @@ class CardMovedEvent extends Event {
         * @since 27.0.0
         */
        public function __construct(int $sourceAddressBookId,
-                                                               array $sourceAddressBookData,
-                                                               int $targetAddressBookId,
-                                                               array $targetAddressBookData,
-                                                               array $sourceShares,
-                                                               array $targetShares,
-                                                               array $objectData) {
+               array $sourceAddressBookData,
+               int $targetAddressBookId,
+               array $targetAddressBookData,
+               array $sourceShares,
+               array $targetShares,
+               array $objectData) {
                parent::__construct();
                $this->sourceAddressBookId = $sourceAddressBookId;
                $this->sourceAddressBookData = $sourceAddressBookData;
index 213419d51a3a0425ef55bc33e9b49b0caf9c079e..40f28713ce62a1f9542a2124c87646e214470b98 100644 (file)
@@ -57,9 +57,9 @@ class CardUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $addressBookId,
-                                                               array $addressBookData,
-                                                               array $shares,
-                                                               array $cardData) {
+               array $addressBookData,
+               array $shares,
+               array $cardData) {
                parent::__construct();
                $this->addressBookId = $addressBookId;
                $this->addressBookData = $addressBookData;
index f7fc2101221043509993e6dc415b599fd534c714..9932e70c4c8763ad2ab3611f956aab621205eeb6 100644 (file)
@@ -49,7 +49,7 @@ class SubscriptionCreatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData) {
+               array $subscriptionData) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index fc31005ac0f2fac347d54fcf84c915ec1d3e65cd..8aa36f4584bb5def483c15d4e1893c8cfe67cd70 100644 (file)
@@ -53,8 +53,8 @@ class SubscriptionDeletedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData,
-                                                               array $shares) {
+               array $subscriptionData,
+               array $shares) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index 29231d13a7f72b247d3ebcf588dad9677bc3ab63..eb90177a00da2958a070eac838561c788191a221 100644 (file)
@@ -57,9 +57,9 @@ class SubscriptionUpdatedEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(int $subscriptionId,
-                                                               array $subscriptionData,
-                                                               array $shares,
-                                                               array $mutations) {
+               array $subscriptionData,
+               array $shares,
+               array $mutations) {
                parent::__construct();
                $this->subscriptionId = $subscriptionId;
                $this->subscriptionData = $subscriptionData;
index 419a0c5ed3b51af1e7636d31485821d567fb17d7..fd45491da7e0e3c55f15d9fad25872944901a0dc 100644 (file)
@@ -39,7 +39,6 @@ use OCP\Files\Cache\ICacheEntry;
 use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
-use OCP\Files\Search\ISearchComparison;
 use OCP\Files\Search\ISearchOperator;
 use OCP\Files\Search\ISearchOrder;
 use OCP\Files\Search\ISearchQuery;
@@ -372,6 +371,7 @@ class FileSearchBackend implements ISearchBackend {
                                        throw new \InvalidArgumentException('Invalid argument 2 for ' . $trimmedType . ' operation, expected literal');
                                }
                                $value = $operator->arguments[1]->value;
+                               // no break
                        case Operator::OPERATION_IS_DEFINED:
                                if (!($operator->arguments[0] instanceof SearchPropertyDefinition)) {
                                        throw new \InvalidArgumentException('Invalid argument 1 for ' . $trimmedType . ' operation, expected property');
@@ -429,7 +429,7 @@ class FileSearchBackend implements ISearchBackend {
                        return '';
                }
 
-               switch ($property->dataType) {
+               switch ($property->dataType) {
                        case SearchPropertyDefinition::DATATYPE_BOOLEAN:
                                return $value === 'yes';
                        case SearchPropertyDefinition::DATATYPE_DECIMAL:
index c3b2f27d72a7b5d729e3e3a5fbfe9d9944a874c2..ccd6fde14e155fb16bbbef7faba9813601596d3d 100644 (file)
@@ -22,7 +22,6 @@
  */
 namespace OCA\DAV\Files;
 
-use Sabre\DAV\INode;
 use SearchDAV\Backend\ISearchBackend;
 use SearchDAV\Query\Query;
 
index 9e923440e385b33dd40ebdd1a567f219ec8dc1a2..1e7990af32f7c806c269b376a2827d3b8b9ea579 100644 (file)
@@ -67,10 +67,10 @@ class HookManager {
        private $themingDefaults;
 
        public function __construct(IUserManager $userManager,
-                                                               SyncService $syncService,
-                                                               CalDavBackend $calDav,
-                                                               CardDavBackend $cardDav,
-                                                               Defaults $themingDefaults) {
+               SyncService $syncService,
+               CalDavBackend $calDav,
+               CardDavBackend $cardDav,
+               Defaults $themingDefaults) {
                $this->userManager = $userManager;
                $this->syncService = $syncService;
                $this->calDav = $calDav;
index ea3ec49c14d505cbdeea406dab52f1453127d82b..ba0d47f148f164ca9e1b4ca7ce5be91b22fba2c0 100644 (file)
@@ -53,7 +53,7 @@ class ActivityUpdaterListener implements IEventListener {
        private $logger;
 
        public function __construct(ActivityBackend $activityBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityBackend = $activityBackend;
                $this->logger = $logger;
        }
index 3c17d399d4eb12c740719c8b4ef5beb5ae1c33a4..489a814d1585a282ab6a96cfad15dafa8fbaac48 100644 (file)
@@ -44,7 +44,7 @@ class AddressbookListener implements IEventListener {
        private $logger;
 
        public function __construct(ActivityBackend $activityBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityBackend = $activityBackend;
                $this->logger = $logger;
        }
index b27aa53aa11bce62c47c41d25863d6ef4c53c721..6787d9316e9395e4466b6ef318fd0d5f1de47bf1 100644 (file)
@@ -64,10 +64,10 @@ class CalendarContactInteractionListener implements IEventListener {
        private $logger;
 
        public function __construct(IEventDispatcher $dispatcher,
-                                                               IUserSession $userSession,
-                                                               Principal $principalConnector,
-                                                               IMailer $mailer,
-                                                               LoggerInterface $logger) {
+               IUserSession $userSession,
+               Principal $principalConnector,
+               IMailer $mailer,
+               LoggerInterface $logger) {
                $this->dispatcher = $dispatcher;
                $this->userSession = $userSession;
                $this->principalConnector = $principalConnector;
index 42dd0dfc0a704eebba611f7aaf52e7fc532a8898..23835f1626e7f46fc97ca7f9740055a384fe8197 100644 (file)
@@ -44,7 +44,7 @@ class CalendarDeletionDefaultUpdaterListener implements IEventListener {
        private $logger;
 
        public function __construct(IConfig $config,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->config = $config;
                $this->logger = $logger;
        }
index 3c168f6105c23ecb14302bda17a1c05349d7ef24..8b723b95527e81315b555199acd30afd987b96cd 100644 (file)
@@ -57,9 +57,9 @@ class CalendarObjectReminderUpdaterListener implements IEventListener {
        private $logger;
 
        public function __construct(ReminderBackend $reminderBackend,
-                                                               ReminderService $reminderService,
-                                                               CalDavBackend $calDavBackend,
-                                                               LoggerInterface $logger) {
+               ReminderService $reminderService,
+               CalDavBackend $calDavBackend,
+               LoggerInterface $logger) {
                $this->reminderBackend = $reminderBackend;
                $this->reminderService = $reminderService;
                $this->calDavBackend = $calDavBackend;
index 1453694d6fb50853d07eab47b2e8142387bcafb7..e86bfa73c5506ea0cb8068959619878a7e1f994e 100644 (file)
@@ -37,7 +37,7 @@ class CalendarPublicationListener implements IEventListener {
        private LoggerInterface $logger;
 
        public function __construct(Backend $activityBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityBackend = $activityBackend;
                $this->logger = $logger;
        }
index dd046ddd66a9b4fc94d2a6c9b7001b9aef260caa..3f4f6f0a3165281eb7ea84b23b4a258990239b25 100644 (file)
@@ -36,7 +36,7 @@ class CalendarShareUpdateListener implements IEventListener {
        private LoggerInterface $logger;
 
        public function __construct(Backend $activityBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityBackend = $activityBackend;
                $this->logger = $logger;
        }
index 0281127c8588ede5a9423f756e41013d49a9f5ca..69398435958a78d6ec1e3129178a2151acf7014e 100644 (file)
@@ -25,8 +25,8 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Listener;
 
-use OCA\DAV\CardDAV\Activity\Provider\Card;
 use OCA\DAV\CardDAV\Activity\Backend as ActivityBackend;
+use OCA\DAV\CardDAV\Activity\Provider\Card;
 use OCA\DAV\Events\CardCreatedEvent;
 use OCA\DAV\Events\CardDeletedEvent;
 use OCA\DAV\Events\CardUpdatedEvent;
@@ -44,7 +44,7 @@ class CardListener implements IEventListener {
        private $logger;
 
        public function __construct(ActivityBackend $activityBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityBackend = $activityBackend;
                $this->logger = $logger;
        }
index 645a01a35cfd07f26ea943b7c80948bd9bb48200..609c32f5067893e6b4455fd42940478d869cf971 100644 (file)
@@ -53,8 +53,8 @@ use function rewind;
  */
 class OutOfOfficeListener implements IEventListener {
        public function __construct(private ServerFactory $serverFactory,
-       private IConfig $appConfig,
-       private LoggerInterface $logger) {
+               private IConfig $appConfig,
+               private LoggerInterface $logger) {
        }
 
        public function handle(Event $event): void {
@@ -80,7 +80,7 @@ class OutOfOfficeListener implements IEventListener {
                        } finally {
                                fclose($stream);
                        }
-               } else if ($event instanceof OutOfOfficeChangedEvent) {
+               } elseif ($event instanceof OutOfOfficeChangedEvent) {
                        $userId = $event->getData()->getUser()->getUID();
                        $principal = "principals/users/$userId";
 
@@ -107,7 +107,7 @@ class OutOfOfficeListener implements IEventListener {
                                        fclose($stream);
                                }
                        }
-               } else if ($event instanceof OutOfOfficeClearedEvent) {
+               } elseif ($event instanceof OutOfOfficeClearedEvent) {
                        $userId = $event->getData()->getUser()->getUID();
                        $principal = "principals/users/$userId";
 
index 36db234aa05855b6e58f43ed0c439c51bb450150..c7e1bbfecda1177d22d9d298afb2c5362e62b0f7 100644 (file)
@@ -42,7 +42,7 @@ class SubscriptionListener implements IEventListener {
        private LoggerInterface $logger;
 
        public function __construct(IJobList $jobList, RefreshWebcalService $refreshWebcalService, ReminderBackend $reminderBackend,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->jobList = $jobList;
                $this->refreshWebcalService = $refreshWebcalService;
                $this->reminderBackend = $reminderBackend;
index c8a649f3449c1b23f96b0acd5532035e18770117..fc9a6d9a559fcbac6ccd621911044b8663655f3e 100644 (file)
@@ -49,8 +49,8 @@ class BuildCalendarSearchIndex implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IDBConnection $db,
-                                                               IJobList $jobList,
-                                                               IConfig $config) {
+               IJobList $jobList,
+               IConfig $config) {
                $this->db = $db;
                $this->jobList = $jobList;
                $this->config = $config;
index 6a315f2a1505c2e0e0364970e7138c831d5d4ac5..a816e2619a3fc1a8916d2486153c6e1c33407d68 100644 (file)
@@ -55,10 +55,10 @@ class BuildCalendarSearchIndexBackgroundJob extends QueuedJob {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(IDBConnection $db,
-                                                               CalDavBackend $calDavBackend,
-                                                               ILogger $logger,
-                                                               IJobList $jobList,
-                                                               ITimeFactory $timeFactory) {
+               CalDavBackend $calDavBackend,
+               ILogger $logger,
+               IJobList $jobList,
+               ITimeFactory $timeFactory) {
                $this->db = $db;
                $this->calDavBackend = $calDavBackend;
                $this->logger = $logger;
index ae2eb084e2b8c99356549831cd427bd9de55fab0..f3872acc3abeb11419194cf94338ac70a2c19bde 100644 (file)
@@ -46,8 +46,8 @@ class BuildSocialSearchIndex implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IDBConnection $db,
-                                                               IJobList $jobList,
-                                                               IConfig $config) {
+               IJobList $jobList,
+               IConfig $config) {
                $this->db = $db;
                $this->jobList = $jobList;
                $this->config = $config;
index 98afecc3b7d45e76fde63e022f2b3de8a85fb8ac..231749521be4cdb0bac620ce77123f8e2c0af429 100644 (file)
@@ -54,10 +54,10 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(IDBConnection $db,
-                                                               CardDavBackend $davBackend,
-                                                               ILogger $logger,
-                                                               IJobList $jobList,
-                                                               ITimeFactory $timeFactory) {
+               CardDavBackend $davBackend,
+               ILogger $logger,
+               IJobList $jobList,
+               ITimeFactory $timeFactory) {
                $this->db = $db;
                $this->davBackend = $davBackend;
                $this->logger = $logger;
index 918023552da019c134b5bf2ab1beb2f1fcbda769..8a4ad5664a4343ca7ad428c0129d29052c4e9c2b 100644 (file)
@@ -48,9 +48,9 @@ class ChunkCleanup implements IRepairStep {
        private $jobList;
 
        public function __construct(IConfig $config,
-                                                               IUserManager $userManager,
-                                                               IRootFolder $rootFolder,
-                                                               IJobList $jobList) {
+               IUserManager $userManager,
+               IRootFolder $rootFolder,
+               IJobList $jobList) {
                $this->config = $config;
                $this->userManager = $userManager;
                $this->rootFolder = $rootFolder;
index 29547b09ff7312f815e9de9d2b06c93315abaf1f..a8138d876e90731bf445df1030c3807a19b42c98 100644 (file)
@@ -42,7 +42,7 @@ class RegenerateBirthdayCalendars implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IJobList $jobList,
-                                                               IConfig $config) {
+               IConfig $config) {
                $this->jobList = $jobList;
                $this->config = $config;
        }
index f488d85bde2d138201c7e91668e6fb60d367ccc9..0b5062fcf3e7a816035842af0e52eff7ae3b1be6 100644 (file)
@@ -60,8 +60,8 @@ class RegisterBuildReminderIndexBackgroundJob implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IDBConnection $db,
-                                                               IJobList $jobList,
-                                                               IConfig $config) {
+               IJobList $jobList,
+               IConfig $config) {
                $this->db = $db;
                $this->jobList = $jobList;
                $this->config = $config;
index 4789a74d98a39d1c76feba838ceed1cdc45d3d58..a36d43d29df2ef9f819862bccbd7b3df4ca193d1 100644 (file)
@@ -53,23 +53,23 @@ class RemoveOrphanEventsAndContacts implements IRepairStep {
         * @inheritdoc
         */
        public function run(IOutput $output) {
-               $orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendars',  'calendarid');
+               $orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendars', 'calendarid');
                $output->info(sprintf('%d events without a calendar have been cleaned up', $orphanItems));
-               $orphanItems = $this->removeOrphanChildren('calendarobjects_props', 'calendarobjects',  'objectid');
+               $orphanItems = $this->removeOrphanChildren('calendarobjects_props', 'calendarobjects', 'objectid');
                $output->info(sprintf('%d properties without an events have been cleaned up', $orphanItems));
-               $orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars',  'calendarid');
+               $orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars', 'calendarid');
                $output->info(sprintf('%d changes without a calendar have been cleaned up', $orphanItems));
 
-               $orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendarsubscriptions',  'calendarid');
+               $orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendarsubscriptions', 'calendarid');
                $output->info(sprintf('%d cached events without a calendar subscription have been cleaned up', $orphanItems));
-               $orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendarsubscriptions',  'calendarid');
+               $orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendarsubscriptions', 'calendarid');
                $output->info(sprintf('%d changes without a calendar subscription have been cleaned up', $orphanItems));
 
-               $orphanItems = $this->removeOrphanChildren('cards', 'addressbooks',  'addressbookid');
+               $orphanItems = $this->removeOrphanChildren('cards', 'addressbooks', 'addressbookid');
                $output->info(sprintf('%d contacts without an addressbook have been cleaned up', $orphanItems));
-               $orphanItems = $this->removeOrphanChildren('cards_properties', 'cards',  'cardid');
+               $orphanItems = $this->removeOrphanChildren('cards_properties', 'cards', 'cardid');
                $output->info(sprintf('%d properties without a contact have been cleaned up', $orphanItems));
-               $orphanItems = $this->removeOrphanChildren('addressbookchanges', 'addressbooks',  'addressbookid');
+               $orphanItems = $this->removeOrphanChildren('addressbookchanges', 'addressbooks', 'addressbookid');
                $output->info(sprintf('%d changes without an addressbook have been cleaned up', $orphanItems));
        }
 
index 1ee767ce547a64019dfdaae681ca15853d53b705..6609b2396ddcae38985c796f420dd80acfcdc06e 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
@@ -48,7 +48,7 @@ class Version1005Date20180413093149 extends SimpleMigrationStep {
                if (!$schema->hasTable('directlink')) {
                        $table = $schema->createTable('directlink');
 
-                       $table->addColumn('id',Types::BIGINT, [
+                       $table->addColumn('id', Types::BIGINT, [
                                'autoincrement' => true,
                                'notnull' => true,
                                'length' => 11,
index ae057f7459916beb6c969e050d0803007dc2dc16..9b0868f93749442d8333c22c5c841baa416f6ce9 100644 (file)
@@ -26,8 +26,8 @@
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index c607a14c2a998cc0ef34da6b18512b8959309193..36e35f615ac42b72bfbfb7b50bb12de717a7e593 100644 (file)
@@ -26,8 +26,8 @@
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 7ce2edccc28f16d522bd36a568a55d29ec76425a..8c3a8e4938c0a9b6190cfe16438cf49253e2c970 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 694f096ff3e299b9761c37f18c1ccf326d4ff7c2..e9751159913e49c2a6064cd2fe8656c98d03fccf 100644 (file)
@@ -30,8 +30,8 @@ namespace OCA\DAV\Migration;
 
 use Closure;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 86ce4c33ce5484cb31a9190d4b9e910f888dccb7..7b0c9861a982b82ab746916c6a93cc8e623e3c10 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OCA\DAV\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index e275b2a8e1e04a576de29f916631e655eb5c0a4d..9a69d106412772a0799dc019e59cac417e72fe23 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OCA\DAV\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index 1191f0e8878f0cce8fa96d6c57bb7d9fef6a5d74..a66733782596c9d51c1b107c1fcd2fc6b86fa3d8 100644 (file)
@@ -28,8 +28,8 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index a6f8772ec0858459fbbdcaae4bccc39462cf0abb..7c41bce87f520bc4df79342c3adcd007b5769302 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OCA\DAV\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 7bb39db6bf11bdda4489b7eac39fb4aa9cf226ba..e72b552cac108c3877dd6b4480c055fb9b3ec7a2 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
@@ -47,8 +47,8 @@ class Version1012Date20190808122342 extends SimpleMigrationStep {
         * @since 17.0.0
         */
        public function changeSchema(IOutput $output,
-                                                                \Closure $schemaClosure,
-                                                                array $options):?ISchemaWrapper {
+               \Closure $schemaClosure,
+               array $options):?ISchemaWrapper {
                /** @var ISchemaWrapper $schema */
                $schema = $schemaClosure();
 
index b1aaec0559b21f0d9ff5ee83d1373f3765f0993b..283610114361d2c93025ce4b2f7e4ab228fcf76c 100644 (file)
@@ -33,16 +33,15 @@ use OCP\IConfig;
 use OCP\IUserManager;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
-use Psr\Container\ContainerExceptionInterface;
-use Psr\Container\NotFoundExceptionInterface;
 use Psr\Log\LoggerInterface;
 use Throwable;
 
 class Version1027Date20230504122946 extends SimpleMigrationStep {
        public function __construct(private SyncService $syncService,
-                                                               private LoggerInterface $logger,
-                                                               private IUserManager $userManager,
-                                                               private IConfig $config) {}
+               private LoggerInterface $logger,
+               private IUserManager $userManager,
+               private IConfig $config) {
+       }
        /**
         * @param IOutput $output
         * @param Closure(): ISchemaWrapper $schemaClosure
index 672ca4010b7b838e7678072d4df2a77f219c9cd0..cc65c2b75e1b39b812f87243b4e5aec88c734610 100644 (file)
@@ -1,4 +1,6 @@
-<?php declare(strict_types = 1);
+<?php
+
+declare(strict_types = 1);
 /**
  * @copyright 2021 Carl Schwan <carl@carlschwan.eu>
  *
index 90be581a2a939e1ea08031394379a3a09129ad50..c751a4babf50d4190f06b9f4d22f162450a0127b 100644 (file)
@@ -50,7 +50,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\IRootFolder;
 use OCP\IConfig;
-use OCP\IGroupManager;
 use Psr\Log\LoggerInterface;
 use Sabre\DAV\SimpleCollection;
 
index 91904d5e8d6ae27f64bf345c56f2bf04b47fdb77..82c15efec64ed5952f65aac1ace5608d1259a75e 100644 (file)
@@ -61,9 +61,9 @@ abstract class ACalendarSearchProvider implements IProvider {
         * @param CalDavBackend $backend
         */
        public function __construct(IAppManager $appManager,
-                                                               IL10N $l10n,
-                                                               IURLGenerator $urlGenerator,
-                                                               CalDavBackend $backend) {
+               IL10N $l10n,
+               IURLGenerator $urlGenerator,
+               CalDavBackend $backend) {
                $this->appManager = $appManager;
                $this->l10n = $l10n;
                $this->urlGenerator = $urlGenerator;
index 4a2447c25f9af5756c012688703ff2860be4356b..0cf01742672c36e756df6fa32cd02fe516b52c1a 100644 (file)
@@ -153,7 +153,7 @@ class EventsSearchProvider extends ACalendarSearchProvider implements IFiltering
                        );
 
                        $searchResultIndex = array_combine(
-                               array_map(fn($event) => $event['calendarid'] . '-' . $event['uri'], $searchResults),
+                               array_map(fn ($event) => $event['calendarid'] . '-' . $event['uri'], $searchResults),
                                array_fill(0, count($searchResults), null),
                        );
                        foreach ($attendeeSearchResults as $attendeeResult) {
index b31a910c4d212bfbaf6263ee053f9d229b01c983..b50dd32e925fd44dbeba0eff039df712bd0c5bfb 100644 (file)
@@ -110,4 +110,3 @@ class AbsenceService {
                $this->eventDispatcher->dispatchTyped(new OutOfOfficeClearedEvent($eventData));
        }
 }
-
index c48ebe0255ed08d84199828bb29a65a7e74f2fe2..f8986ffe5d1631af408518d336e24814bb74f9be 100644 (file)
@@ -42,11 +42,11 @@ class AvailabilitySettings implements ISettings {
        protected ?string $userId;
 
        public function __construct(IConfig $config,
-                                                               IInitialState $initialState,
-                                                               ?string $userId,
-                                                               private LoggerInterface $logger,
-                                                               private IAvailabilityCoordinator $coordinator,
-                                                               private AbsenceMapper $absenceMapper) {
+               IInitialState $initialState,
+               ?string $userId,
+               private LoggerInterface $logger,
+               private IAvailabilityCoordinator $coordinator,
+               private AbsenceMapper $absenceMapper) {
                $this->config = $config;
                $this->initialState = $initialState;
                $this->userId = $userId;
index 1938d20c9f54eeceefc1a99d98808172d41211db..2985c9fc8883822bac296a1570d88174a37d60af 100644 (file)
@@ -27,8 +27,8 @@ namespace OCA\DAV\Settings;
 
 use OCA\DAV\AppInfo\Application;
 use OCP\AppFramework\Http\TemplateResponse;
-use OCP\IConfig;
 use OCP\AppFramework\Services\IInitialState;
+use OCP\IConfig;
 use OCP\IURLGenerator;
 use OCP\Settings\IDelegatedSettings;
 
index 58f61c1323226a43d6f71289f7749783fda1f719..34b71ae40f2f59270477ed984bbc87a2c758a50b 100644 (file)
@@ -353,11 +353,11 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
                        }
                }
 
-               $tags = array_filter(array_map(function(string $tagId) {
+               $tags = array_filter(array_map(function (string $tagId) {
                        return $this->cachedTags[$tagId] ?? null;
                }, $tagIds));
 
-               $uncachedTagIds = array_filter($tagIds, function(string $tagId): bool {
+               $uncachedTagIds = array_filter($tagIds, function (string $tagId): bool {
                        return !isset($this->cachedTags[$tagId]);
                });
 
@@ -369,7 +369,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
                        $tags += $retrievedTags;
                }
 
-               return array_filter($tags, function(ISystemTag $tag) use ($user) {
+               return array_filter($tags, function (ISystemTag $tag) use ($user) {
                        return $this->tagManager->canUserSeeTag($tag, $user);
                });
        }
index e3ae22af5e9907ffb593a211ec0e6e2be01c2a59..e05c154c8ea90388fc7c374e7467af84fda5cdb0 100644 (file)
@@ -35,8 +35,8 @@ class RootCollection extends AbstractPrincipalCollection {
        private $cleanupService;
 
        public function __construct(PrincipalBackend\BackendInterface $principalBackend,
-                                                               string $principalPrefix,
-                                                               CleanupService $cleanupService) {
+               string $principalPrefix,
+               CleanupService $cleanupService) {
                parent::__construct($principalBackend, $principalPrefix);
                $this->cleanupService = $cleanupService;
        }
index 7666dc99eea97954f3e5b3f411c35bd412c2c1d2..14ea4459435d787c4ddc32c9f966c2fd4253af80 100644 (file)
@@ -26,7 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\UserMigration;
 
-use function substr;
 use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\CalDAV\ICSExportPlugin\ICSExportPlugin;
@@ -53,6 +52,7 @@ use Sabre\VObject\UUIDUtil;
 use Symfony\Component\Console\Output\NullOutput;
 use Symfony\Component\Console\Output\OutputInterface;
 use Throwable;
+use function substr;
 
 class CalendarMigrator implements IMigrator, ISizeEstimationMigrator {
 
index 53aac0a4cfa3c68e60c2fb49365787820495c141..879642b9dc10de4629ac9094a2505df831ebae5a 100644 (file)
@@ -26,8 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\UserMigration;
 
-use function sort;
-use function substr;
 use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CardDAV\CardDavBackend;
 use OCA\DAV\CardDAV\Plugin as CardDAVPlugin;
@@ -49,6 +47,8 @@ use Sabre\VObject\UUIDUtil;
 use Symfony\Component\Console\Output\NullOutput;
 use Symfony\Component\Console\Output\OutputInterface;
 use Throwable;
+use function sort;
+use function substr;
 
 class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
 
index 3efc5ab1473aec04eb7a1ae93afd0aa5ea54b36f..925540163761e32ac8ddb070ea02c7b9c85b909d 100644 (file)
@@ -26,7 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\Tests\integration\UserMigration;
 
-use function scandir;
 use OCA\DAV\AppInfo\Application;
 use OCA\DAV\UserMigration\CalendarMigrator;
 use OCP\AppFramework\App;
@@ -38,6 +37,7 @@ use Sabre\VObject\Reader as VObjectReader;
 use Sabre\VObject\UUIDUtil;
 use Symfony\Component\Console\Output\OutputInterface;
 use Test\TestCase;
+use function scandir;
 
 /**
  * @group DB
index 3fa043df28545d3d38eb4d8d02b67d5b1850be17..0eb4801f570e66d335d07576163578755d5c6e7c 100644 (file)
@@ -26,7 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\Tests\integration\UserMigration;
 
-use function scandir;
 use OCA\DAV\AppInfo\Application;
 use OCA\DAV\UserMigration\ContactsMigrator;
 use OCP\AppFramework\App;
@@ -38,6 +37,7 @@ use Sabre\VObject\Splitter\VCard as VCardSplitter;
 use Sabre\VObject\UUIDUtil;
 use Symfony\Component\Console\Output\OutputInterface;
 use Test\TestCase;
+use function scandir;
 
 /**
  * @group DB
index b4a414297d7da88f028781bd30f35557d9b50594..4dd61c6e307d1208bfc06aa94680931cb20edc56 100644 (file)
@@ -27,6 +27,7 @@
  */
 namespace OCA\DAV\Tests\unit\CalDAV;
 
+use OC\KnownUser\KnownUserService;
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\CalDAV\Proxy\ProxyMapper;
 use OCA\DAV\Connector\Sabre\Principal;
@@ -40,7 +41,6 @@ use OCP\IUserSession;
 use OCP\L10N\IFactory;
 use OCP\Security\ISecureRandom;
 use OCP\Share\IManager as ShareManager;
-use OC\KnownUser\KnownUserService;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
 use Sabre\CalDAV\Xml\Property\SupportedCalendarComponentSet;
index e7bd2cc0b95b7328c5e3475278fe0f3d2f6e7be2..e0fdf16bc397c00b7a93df8da7944f2620adeefd 100644 (file)
@@ -9,7 +9,6 @@ use OCP\Calendar\ICreateFromString;
 use OCP\Constants;
 use PHPUnit\Framework\MockObject\MockObject;
 use Sabre\VObject\Component\VCalendar;
-use Sabre\VObject\Component\VEvent;
 use Test\TestCase;
 
 class CalendarObjectTest extends TestCase {
@@ -145,7 +144,7 @@ class CalendarObjectTest extends TestCase {
 
                $backend->expects($this->once())
                        ->method('createFromString')
-                       ->with('someid.ics', self::callback(fn($data): bool => preg_match('/BEGIN:VEVENT(.|\r\n)+STATUS:CANCELLED/', $data) === 1));
+                       ->with('someid.ics', self::callback(fn ($data): bool => preg_match('/BEGIN:VEVENT(.|\r\n)+STATUS:CANCELLED/', $data) === 1));
 
                $calendarObject->delete();
        }
index c21be3065c5634a4c9356744e9e400e5829136c7..efc9ef32afc9e7a6742bfb8123f5085481099bfb 100644 (file)
@@ -28,21 +28,17 @@ namespace OCA\DAV\Tests\unit\CalDAV;
 
 use OCA\DAV\CalDAV\EventComparisonService;
 use Sabre\VObject\Component\VCalendar;
-use Sabre\VObject\Component\VEvent;
 use Test\TestCase;
 
-class EventComparisonServiceTest extends TestCase
-{
+class EventComparisonServiceTest extends TestCase {
        /** @var EventComparisonService */
        private $eventComparisonService;
 
-       protected function setUp(): void
-       {
+       protected function setUp(): void {
                $this->eventComparisonService = new EventComparisonService();
        }
 
-       public function testNoModifiedEvent(): void
-       {
+       public function testNoModifiedEvent(): void {
                $vCalendarOld = new VCalendar();
                $vCalendarNew = new VCalendar();
 
@@ -73,8 +69,7 @@ class EventComparisonServiceTest extends TestCase
                $this->assertEmpty($result['new']);
        }
 
-       public function testNewEvent(): void
-       {
+       public function testNewEvent(): void {
                $vCalendarOld = null;
                $vCalendarNew = new VCalendar();
 
@@ -94,8 +89,7 @@ class EventComparisonServiceTest extends TestCase
                $this->assertEquals([$vEventNew], $result['new']);
        }
 
-       public function testModifiedUnmodifiedEvent(): void
-       {
+       public function testModifiedUnmodifiedEvent(): void {
                $vCalendarOld = new VCalendar();
                $vCalendarNew = new VCalendar();
 
index c409ff92aa42885296e39609fddbf7c44d9138fd..12a5aa0123b9e91318aced90e21433ad0a9ce5d3 100644 (file)
@@ -68,7 +68,7 @@ class PublicCalendarTest extends CalendarTest {
                $config = $this->createMock(IConfig::class);
                /** @var  MockObject | LoggerInterface $logger */
                $logger = $this->createMock(LoggerInterface::class);
-               $c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config,$logger);
+               $c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config, $logger);
                $children = $c->getChildren();
                $this->assertEquals(2, count($children));
                $children = $c->getMultipleChildren(['event-0', 'event-1', 'event-2']);
@@ -156,7 +156,7 @@ EOD;
                $config = $this->createMock(IConfig::class);
                /** @var  MockObject | LoggerInterface $logger */
                $logger = $this->createMock(LoggerInterface::class);
-               $c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config,$logger);
+               $c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config, $logger);
 
                $this->assertEquals(count($c->getChildren()), 2);
 
index 5ff9dc36cf0f7b2cfd6c02509ac6e81dccd8cadf..68f1d26f1bab6f8ae7f4b7f2e04033b3562a3f02 100644 (file)
@@ -563,7 +563,8 @@ EOD;
                $this->timeFactory->expects($this->once())
                        ->method('getDateTime')
                        ->with()
-                       ->willReturn(DateTime::createFromFormat(DateTime::ATOM, '2023-02-03T13:28:00+00:00'));;
+                       ->willReturn(DateTime::createFromFormat(DateTime::ATOM, '2023-02-03T13:28:00+00:00'));
+               ;
 
                $this->reminderService->onCalendarObjectCreate($objectData);
        }
index c5092e5f48330582965e568dcd5ab23af10bddef..0e459418ae0afb9f30c74c7f9635e37a5390b7cc 100644 (file)
@@ -45,7 +45,6 @@ use Psr\Log\LoggerInterface;
 use Sabre\VObject\Component\VCalendar;
 use Sabre\VObject\Component\VEvent;
 use Sabre\VObject\ITip\Message;
-use Sabre\VObject\Property;
 use Test\TestCase;
 use function array_merge;
 
@@ -233,7 +232,7 @@ class IMipPluginTest extends TestCase {
                        ->willReturn('yes');
                $this->service->expects(self::once())
                        ->method('createInvitationToken')
-                       ->with($message,$newVevent, '1496912700')
+                       ->with($message, $newVevent, '1496912700')
                        ->willReturn('token');
                $this->service->expects(self::once())
                        ->method('addResponseButtons')
index 000476050c77c9950858d0b662536ffc760c1497..142731098266a97bc70364ff4bb9e17ea0730082 100644 (file)
@@ -44,8 +44,7 @@ use Sabre\VObject\Component\VEvent;
 use Sabre\VObject\Property\ICalendar\DateTime;
 use Test\TestCase;
 
-class IMipServiceTest extends TestCase
-{
+class IMipServiceTest extends TestCase {
        /** @var URLGenerator|MockObject */
        private $urlGenerator;
 
@@ -67,8 +66,7 @@ class IMipServiceTest extends TestCase
        /** @var IMipService */
        private $service;
 
-       protected function setUp(): void
-       {
+       protected function setUp(): void {
                $this->urlGenerator = $this->createMock(URLGenerator::class);
                $this->config = $this->createMock(IConfig::class);
                $this->db = $this->createMock(IDBConnection::class);
@@ -91,8 +89,7 @@ class IMipServiceTest extends TestCase
                );
        }
 
-       public function testGetFrom(): void
-       {
+       public function testGetFrom(): void {
                $senderName = "Detective McQueen";
                $default = "Twin Lakes Police Department - Darkside Division";
                $expected = "Detective McQueen via Twin Lakes Police Department - Darkside Division";
@@ -105,8 +102,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals($expected, $actual);
        }
 
-       public function testBuildBodyDataCreated(): void
-       {
+       public function testBuildBodyDataCreated(): void {
                $vCalendar = new VCalendar();
                $oldVevent = null;
                $newVevent = new VEvent($vCalendar, 'two', [
@@ -132,8 +128,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals($expected, $actual);
        }
 
-       public function testBuildBodyDataUpdate(): void
-       {
+       public function testBuildBodyDataUpdate(): void {
                $vCalendar = new VCalendar();
                $oldVevent = new VEvent($vCalendar, 'two', [
                        'UID' => 'uid-1234',
@@ -201,8 +196,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals($expected, $actual);
        }
 
-       public function testGetLastOccurrenceRRULE(): void
-       {
+       public function testGetLastOccurrenceRRULE(): void {
                $vCalendar = new VCalendar();
                $vCalendar->add('VEVENT', [
                        'UID' => 'uid-1234',
@@ -217,8 +211,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals(1454284800, $occurrence);
        }
 
-       public function testGetLastOccurrenceEndDate(): void
-       {
+       public function testGetLastOccurrenceEndDate(): void {
                $vCalendar = new VCalendar();
                $vCalendar->add('VEVENT', [
                        'UID' => 'uid-1234',
@@ -233,8 +226,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals(1483228800, $occurrence);
        }
 
-       public function testGetLastOccurrenceDuration(): void
-       {
+       public function testGetLastOccurrenceDuration(): void {
                $vCalendar = new VCalendar();
                $vCalendar->add('VEVENT', [
                        'UID' => 'uid-1234',
@@ -249,8 +241,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals(1458864000, $occurrence);
        }
 
-       public function testGetLastOccurrenceAllDay(): void
-       {
+       public function testGetLastOccurrenceAllDay(): void {
                $vCalendar = new VCalendar();
                $vEvent = $vCalendar->add('VEVENT', [
                        'UID' => 'uid-1234',
@@ -267,8 +258,7 @@ class IMipServiceTest extends TestCase
                $this->assertEquals(1451692800, $occurrence);
        }
 
-       public function testGetLastOccurrenceFallback(): void
-       {
+       public function testGetLastOccurrenceFallback(): void {
                $vCalendar = new VCalendar();
                $vCalendar->add('VEVENT', [
                        'UID' => 'uid-1234',
index 06d81662a4293a71adb6211767593c62423b51b6..f9cba4e6a833780edf83c80c195188827490738c 100644 (file)
@@ -29,7 +29,6 @@ namespace OCA\DAV\Tests\unit\CardDAV;
 use OCA\DAV\CardDAV\AddressBook;
 use OCA\DAV\CardDAV\Card;
 use OCA\DAV\CardDAV\CardDavBackend;
-use OCA\DAV\DAV\CustomPropertiesBackend;
 use OCP\IL10N;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
index 7205cf5665444df5a07ba03591455b28318d13e0..2f413876831376b622ac8668fc1e3737b69492e8 100644 (file)
@@ -34,8 +34,8 @@ use OCA\DAV\CardDAV\Converter;
 use OCP\Accounts\IAccount;
 use OCP\Accounts\IAccountManager;
 use OCP\Accounts\IAccountProperty;
-use OCP\IURLGenerator;
 use OCP\IImage;
+use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 use PHPUnit\Framework\MockObject\MockObject;
index 25cad495ce91d8ee4c52cd13505c9ff5583905ed..4a2ebb496b0cb5beffef8373d11262b26ffe037d 100644 (file)
@@ -164,9 +164,9 @@ class PublicAuthTest extends \Test\TestCase {
 
                $this->shareManager->expects($this->once())
                        ->method('checkPassword')->with(
-                       $this->equalTo($share),
-                       $this->equalTo('password')
-               )->willReturn(true);
+                               $this->equalTo($share),
+                               $this->equalTo('password')
+                       )->willReturn(true);
 
                $result = $this->invokePrivate($this->auth, 'validateUserPass', ['username', 'password']);
 
index 616e9796ab4b4d7c1f1693c0d415d9d8baa3a228..cecd115710d7f8129fd4459143be75e9b599662f 100644 (file)
@@ -31,8 +31,8 @@ namespace OCA\DAV\Tests\unit\Connector\Sabre;
 use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin;
 use OCP\IConfig;
 use PHPUnit\Framework\MockObject\MockObject;
-use Test\TestCase;
 use Sabre\HTTP\RequestInterface;
+use Test\TestCase;
 
 /**
  * Class BlockLegacyClientPluginTest
index 65a420589f00a70c3a5285bdf563774aec32da8f..4182ebc2f370b8e193d082bd2efae4e7d81c4fda 100644 (file)
@@ -28,9 +28,9 @@ class ForbiddenTest extends \Test\TestCase {
        public function testSerialization(): void {
 
                // create xml doc
-               $DOM = new \DOMDocument('1.0','utf-8');
+               $DOM = new \DOMDocument('1.0', 'utf-8');
                $DOM->formatOutput = true;
-               $error = $DOM->createElementNS('DAV:','d:error');
+               $error = $DOM->createElementNS('DAV:', 'd:error');
                $error->setAttribute('xmlns:s', \Sabre\DAV\Server::NS_SABREDAV);
                $DOM->appendChild($error);
 
index f202bf573de29877a44c60a9d9ce1593cf989f08..b115f72ca7942f5d6c4ed47f0592cd35c4a63962 100644 (file)
@@ -29,9 +29,9 @@ class InvalidPathTest extends \Test\TestCase {
        public function testSerialization(): void {
 
                // create xml doc
-               $DOM = new \DOMDocument('1.0','utf-8');
+               $DOM = new \DOMDocument('1.0', 'utf-8');
                $DOM->formatOutput = true;
-               $error = $DOM->createElementNS('DAV:','d:error');
+               $error = $DOM->createElementNS('DAV:', 'd:error');
                $error->setAttribute('xmlns:s', \Sabre\DAV\Server::NS_SABREDAV);
                $DOM->appendChild($error);
 
index c198df16f087109764c53b26ea17a5675f60399d..8c66c9f3f86f6a41014dc92f150987126283b253 100644 (file)
  */
 namespace OCA\DAV\Tests\unit\Connector\Sabre;
 
-use OC\Log;
 use OC\SystemConfig;
 use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
 use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
 use OCA\DAV\Exception\ServerMaintenanceMode;
 use Psr\Log\LoggerInterface;
 use Sabre\DAV\Exception\NotFound;
-use Sabre\DAV\Exception\ServiceUnavailable;
 use Sabre\DAV\Server;
 use Test\TestCase;
 
index 83765d338f2c739f763ad053d4d92a1a2e0e5f58..3f73e956fdeaa0d12c59406a79218fe753ae98a5 100644 (file)
@@ -39,7 +39,6 @@ use OCP\Files\Cache\ICacheEntry;
 use OCP\Files\Mount\IMountPoint;
 use OCP\Files\Storage;
 use OCP\ICache;
-use OCP\Share\IAttributes;
 use OCP\Share\IManager;
 use OCP\Share\IShare;
 
@@ -87,7 +86,7 @@ class NodeTest extends \Test\TestCase {
                $info->method('getInternalPath')
                        ->willReturn($internalPath);
                $info->method('getMountPoint')
-                       ->willReturnCallback(function() use ($shared) {
+                       ->willReturnCallback(function () use ($shared) {
                                if ($shared) {
                                        return $this->createMock(SharedMount::class);
                                } else {
index e0f6f1302a5ab566746bb22f05e207b39b6e7c01..00dde60d234ad9049c26b7e8e255ec5f2c14301c 100644 (file)
  */
 namespace OCA\DAV\Tests\unit\DAV;
 
+use OCA\DAV\Connector\Sabre\Exception\Forbidden;
+use OCA\DAV\Connector\Sabre\File as DavFile;
 use OCA\DAV\DAV\ViewOnlyPlugin;
 use OCA\Files_Sharing\SharedStorage;
-use OCA\DAV\Connector\Sabre\File as DavFile;
-use OCA\Files_Versions\Versions\IVersion;
 use OCA\Files_Versions\Sabre\VersionFile;
+use OCA\Files_Versions\Versions\IVersion;
 use OCP\Files\File;
 use OCP\Files\Storage\IStorage;
 use OCP\Share\IAttributes;
@@ -32,9 +33,8 @@ use OCP\Share\IShare;
 use Psr\Log\LoggerInterface;
 use Sabre\DAV\Server;
 use Sabre\DAV\Tree;
-use Test\TestCase;
 use Sabre\HTTP\RequestInterface;
-use OCA\DAV\Connector\Sabre\Exception\Forbidden;
+use Test\TestCase;
 
 class ViewOnlyPluginTest extends TestCase {
 
index ea841140201946cb90a833d8b04f87df3eb3cd58..0240fac3621719837794c20c5c6b59fbbb374741 100644 (file)
@@ -30,10 +30,10 @@ namespace OCA\DAV\Tests\Files;
 use OC\Files\Search\SearchComparison;
 use OC\Files\Search\SearchQuery;
 use OC\Files\View;
-use OCA\DAV\Connector\Sabre\ObjectTree;
 use OCA\DAV\Connector\Sabre\Directory;
 use OCA\DAV\Connector\Sabre\File;
 use OCA\DAV\Connector\Sabre\FilesPlugin;
+use OCA\DAV\Connector\Sabre\ObjectTree;
 use OCA\DAV\Files\FileSearchBackend;
 use OCP\Files\FileInfo;
 use OCP\Files\Folder;
index 4c470f495954402fff4cfe0931f8539c24358a52..d131ad8e182aa78561b2eae127776b6fd43debc4 100644 (file)
@@ -22,8 +22,8 @@
 
 namespace OCA\DAV\Tests\unit\DAV;
 
-use Test\TestCase;
 use \OCA\DAV\BulkUpload\MultipartRequestParser;
+use Test\TestCase;
 
 class MultipartRequestParserTest extends TestCase {
        private function getValidBodyObject() {
@@ -65,7 +65,7 @@ class MultipartRequestParserTest extends TestCase {
 
                $body .= '--'.$boundary."--";
 
-               $stream = fopen('php://temp','r+');
+               $stream = fopen('php://temp', 'r+');
                fwrite($stream, $body);
                rewind($stream);
 
index f012c4a44bec25560bcf1bf4d6c83f83b602b3fe..095c995ad9f32f590b5cee686365156ed573514a 100644 (file)
@@ -295,7 +295,7 @@ class EventsSearchProviderTest extends TestCase {
                $user->method('getUID')->willReturn('john.doe');
                $query = $this->createMock(ISearchQuery::class);
                $seachTermFilter = $this->createMock(IFilter::class);
-               $query->method('getFilter')->willReturnCallback(function($name) use ($seachTermFilter) {
+               $query->method('getFilter')->willReturnCallback(function ($name) use ($seachTermFilter) {
                        return match ($name) {
                                'term' => $seachTermFilter,
                                default => null,
index 296f6f9ef8c53ee2fdf8ee72e89133a04bc97010..03940cd24580863e57f114bbb839c864b2908a65 100644 (file)
@@ -27,8 +27,8 @@ namespace OCA\DAV\Tests\Unit\DAV\Settings;
 
 use OCA\DAV\Settings\CalDAVSettings;
 use OCP\AppFramework\Http\TemplateResponse;
-use OCP\IConfig;
 use OCP\AppFramework\Services\IInitialState;
+use OCP\IConfig;
 use OCP\IURLGenerator;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
@@ -58,11 +58,11 @@ class CalDAVSettingsTest extends TestCase {
        public function testGetForm(): void {
                $this->config->method('getAppValue')
                   ->withConsecutive(
-                          ['dav', 'sendInvitations', 'yes'],
-                          ['dav', 'generateBirthdayCalendar', 'yes'],
-                          ['dav', 'sendEventReminders', 'yes'],
-                          ['dav', 'sendEventRemindersToSharedUsers', 'yes'],
-                          ['dav', 'sendEventRemindersPush', 'yes'],
+                       ['dav', 'sendInvitations', 'yes'],
+                       ['dav', 'generateBirthdayCalendar', 'yes'],
+                       ['dav', 'sendEventReminders', 'yes'],
+                       ['dav', 'sendEventRemindersToSharedUsers', 'yes'],
+                       ['dav', 'sendEventRemindersPush', 'yes'],
                   )
                   ->will($this->onConsecutiveCalls('yes', 'no', 'yes', 'yes', 'yes'));
                $this->urlGenerator
index 7dd051f859f35e1cf7c4945be76433ee58ef2a4f..d39aec0915e6b54d18629150c08c04136d318966 100644 (file)
@@ -78,9 +78,9 @@ class AssemblyStreamTest extends \Test\TestCase {
                $tonofnodes = [];
                $tonofdata = "";
                for ($i = 0; $i < 101; $i++) {
-                       $thisdata = rand(0,100); // variable length and content
+                       $thisdata = rand(0, 100); // variable length and content
                        $tonofdata .= $thisdata;
-                       array_push($tonofnodes, $this->buildNode($i,$thisdata));
+                       array_push($tonofnodes, $this->buildNode($i, $thisdata));
                }
 
                return[
index 6000d6021c8bc80566e795317545350c0331ba9c..5a07e2942483b8b36314fdb8d77bead38fd9687c 100644 (file)
@@ -49,8 +49,8 @@ class DisableMasterKey extends Command {
         * @param QuestionHelper $questionHelper
         */
        public function __construct(Util $util,
-                                                               IConfig $config,
-                                                               QuestionHelper $questionHelper) {
+               IConfig $config,
+               QuestionHelper $questionHelper) {
                $this->util = $util;
                $this->config = $config;
                $this->questionHelper = $questionHelper;
index 031f6e3fa4e8d87eaeb1f8a84b688088bbdd5d66..7c49988c7fbf8f3a945b21f80411e9bc7b0e78b1 100644 (file)
@@ -48,8 +48,8 @@ class EnableMasterKey extends Command {
         * @param QuestionHelper $questionHelper
         */
        public function __construct(Util $util,
-                                                               IConfig $config,
-                                                               QuestionHelper $questionHelper) {
+               IConfig $config,
+               QuestionHelper $questionHelper) {
                $this->util = $util;
                $this->config = $config;
                $this->questionHelper = $questionHelper;
index b961b40f57297b429ca6c21577855099682596b8..5001da4bb92917ef429a91dde58e035431837297 100644 (file)
@@ -30,8 +30,8 @@ use OC\Files\View;
 use OCP\Encryption\IManager;
 use OCP\Files\Config\ICachedMountInfo;
 use OCP\Files\Config\IUserMountCache;
-use OCP\Files\Folder;
 use OCP\Files\File;
+use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
 use OCP\IUser;
index d3dd4a3612d37d9ee748061477f2f9c1523143e8..97a26b1d4048374a32854a0ceb2897fe0e29b670 100644 (file)
@@ -52,9 +52,9 @@ class RecoverUser extends Command {
         * @param QuestionHelper $questionHelper
         */
        public function __construct(Util $util,
-                                                               IConfig $config,
-                                                               IUserManager $userManager,
-                                                               QuestionHelper $questionHelper) {
+               IConfig $config,
+               IUserManager $userManager,
+               QuestionHelper $questionHelper) {
                $this->util = $util;
                $this->questionHelper = $questionHelper;
                $this->userManager = $userManager;
index 85a99a178453cb294d92db49988c4772a0518625..8e0178af48611e4bea0cd34471f010bf733efc47 100644 (file)
@@ -57,9 +57,9 @@ class ScanLegacyFormat extends Command {
         * @param QuestionHelper $questionHelper
         */
        public function __construct(Util $util,
-                                                               IConfig $config,
-                                                               QuestionHelper $questionHelper,
-                                                               IUserManager $userManager) {
+               IConfig $config,
+               QuestionHelper $questionHelper,
+               IUserManager $userManager) {
                parent::__construct();
 
                $this->util = $util;
index c5f8a7e8d725de9e0704707fe4c5a5c10637a9ad..743e17e5eff595b4d68fa4cfc1a4b2ef570844bd 100644 (file)
@@ -56,10 +56,10 @@ class RecoveryController extends Controller {
         * @param Recovery $recovery
         */
        public function __construct($AppName,
-                                                               IRequest $request,
-                                                               IConfig $config,
-                                                               IL10N $l10n,
-                                                               Recovery $recovery) {
+               IRequest $request,
+               IConfig $config,
+               IL10N $l10n,
+               Recovery $recovery) {
                parent::__construct($AppName, $request);
                $this->config = $config;
                $this->l = $l10n;
index eedbaea9d9d586a574e6f8e2a6658c99b4b13c08..fa4c3d2ae2b348f5e3992a4b05ec0808ddb7a16d 100644 (file)
@@ -75,16 +75,16 @@ class SettingsController extends Controller {
         * @param Util $util
         */
        public function __construct($AppName,
-                                                               IRequest $request,
-                                                               IL10N $l10n,
-                                                               IUserManager $userManager,
-                                                               IUserSession $userSession,
-                                                               KeyManager $keyManager,
-                                                               Crypt $crypt,
-                                                               Session $session,
-                                                               ISession $ocSession,
-                                                               Util $util
-) {
+               IRequest $request,
+               IL10N $l10n,
+               IUserManager $userManager,
+               IUserSession $userSession,
+               KeyManager $keyManager,
+               Crypt $crypt,
+               Session $session,
+               ISession $ocSession,
+               Util $util
+       ) {
                parent::__construct($AppName, $request);
                $this->l = $l10n;
                $this->userSession = $userSession;
index d07b4da794a370a8f3b4a4a7f4cf2614975ee68c..29582a66ad32c6e09f63085c7695152406a21e97 100644 (file)
@@ -52,11 +52,11 @@ class StatusController extends Controller {
         * @param IManager $encryptionManager
         */
        public function __construct($AppName,
-                                                               IRequest $request,
-                                                               IL10N $l10n,
-                                                               Session $session,
-                                                               IManager $encryptionManager
-                                                               ) {
+               IRequest $request,
+               IL10N $l10n,
+               Session $session,
+               IManager $encryptionManager
+       ) {
                parent::__construct($AppName, $request);
                $this->l = $l10n;
                $this->session = $session;
index ee01d632be8a9387cd5fb93fef0ab2944c5b3f7a..2d212c1f055a4a631df2d32961fca5a3dd855fc8 100644 (file)
@@ -41,8 +41,8 @@ use OCP\Encryption\Exceptions\GenericEncryptionException;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IUserSession;
-use Psr\Log\LoggerInterface;
 use phpseclib\Crypt\RC4;
+use Psr\Log\LoggerInterface;
 
 /**
  * Class Crypt provides the encryption implementation of the default Nextcloud
index 27eba0ad781e1de11a367548673a949cdc84d365..487e108949565213b9b63741fb67e06cb970d1c3 100644 (file)
@@ -210,9 +210,9 @@ class UserHooks implements IHook {
                                $this->logger->error('Encryption could not update users encryption password');
                        }
 
-                       // NOTE: Session does not need to be updated as the
-                       // private key has not changed, only the passphrase
-                       // used to decrypt it has changed
+               // NOTE: Session does not need to be updated as the
+               // private key has not changed, only the passphrase
+               // used to decrypt it has changed
                } else { // admin changed the password for a different user, create new keys and re-encrypt file keys
                        $userId = $params['uid'];
                        $this->initMountPoints($userId);
index 25738dabf8950bfe4ca06969b9e8966a8f374464..66ad59266a5e3bbb85ca33f158469e59a04944ac 100644 (file)
@@ -69,11 +69,11 @@ class Recovery {
         * @param View $view
         */
        public function __construct(IUserSession $userSession,
-                                                               Crypt $crypt,
-                                                               KeyManager $keyManager,
-                                                               IConfig $config,
-                                                               IFile $file,
-                                                               View $view) {
+               Crypt $crypt,
+               KeyManager $keyManager,
+               IConfig $config,
+               IFile $file,
+               View $view) {
                $this->user = ($userSession->isLoggedIn()) ? $userSession->getUser() : null;
                $this->crypt = $crypt;
                $this->keyManager = $keyManager;
index c28a83d81152072443c33138b696dc8303c82161..8b0ddaa8cd047223e5a804976dbc28b7e3fe5804 100644 (file)
@@ -37,7 +37,7 @@ class Setup {
        private $keyManager;
 
        public function __construct(Crypt $crypt,
-                                                               KeyManager $keyManager) {
+               KeyManager $keyManager) {
                $this->crypt = $crypt;
                $this->keyManager = $keyManager;
        }
index 1ae93dfb0e2bf3fdd234c9ec24b564c3fea9248a..e9e9a97b9000ace06e0dcad7c168bf527cd6436f 100644 (file)
@@ -12,8 +12,8 @@ style('encryption', 'settings-admin');
                <p id="encryptHomeStorageSetting">
                        <input type="checkbox" class="checkbox" name="encrypt_home_storage" id="encryptHomeStorage"
                                   value="1" <?php if ($_['encryptHomeStorage']) {
-       print_unescaped('checked="checked"');
-} ?> />
+                                       print_unescaped('checked="checked"');
+                                  } ?> />
                        <label for="encryptHomeStorage"><?php p($l->t('Encrypt the home storage'));?></label></br>
                        <em><?php p($l->t("Enabling this option encrypts all files stored on the main storage, otherwise only files on external storage will be encrypted")); ?></em>
                </p>
@@ -44,8 +44,8 @@ style('encryption', 'settings-admin');
                        <br/><br/>
 
                        <p name="changeRecoveryPasswordBlock" id="encryptionChangeRecoveryKey" <?php if ($_['recoveryEnabled'] === '0') {
-       print_unescaped('class="hidden"');
-}?>>
+                               print_unescaped('class="hidden"');
+                       }?>>
                                <?php p($l->t("Change recovery key password:")); ?>
                                <span class="msg"></span>
                                <br/>
index 899ba4a17474578c19467094bac3fda88318b1f7..d44b78b545bb7297eda34269e784b89f09e62b62 100644 (file)
@@ -1,6 +1,6 @@
 <?php
-       /** @var array $_ */
-       /** @var \OCP\IL10N $l */
+/** @var array $_ */
+/** @var \OCP\IL10N $l */
 script('encryption', 'settings-personal');
 ?>
 <form id="ocDefaultEncryptionModule" class="section">
@@ -19,7 +19,7 @@ script('encryption', 'settings-personal');
                        <br />
                        <?php p($l->t("Set your old private key password to your current log-in password:")); ?>
                        <?php if ($_["recoveryEnabledForUser"]):
-                                       p($l->t(" If you don't remember your old password you can ask your administrator to recover your files."));
+                               p($l->t(" If you don't remember your old password you can ask your administrator to recover your files."));
                        endif; ?>
                        <br />
                        <input
index 06caa5aba1a597d64631d4f09401da9796ebe69a..f5a173cca8378b3338350736f982f290dbfa5634 100644 (file)
@@ -29,8 +29,8 @@ namespace OCA\Encryption\Tests\Crypto;
 use OCA\Encryption\Crypto\Crypt;
 use OCP\IConfig;
 use OCP\IL10N;
-use Psr\Log\LoggerInterface;
 use OCP\IUserSession;
+use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
 class CryptTest extends TestCase {
index add7e375f0495002fc6d210827897d8be598e3f1..7faa6699e91455666fb47d7358aef3bda3ba32a6 100644 (file)
@@ -34,11 +34,11 @@ use OCA\Encryption\Recovery;
 use OCA\Encryption\Session;
 use OCA\Encryption\Users\Setup;
 use OCA\Encryption\Util;
-use Psr\Log\LoggerInterface;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\IUserSession;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
 /**
index 89956b7558c84c869ca67058da9dc42c1422ae51..d51d4dde528a45d9e74405fc1bac1d67319ac92f 100644 (file)
@@ -41,11 +41,11 @@ use OCP\Encryption\Keys\IStorage;
 use OCP\Files\Cache\ICache;
 use OCP\Files\Storage;
 use OCP\IConfig;
-use Psr\Log\LoggerInterface;
 use OCP\IUserSession;
 use OCP\Lock\ILockingProvider;
 use OCP\Lock\LockedException;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
 class KeyManagerTest extends TestCase {
index 055b65e2e28afdb0eabccbfd8a631dfc4cb69284..d675b3030a882d19c217503fbcff545e09093508 100644 (file)
@@ -29,10 +29,10 @@ use OCA\Encryption\Settings\Admin;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\IConfig;
 use OCP\IL10N;
-use Psr\Log\LoggerInterface;
 use OCP\ISession;
 use OCP\IUserManager;
 use OCP\IUserSession;
+use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
 class AdminTest extends TestCase {
index fc9d1e5e15023c6c637577fff5532fe51d6a4693..2296f1237618db99d22246f405c9e13805e126d0 100644 (file)
@@ -53,7 +53,7 @@ class Application extends App implements IBootstrap {
        }
 
        private function registerCloudFederationProvider(ICloudFederationProviderManager $manager,
-                                                                                                        IAppContainer $appContainer): void {
+               IAppContainer $appContainer): void {
                $manager->addCloudFederationProvider('file',
                        'Federated Files Sharing',
                        function () use ($appContainer): CloudFederationProviderFiles {
index 98fe20bf46e1b2ef2a7fc4d0031f9fdcd10330d3..1cbf21741d829a77a7f637c15ef879f23de4e8f1 100644 (file)
@@ -50,7 +50,7 @@ class RetryJob extends Job {
        private int $interval = 600;
 
        public function __construct(Notifications $notifications,
-                                                               ITimeFactory $time) {
+               ITimeFactory $time) {
                parent::__construct($time);
                $this->notifications = $notifications;
        }
index 1f1334e7aeea847a7571ad7899d804a03c8af5e9..5855d98f34edc6644ad0dfcd39da2f7329b5a8a9 100644 (file)
@@ -30,11 +30,11 @@ namespace OCA\FederatedFileSharing\Controller;
 use OCA\FederatedFileSharing\AddressHandler;
 use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCA\FederatedFileSharing\Notifications;
+use OCP\App\IAppManager;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\OCS\OCSBadRequestException;
 use OCP\AppFramework\OCS\OCSException;
 use OCP\AppFramework\OCSController;
-use OCP\App\IAppManager;
 use OCP\Constants;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
@@ -89,18 +89,18 @@ class RequestHandlerController extends OCSController {
        private $eventDispatcher;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               FederatedShareProvider $federatedShareProvider,
-                                                               IDBConnection $connection,
-                                                               Share\IManager $shareManager,
-                                                               Notifications $notifications,
-                                                               AddressHandler $addressHandler,
-                                                               IUserManager $userManager,
-                                                               ICloudIdManager $cloudIdManager,
-                                                               LoggerInterface $logger,
-                                                               ICloudFederationFactory $cloudFederationFactory,
-                                                               ICloudFederationProviderManager $cloudFederationProviderManager,
-                                                               IEventDispatcher $eventDispatcher
+               IRequest $request,
+               FederatedShareProvider $federatedShareProvider,
+               IDBConnection $connection,
+               Share\IManager $shareManager,
+               Notifications $notifications,
+               AddressHandler $addressHandler,
+               IUserManager $userManager,
+               ICloudIdManager $cloudIdManager,
+               LoggerInterface $logger,
+               ICloudFederationFactory $cloudFederationFactory,
+               ICloudFederationProviderManager $cloudFederationProviderManager,
+               IEventDispatcher $eventDispatcher
        ) {
                parent::__construct($appName, $request);
 
@@ -175,9 +175,9 @@ class RequestHandlerController extends OCSController {
                        $provider = $this->cloudFederationProviderManager->getCloudFederationProvider('file');
                        $provider->shareReceived($share);
                        if ($sharedByFederatedId === $ownerFederatedId) {
-                                       $this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('A new federated share with "%s" was created by "%s" and shared with "%s"', [$name, $ownerFederatedId, $shareWith]));
+                               $this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('A new federated share with "%s" was created by "%s" and shared with "%s"', [$name, $ownerFederatedId, $shareWith]));
                        } else {
-                                       $this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('A new federated share with "%s" was shared by "%s" (resource owner is: "%s") and shared with "%s"', [$name, $sharedByFederatedId, $ownerFederatedId, $shareWith]));
+                               $this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('A new federated share with "%s" was shared by "%s" (resource owner is: "%s") and shared with "%s"', [$name, $sharedByFederatedId, $ownerFederatedId, $shareWith]));
                        }
                } catch (ProviderDoesNotExistsException $e) {
                        throw new OCSException('Server does not support federated cloud sharing', 503);
index 6157bad0335521dec64352c7039e8cc07ac7b7f5..479b636fd402461cbffa65d1b8f256e693c6268b 100644 (file)
@@ -75,18 +75,18 @@ class FederatedShareProvider implements IShareProvider {
         * DefaultShareProvider constructor.
         */
        public function __construct(
-                       private IDBConnection $dbConnection,
-                       private AddressHandler $addressHandler,
-                       private Notifications $notifications,
-                       private TokenHandler $tokenHandler,
-                       private IL10N $l,
-                       private IRootFolder $rootFolder,
-                       private IConfig $config,
-                       private IUserManager $userManager,
-                       private ICloudIdManager $cloudIdManager,
-                       private \OCP\GlobalScale\IConfig $gsConfig,
-                       private ICloudFederationProviderManager $cloudFederationProviderManager,
-                       private LoggerInterface $logger,
+               private IDBConnection $dbConnection,
+               private AddressHandler $addressHandler,
+               private Notifications $notifications,
+               private TokenHandler $tokenHandler,
+               private IL10N $l,
+               private IRootFolder $rootFolder,
+               private IConfig $config,
+               private IUserManager $userManager,
+               private ICloudIdManager $cloudIdManager,
+               private \OCP\GlobalScale\IConfig $gsConfig,
+               private ICloudFederationProviderManager $cloudFederationProviderManager,
+               private LoggerInterface $logger,
        ) {
        }
 
index 9e491f0c533a3aa80f2edf070cbdcc06f8584724..511b69d4245848a444bf3bb93286b71660ed4437 100644 (file)
@@ -28,8 +28,8 @@ declare(strict_types=1);
 namespace OCA\FederatedFileSharing\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
@@ -55,7 +55,7 @@ class Version1010Date20200630191755 extends SimpleMigrationStep {
                                'default' => '',
                        ]);
                        $table->setPrimaryKey(['share_id'], 'federated_res_pk');
-//                     $table->addUniqueIndex(['share_id'], 'share_id_index');
+                       //                      $table->addUniqueIndex(['share_id'], 'share_id_index');
                }
                return $schema;
        }
index c1ff209b9c6e7dfb05c095fa6e02f2e3f091896b..3a431872d22534f5aac9a45801ef8ea8572e6e0f 100644 (file)
@@ -28,8 +28,8 @@ namespace OCA\FederatedFileSharing\Migration;
 
 use Closure;
 use Doctrine\DBAL\Types\Type;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index 18189f4cde7d5966f5fbdc20c14c2e11711bb449..944b2f84ab1629dd8428309690078989f3f195f2 100644 (file)
@@ -33,8 +33,8 @@ use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\Defaults;
-use OCP\IUserSession;
 use OCP\IURLGenerator;
+use OCP\IUserSession;
 use OCP\Settings\ISettings;
 
 class Personal implements ISettings {
index de0a8d259c1a26fcaba21c38b57a75aab6aae3cb..8cfe758a3641604f617554f9eafe1d5182c5d7f5 100644 (file)
@@ -30,11 +30,11 @@ namespace OCA\FederatedFileSharing\Tests;
 use OC\Federation\CloudIdManager;
 use OCA\FederatedFileSharing\AddressHandler;
 use OCP\Contacts\IManager;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\ICacheFactory;
 use OCP\IL10N;
 use OCP\IURLGenerator;
 use OCP\IUserManager;
-use OCP\EventDispatcher\IEventDispatcher;
 
 class AddressHandlerTest extends \Test\TestCase {
        /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
index 7cc788d3a6cefde93c830f0552ab768ad244617d..1508300f6859950771bc4589f93f98fc05549167 100644 (file)
@@ -48,8 +48,8 @@ use OCP\IUserManager;
 use OCP\IUserSession;
 use OCP\Share\IManager;
 use OCP\Share\IShare;
-use Psr\Log\LoggerInterface;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 
 class MountPublicLinkControllerTest extends \Test\TestCase {
        /** @var IContactsManager|MockObject */
@@ -145,13 +145,13 @@ class MountPublicLinkControllerTest extends \Test\TestCase {
         * @param string $expectedReturnData
         */
        public function testCreateFederatedShare($shareWith,
-                                                                                        $outgoingSharesAllowed,
-                                                                                        $validShareWith,
-                                                                                        $token,
-                                                                                        $validToken,
-                                                                                        $createSuccessful,
-                                                                                        $expectedReturnData,
-                                                                                        $permissions
+               $outgoingSharesAllowed,
+               $validShareWith,
+               $token,
+               $validToken,
+               $createSuccessful,
+               $expectedReturnData,
+               $permissions
        ) {
                $this->federatedShareProvider->expects($this->any())
                        ->method('isOutgoingServer2serverShareEnabled')
index 22e80f875d7eadbdd5e3a4943e160f4a9a0c2557..7f9abae1e859413dc4fec3b3cdc943d95f073097 100644 (file)
@@ -29,12 +29,12 @@ namespace OCA\FederatedFileSharing\Tests;
 
 use OCA\FederatedFileSharing\Controller\RequestHandlerController;
 use OCP\AppFramework\Http\DataResponse;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Federation\ICloudFederationFactory;
 use OCP\Federation\ICloudFederationProvider;
 use OCP\Federation\ICloudFederationProviderManager;
 use OCP\Federation\ICloudFederationShare;
 use OCP\Federation\ICloudIdManager;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IDBConnection;
 use OCP\IRequest;
 use OCP\IUserManager;
@@ -153,17 +153,17 @@ class RequestHandlerControllerTest extends \Test\TestCase {
        public function testCreateShare() {
                $this->cloudFederationFactory->expects($this->once())->method('getCloudFederationShare')
                        ->with(
-                                       $this->user2,
-                                       'name',
-                                       '',
-                                       1,
-                                       $this->ownerCloudId,
-                                       $this->owner,
-                                       $this->user1CloudId,
-                                       $this->user1,
-                                       'token',
-                                       'user',
-                                       'file'
+                               $this->user2,
+                               'name',
+                               '',
+                               1,
+                               $this->ownerCloudId,
+                               $this->owner,
+                               $this->user1CloudId,
+                               $this->user1,
+                               'token',
+                               'user',
+                               'file'
                        )->willReturn($this->cloudFederationShare);
 
                /** @var ICloudFederationProvider|\PHPUnit\Framework\MockObject\MockObject $provider */
index 1f81773cd4dc42450579cb246e84e28b59d203c7..b4ad46febc2bfe52b16740eac24c10172d6511c7 100644 (file)
@@ -113,7 +113,7 @@ class GetSharedSecret extends Job {
                $deadline = $currentTime - $this->maxLifespan;
                if ($created < $deadline) {
                        $this->retainJob = false;
-                       $this->trustedServers->setServerStatus($target,TrustedServers::STATUS_FAILURE);
+                       $this->trustedServers->setServerStatus($target, TrustedServers::STATUS_FAILURE);
                        return;
                }
 
@@ -172,8 +172,8 @@ class GetSharedSecret extends Job {
                        $result = json_decode($body, true);
                        if (isset($result['ocs']['data']['sharedSecret'])) {
                                $this->trustedServers->addSharedSecret(
-                                               $target,
-                                               $result['ocs']['data']['sharedSecret']
+                                       $target,
+                                       $result['ocs']['data']['sharedSecret']
                                );
                        } else {
                                $this->logger->error(
index adb0b6136809d5263b97263ebf5ed394beb04d67..614dd108a2a90a3dc5845037f8845423437ea29c 100644 (file)
  */
 namespace OCA\Federation\Command;
 
+use OCA\Federation\SyncFederationAddressBooks as SyncService;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\ProgressBar;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
-use OCA\Federation\SyncFederationAddressBooks as SyncService;
 
 class SyncFederationAddressBooks extends Command {
        private SyncService $syncService;
index 8bcdc769de9b9af52961917428300d92bb3a02b2..85fabb4c7ff75837c771ae041610803ad6d27340 100644 (file)
@@ -35,9 +35,9 @@ class SettingsController extends Controller {
        private TrustedServers $trustedServers;
 
        public function __construct(string $AppName,
-                                                               IRequest $request,
-                                                               IL10N $l10n,
-                                                               TrustedServers $trustedServers
+               IRequest $request,
+               IL10N $l10n,
+               TrustedServers $trustedServers
        ) {
                parent::__construct($AppName, $request);
                $this->l = $l10n;
index b91c9963f80030c837da8ab3a2881abdabe8419c..9e63f65986bec53e5f37187a5fba2cf350d96714 100644 (file)
 namespace OCA\Federation;
 
 use OC\Files\Filesystem;
-use OCP\HintException;
-use OCP\IDBConnection;
 use OCP\DB\Exception as DBException;
 use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\HintException;
+use OCP\IDBConnection;
 use OCP\IL10N;
 
 /**
index c98d7da137aedaf56033aa54a512bbaf2d8b3344..d9f2214f96ef8ffbcb50f2165a65f5432512ae72 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
 namespace OCA\Federation\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index e718e1638de8235f4b7cd8878eee2fbd992b4566..2c598241131424036e77dd5737299f35c11f9e94 100644 (file)
@@ -38,9 +38,9 @@ class SyncFederationAddressBooks {
        private LoggerInterface $logger;
 
        public function __construct(DbHandler $dbHandler,
-                                                               SyncService $syncService,
-                                                               IDiscoveryService $ocsDiscoveryService,
-                                                               LoggerInterface $logger
+               SyncService $syncService,
+               IDiscoveryService $ocsDiscoveryService,
+               LoggerInterface $logger
        ) {
                $this->syncService = $syncService;
                $this->dbHandler = $dbHandler;
index 82063311f10ae5339cf47de28eb985d1bb9a21f1..d084b73c021c39a95feaa36bddd400005982318e 100644 (file)
@@ -25,8 +25,8 @@
  */
 namespace OCA\Federation;
 
-use OCP\BackgroundJob\TimedJob;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
 use Psr\Log\LoggerInterface;
 
 class SyncJob extends TimedJob {
index 272161fd88117c0400558fec1506edf0b28cdefc..c27529bd12cb612739a3a03704a4ba688e8b7141 100644 (file)
@@ -31,13 +31,12 @@ use OCA\Federation\BackgroundJob\RequestSharedSecret;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJobList;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Federation\Events\TrustedServerRemovedEvent;
 use OCP\HintException;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\Security\ISecureRandom;
-use OCP\DB\Exception as DBException;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Federation\Events\TrustedServerRemovedEvent;
 use Psr\Log\LoggerInterface;
 
 class TrustedServers {
index dd1ad5003843ad47e9ad2e0e7f66e959986e8227..43333137e651494e9ca378ebd0138d1853134a93 100644 (file)
@@ -31,8 +31,8 @@ use OCA\Federation\Middleware\AddServerMiddleware;
 use OCP\AppFramework\Http;
 use OCP\HintException;
 use OCP\IL10N;
-use Test\TestCase;
 use Psr\Log\LoggerInterface;
+use Test\TestCase;
 
 class AddServerMiddlewareTest extends TestCase {
 
index a5da446b931684197ef72507a75d0b874f0486dc..782ca52322abeb5bb29fcfff31d61479df2097fd 100644 (file)
  */
 namespace OCA\Federation\Tests;
 
-use Psr\Log\LoggerInterface;
 use OC\OCS\DiscoveryService;
 use OCA\Federation\DbHandler;
 use OCA\Federation\SyncFederationAddressBooks;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 
 class SyncFederationAddressbooksTest extends \Test\TestCase {
 
index 5b4e303b2665368644b32e35ad00b2fb1c123613..c5c056c703199bf05e73dbad601fe12b6c57bcf9 100644 (file)
@@ -31,14 +31,14 @@ use OCA\Federation\DbHandler;
 use OCA\Federation\TrustedServers;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJobList;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Http\Client\IClient;
 use OCP\Http\Client\IClientService;
 use OCP\Http\Client\IResponse;
 use OCP\IConfig;
 use OCP\Security\ISecureRandom;
-use OCP\EventDispatcher\IEventDispatcher;
-use Test\TestCase;
 use Psr\Log\LoggerInterface;
+use Test\TestCase;
 
 class TrustedServersTest extends TestCase {
        /** @var \PHPUnit\Framework\MockObject\MockObject | TrustedServers */
index 2cfd48ede3ba66fd73e6c4c2c7153e537494f940..8b817f92c1e8f4d1d5ab28ee0ff09fcecfb56056 100644 (file)
@@ -77,13 +77,13 @@ class Provider implements IProvider {
        protected $fileIsEncrypted = false;
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               IRootFolder $rootFolder,
-                                                               ICloudIdManager $cloudIdManager,
-                                                               IContactsManager $contactsManager,
-                                                               IEventMerger $eventMerger) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               IRootFolder $rootFolder,
+               ICloudIdManager $cloudIdManager,
+               IContactsManager $contactsManager,
+               IEventMerger $eventMerger) {
                $this->languageFactory = $languageFactory;
                $this->url = $url;
                $this->activityManager = $activityManager;
index 9099dbaceb236d0a41e4b22d371d502e09db0b2c..5934bc1c7ce9853bd22c39a457bd3708e12c7ba7 100644 (file)
@@ -40,7 +40,6 @@ use OCA\Files\Collaboration\Resources\Listener;
 use OCA\Files\Collaboration\Resources\ResourceProvider;
 use OCA\Files\Controller\ApiController;
 use OCA\Files\DirectEditingCapabilities;
-use OCA\Files\Event\LoadAdditionalScriptsEvent;
 use OCA\Files\Event\LoadSidebar;
 use OCA\Files\Listener\LoadSidebarListener;
 use OCA\Files\Listener\RenderReferenceEventListener;
@@ -58,10 +57,9 @@ use OCP\Collaboration\Reference\RenderReferenceEvent;
 use OCP\Collaboration\Resources\IProviderManager;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IConfig;
-use OCP\IL10N;
 use OCP\IPreview;
-use OCP\ISearch;
 use OCP\IRequest;
+use OCP\ISearch;
 use OCP\IServerContainer;
 use OCP\ITagManager;
 use OCP\IUserSession;
index a9b5b1446b293b90cafdf0ea5cfc1edd2cc6eac6..2f700b8773ec8ddba6ff059445300d51778553df 100644 (file)
@@ -36,7 +36,7 @@ class CleanupDirectEditingTokens extends TimedJob {
        private IManager $manager;
 
        public function __construct(ITimeFactory $time,
-                                                               IManager $manager) {
+               IManager $manager) {
                parent::__construct($time);
                $this->interval = self::INTERVAL_MINUTES;
                $this->manager = $manager;
index e0ad72eaaf08602e9789db99fa8b5f936099fe73..7ff28a50155b38d7eec5d2e17ee7132135ca2335 100644 (file)
@@ -23,9 +23,9 @@
  */
 namespace OCA\Files\BackgroundJob;
 
+use OC\Lock\DBLockingProvider;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\TimedJob;
-use OC\Lock\DBLockingProvider;
 
 /**
  * Clean up all file locks that are expired for the DB file locking provider
index d96728fc713db104706398a30d694634462f8996..9839bcde5b7056c79b8e304e866d9eb16b2f8efb 100644 (file)
@@ -26,7 +26,6 @@ declare(strict_types=1);
 
 namespace OCA\Files\BackgroundJob;
 
-use OCA\Files\Controller\OpenLocalEditorController;
 use OCA\Files\Db\OpenLocalEditorMapper;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJob;
index 9103c307b7668981c1faf011fb202a1e0bba17ac..1f182b5e999ab00576f1de8a80b13907256a830f 100644 (file)
@@ -48,7 +48,7 @@ class TransferOwnership extends QueuedJob {
                private NotificationManager $notificationManager,
                private TransferOwnershipMapper $mapper,
                private IRootFolder $rootFolder,
-               ) {
+       ) {
                parent::__construct($timeFactory);
        }
 
index e37bf0e9610649fbbeac4b15acb706e02f9781a2..a368016523dbc5e903f5990c23278d154fba1ffd 100644 (file)
@@ -25,9 +25,9 @@ declare(strict_types=1);
  */
 namespace OCA\Files\Collaboration\Resources;
 
+use OCP\Collaboration\Resources\IManager;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Server;
-use OCP\Collaboration\Resources\IManager;
 use OCP\Share\Events\ShareCreatedEvent;
 use OCP\Share\Events\ShareDeletedEvent;
 use OCP\Share\Events\ShareDeletedFromSelfEvent;
index 841a2bdd4f731d71568e43b0fd44baee33d91e3e..4c5afc76b2bbc65f9e77ce579daa9bcb077e0126 100644 (file)
@@ -49,8 +49,8 @@ class ResourceProvider implements IProvider {
        protected $nodes = [];
 
        public function __construct(IRootFolder $rootFolder,
-                                                               IPreview $preview,
-                                                               IURLGenerator $urlGenerator) {
+               IPreview $preview,
+               IURLGenerator $urlGenerator) {
                $this->rootFolder = $rootFolder;
                $this->preview = $preview;
                $this->urlGenerator = $urlGenerator;
index 678c82a138ffac2cf82824a43ed4eae4098f0074..e9a9f764d94b96d5105b4b6679cfa9cc284dd198 100644 (file)
@@ -25,7 +25,6 @@ namespace OCA\Files\Command;
 
 use OC\Core\Command\Info\FileUtils;
 use OCP\Files\Folder;
-use OCP\Files\File;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\QuestionHelper;
 use Symfony\Component\Console\Input\InputArgument;
index 6b21f94e8cf7b0d47009cd55c7b9070178cb0e47..e46ce29f08d301c89b9080d072bd1a97b4ac15c2 100644 (file)
@@ -23,7 +23,6 @@ declare(strict_types=1);
 
 namespace OCA\Files\Command;
 
-
 use OC\Core\Command\Info\FileUtils;
 use OCP\Files\File;
 use Symfony\Component\Console\Command\Command;
index ac84dfa19b3f7a7b46e189bae3419f14dca49934..af97563c816e3c08f898be2f88cefd4ff765176b 100644 (file)
@@ -24,8 +24,8 @@ declare(strict_types=1);
 namespace OCA\Files\Command;
 
 use OC\Core\Command\Info\FileUtils;
-use OCP\Files\Folder;
 use OCP\Files\File;
+use OCP\Files\Folder;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\QuestionHelper;
 use Symfony\Component\Console\Input\InputArgument;
index 5000eeb6ee580b0429d407b5bffaa365968ab432..527292725ab8a3cc280e92a317b4850d4b9a9f5b 100644 (file)
@@ -23,8 +23,6 @@ declare(strict_types=1);
 
 namespace OCA\Files\Command\Object;
 
-use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IDBConnection;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\QuestionHelper;
 use Symfony\Component\Console\Input\InputArgument;
index cad1f3d98acd6fb4acc5753fce0fb47d851bdea7..dfd443416381972499ec6d23cae3b65a69129da7 100644 (file)
@@ -23,7 +23,6 @@ declare(strict_types=1);
 
 namespace OCA\Files\Command\Object;
 
-use OCP\Files\File;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputInterface;
index 852d7c2225e0d3f31d42a18ec3c320a6225af6d1..b4a7389fb820a9797988db543d01e58f2347fe24 100644 (file)
@@ -46,7 +46,8 @@ class Put extends Command {
                        ->setDescription('Write a file to the object store')
                        ->addArgument('input', InputArgument::REQUIRED, "Source local path, use - to read from STDIN")
                        ->addArgument('object', InputArgument::REQUIRED, "Object to write")
-                       ->addOption('bucket', 'b', InputOption::VALUE_REQUIRED, "Bucket where to store the object, only required in cases where it can't be determined from the config");;
+                       ->addOption('bucket', 'b', InputOption::VALUE_REQUIRED, "Bucket where to store the object, only required in cases where it can't be determined from the config");
+               ;
        }
 
        public function execute(InputInterface $input, OutputInterface $output): int {
index 73261e47fb68f3a2e30b2aa24d035b2415c1044a..5539c25665af6c8ea017191f0b5bdde6838371de 100644 (file)
@@ -23,7 +23,6 @@ declare(strict_types=1);
 
 namespace OCA\Files\Command;
 
-
 use OC\Core\Command\Info\FileUtils;
 use OCP\Files\File;
 use OCP\Files\Folder;
index a78b6cbe8b1a0463c92c4b2c13d8085a33c925ef..31c410241cffac3ebad62f6e697b85367012af8a 100644 (file)
@@ -163,13 +163,13 @@ class Scan extends Base {
                        ++$this->errorsCounter;
                });
 
-               $this->eventDispatcher->addListener(NodeAddedToCache::class, function() {
+               $this->eventDispatcher->addListener(NodeAddedToCache::class, function () {
                        ++$this->newCounter;
                });
-               $this->eventDispatcher->addListener(FileCacheUpdated::class, function() {
+               $this->eventDispatcher->addListener(FileCacheUpdated::class, function () {
                        ++$this->updatedCounter;
                });
-               $this->eventDispatcher->addListener(NodeRemovedFromCache::class, function() {
+               $this->eventDispatcher->addListener(NodeRemovedFromCache::class, function () {
                        ++$this->removedCounter;
                });
 
index 2007c23f256543d5e4035d17d2bd8fbeb5722b9e..64f7fbbb95e73cfa32fa3852854850c1dd388d6c 100644 (file)
@@ -36,9 +36,9 @@ namespace OCA\Files\Command;
 
 use OCA\Files\Exception\TransferOwnershipException;
 use OCA\Files\Service\OwnershipTransferService;
+use OCP\IConfig;
 use OCP\IUser;
 use OCP\IUserManager;
-use OCP\IConfig;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputInterface;
@@ -85,7 +85,7 @@ class TransferOwnership extends Command {
                                InputOption::VALUE_OPTIONAL,
                                'transfer incoming user file shares to destination user. Usage: --transfer-incoming-shares=1 (value required)',
                                '2'
-               );
+                       );
        }
 
        protected function execute(InputInterface $input, OutputInterface $output): int {
index 6e64d68588f6fe362c8441e90c5d5c679744175c..a82fe7078af944e860455af74bff9536a599eb8d 100644 (file)
@@ -74,15 +74,15 @@ class ApiController extends Controller {
        private ViewConfig $viewConfig;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IUserSession $userSession,
-                                                               TagService $tagService,
-                                                               IPreview $previewManager,
-                                                               IManager $shareManager,
-                                                               IConfig $config,
-                                                               ?Folder $userFolder,
-                                                               UserConfig $userConfig,
-                                                               ViewConfig $viewConfig) {
+               IRequest $request,
+               IUserSession $userSession,
+               TagService $tagService,
+               IPreview $previewManager,
+               IManager $shareManager,
+               IConfig $config,
+               ?Folder $userFolder,
+               UserConfig $userConfig,
+               ViewConfig $viewConfig) {
                parent::__construct($appName, $request);
                $this->userSession = $userSession;
                $this->tagService = $tagService;
index a4b83af3c29b549676a58c6f2173d7018804edc1..5d2162c69e05576e5d6e24ef8785a61bcc982f6e 100644 (file)
@@ -46,7 +46,7 @@ class DirectEditingController extends OCSController {
                private IManager $directEditingManager,
                private DirectEditingService $directEditingService,
                private LoggerInterface $logger
-               ) {
+       ) {
                parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge);
        }
 
index 1b5873e8fe625cf8cd42bdd75364f6430457f574..697541fec3b2f75116ec4a46fdd8afb6dc07df4f 100644 (file)
@@ -103,7 +103,7 @@ class TemplateController extends OCSController {
                        $templatePath = $this->templateManager->initializeTemplateDirectory($templatePath, null, $copySystemTemplates);
                        return new DataResponse([
                                'template_path' => $templatePath,
-                               'templates' => array_map(fn(TemplateFileCreator $creator) => $creator->jsonSerialize(), $this->templateManager->listCreators()),
+                               'templates' => array_map(fn (TemplateFileCreator $creator) => $creator->jsonSerialize(), $this->templateManager->listCreators()),
                        ]);
                } catch (\Exception $e) {
                        throw new OCSForbiddenException($e->getMessage());
index ce68b28349e7e27f89da5a6a5fc4d87b8aa0a5ed..2c46b85f9a076626db51bd7e3ecc95e818b7b501 100644 (file)
@@ -30,13 +30,13 @@ namespace OCA\Files\Controller;
 use OCA\Files\BackgroundJob\TransferOwnership;
 use OCA\Files\Db\TransferOwnership as TransferOwnershipEntity;
 use OCA\Files\Db\TransferOwnershipMapper;
-use OCP\Files\IHomeStorage;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCSController;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJobList;
+use OCP\Files\IHomeStorage;
 use OCP\Files\IRootFolder;
 use OCP\IRequest;
 use OCP\IUserManager;
@@ -60,14 +60,14 @@ class TransferOwnershipController extends OCSController {
        private $rootFolder;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               string $userId,
-                                                               NotificationManager $notificationManager,
-                                                               ITimeFactory $timeFactory,
-                                                               IJobList $jobList,
-                                                               TransferOwnershipMapper $mapper,
-                                                               IUserManager $userManager,
-                                                               IRootFolder $rootFolder) {
+               IRequest $request,
+               string $userId,
+               NotificationManager $notificationManager,
+               ITimeFactory $timeFactory,
+               IJobList $jobList,
+               TransferOwnershipMapper $mapper,
+               IUserManager $userManager,
+               IRootFolder $rootFolder) {
                parent::__construct($appName, $request);
 
                $this->userId = $userId;
index 38e3858cd384696e898bf5dd40661d2ce371dcf0..ca9ac80b9e28b9b2950c8a397620d9fb9eaed873 100644 (file)
@@ -35,7 +35,6 @@
  */
 namespace OCA\Files\Controller;
 
-use OC\AppFramework\Http;
 use OCA\Files\Activity\Helper;
 use OCA\Files\AppInfo\Application;
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
@@ -214,7 +213,8 @@ class ViewController extends Controller {
                if ($fileid !== null && $view !== 'trashbin') {
                        try {
                                return $this->redirectToFileIfInTrashbin((int) $fileid);
-                       } catch (NotFoundException $e) {}
+                       } catch (NotFoundException $e) {
+                       }
                }
 
                // Load the files we need
@@ -248,7 +248,7 @@ class ViewController extends Controller {
 
                try {
                        // If view is files, we use the directory, otherwise we use the root storage
-                       $storageInfo =  $this->getStorageInfo(($view === 'files' && $dir) ? $dir : '/');
+                       $storageInfo = $this->getStorageInfo(($view === 'files' && $dir) ? $dir : '/');
                } catch(\Exception $e) {
                        $storageInfo = $this->getStorageInfo();
                }
@@ -399,7 +399,8 @@ class ViewController extends Controller {
 
                try {
                        $this->redirectToFileIfInTrashbin($fileId);
-               } catch (NotFoundException $e) {}
+               } catch (NotFoundException $e) {
+               }
 
                if (!empty($nodes)) {
                        $node = current($nodes);
index 1e2080622f460b2b9f99f524c89eacdcdc16577c..2e9e476480744afc998a67f67a2ca3ffdc4e2e66 100644 (file)
@@ -34,4 +34,5 @@ use OCP\EventDispatcher\Event;
  *
  * @since 17.0.0
  */
-class LoadAdditionalScriptsEvent extends Event {}
\ No newline at end of file
+class LoadAdditionalScriptsEvent extends Event {
+}
index 0c1093f50a6a9524b2b21542e5434c359ff254cf..587616ff2d56834e13df9082eceff3b8f303f580 100644 (file)
@@ -38,7 +38,7 @@ class Version12101Date20221011153334 extends SimpleMigrationStep {
                $schema = $schemaClosure();
 
                $table = $schema->createTable('open_local_editor');
-               $table->addColumn('id',Types::BIGINT, [
+               $table->addColumn('id', Types::BIGINT, [
                        'autoincrement' => true,
                        'notnull' => true,
                        'length' => 20,
index 90784749b27cae1d35f840489f72abebd4fd1b55..0968ae15f54c4304e89a692ad5ae3d2b5d8780c4 100644 (file)
@@ -56,11 +56,11 @@ class Notifier implements INotifier, IDismissableNotifier {
        private $timeFactory;
 
        public function __construct(IFactory $l10nFactory,
-                                                               IURLGenerator $urlGenerator,
-                                                               TransferOwnershipMapper $mapper,
-                                                               IManager $notificationManager,
-                                                               IUserManager $userManager,
-                                                               ITimeFactory $timeFactory) {
+               IURLGenerator $urlGenerator,
+               TransferOwnershipMapper $mapper,
+               IManager $notificationManager,
+               IUserManager $userManager,
+               ITimeFactory $timeFactory) {
                $this->l10nFactory = $l10nFactory;
                $this->urlGenerator = $urlGenerator;
                $this->mapper = $mapper;
index 8a27ec4bb2fc6cb2f5fa4d52cd652a98f4c2afcf..9d1e5db61e5528d8ff94642ed13e4dce4950b8a7 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index d2a30d10674bfafb72fec1e01981a621be410588..b587fdf32de2ac8ff9c21b039b529986ca471ebb 100644 (file)
@@ -30,30 +30,30 @@ declare(strict_types=1);
 namespace OCA\Files\Search;
 
 use InvalidArgumentException;
-use OCP\Files\Search\ISearchOperator;
-use OCP\IPreview;
-use OCP\Search\FilterDefinition;
-use OCP\Search\IFilter;
-use OCP\Search\IFilteringProvider;
-use OCP\Share\IShare;
 use OC\Files\Search\SearchBinaryOperator;
 use OC\Files\Search\SearchComparison;
 use OC\Files\Search\SearchOrder;
 use OC\Files\Search\SearchQuery;
+use OC\Search\Filter\GroupFilter;
+use OC\Search\Filter\UserFilter;
 use OCP\Files\FileInfo;
 use OCP\Files\IMimeTypeDetector;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
 use OCP\Files\Search\ISearchComparison;
+use OCP\Files\Search\ISearchOperator;
 use OCP\Files\Search\ISearchOrder;
 use OCP\IL10N;
+use OCP\IPreview;
 use OCP\IURLGenerator;
 use OCP\IUser;
+use OCP\Search\FilterDefinition;
+use OCP\Search\IFilter;
+use OCP\Search\IFilteringProvider;
 use OCP\Search\ISearchQuery;
 use OCP\Search\SearchResult;
 use OCP\Search\SearchResultEntry;
-use OC\Search\Filter\GroupFilter;
-use OC\Search\Filter\UserFilter;
+use OCP\Share\IShare;
 
 class FilesSearchProvider implements IFilteringProvider {
        /** @var IL10N */
index 06c12391df73cbb7245919750e5ef4ca0bae2a88..3499d809f2c701e7c6cac96fe7f0246b12889d25 100644 (file)
@@ -74,10 +74,10 @@ class OwnershipTransferService {
        private $userManager;
 
        public function __construct(IEncryptionManager $manager,
-                                                               IShareManager $shareManager,
-                                                               IMountManager $mountManager,
-                                                               IUserMountCache $userMountCache,
-                                                               IUserManager $userManager) {
+               IShareManager $shareManager,
+               IMountManager $mountManager,
+               IUserMountCache $userMountCache,
+               IUserManager $userManager) {
                $this->encryptionManager = $manager;
                $this->shareManager = $shareManager;
                $this->mountManager = $mountManager;
@@ -96,12 +96,12 @@ class OwnershipTransferService {
         * @throws \OC\User\NoUserException
         */
        public function transfer(IUser $sourceUser,
-                                                        IUser $destinationUser,
-                                                        string $path,
-                                                        ?OutputInterface $output = null,
-                                                        bool $move = false,
-                                                        bool $firstLogin = false,
-                                                        bool $transferIncomingShares = false): void {
+               IUser $destinationUser,
+               string $path,
+               ?OutputInterface $output = null,
+               bool $move = false,
+               bool $firstLogin = false,
+               bool $transferIncomingShares = false): void {
                $output = $output ?? new NullOutput();
                $sourceUid = $sourceUser->getUID();
                $destinationUid = $destinationUser->getUID();
@@ -234,10 +234,10 @@ class OwnershipTransferService {
         * @throws \Exception
         */
        protected function analyse(string $sourceUid,
-                                                          string $destinationUid,
-                                                          string $sourcePath,
-                                                          View $view,
-                                                          OutputInterface $output): void {
+               string $destinationUid,
+               string $sourcePath,
+               View $view,
+               OutputInterface $output): void {
                $output->writeln('Validating quota');
                $size = $view->getFileInfo($sourcePath, false)->getSize(false);
                $freeSpace = $view->free_space($destinationUid . '/files/');
@@ -281,9 +281,9 @@ class OwnershipTransferService {
        }
 
        private function collectUsersShares(string $sourceUid,
-                                                                               OutputInterface $output,
-                                                                               View $view,
-                                                                               string $path): array {
+               OutputInterface $output,
+               View $view,
+               string $path): array {
                $output->writeln("Collecting all share information for files and folders of $sourceUid ...");
 
                $shares = [];
@@ -325,9 +325,9 @@ class OwnershipTransferService {
        }
 
        private function collectIncomingShares(string $sourceUid,
-                                                                               OutputInterface $output,
-                                                                               View $view,
-                                                                               bool $addKeys = false): array {
+               OutputInterface $output,
+               View $view,
+               bool $addKeys = false): array {
                $output->writeln("Collecting all incoming share information for files and folders of $sourceUid ...");
 
                $shares = [];
@@ -363,10 +363,10 @@ class OwnershipTransferService {
         * @throws TransferOwnershipException
         */
        protected function transferFiles(string $sourceUid,
-                                                                        string $sourcePath,
-                                                                        string $finalTarget,
-                                                                        View $view,
-                                                                        OutputInterface $output): void {
+               string $sourcePath,
+               string $finalTarget,
+               View $view,
+               OutputInterface $output): void {
                $output->writeln("Transferring files to $finalTarget ...");
 
                // This change will help user to transfer the folder specified using --path option.
@@ -385,9 +385,9 @@ class OwnershipTransferService {
        }
 
        private function restoreShares(string $sourceUid,
-                                                                  string $destinationUid,
-                                                                  array $shares,
-                                                                  OutputInterface $output) {
+               string $destinationUid,
+               array $shares,
+               OutputInterface $output) {
                $output->writeln("Restoring shares ...");
                $progress = new ProgressBar($output, count($shares));
 
@@ -436,13 +436,13 @@ class OwnershipTransferService {
        }
 
        private function transferIncomingShares(string $sourceUid,
-                                                                  string $destinationUid,
-                                                                  array $sourceShares,
-                                                                  array $destinationShares,
-                                                                  OutputInterface $output,
-                                                                  string $path,
-                                                                  string $finalTarget,
-                                                                  bool $move): void {
+               string $destinationUid,
+               array $sourceShares,
+               array $destinationShares,
+               OutputInterface $output,
+               string $path,
+               string $finalTarget,
+               bool $move): void {
                $output->writeln("Restoring incoming shares ...");
                $progress = new ProgressBar($output, count($sourceShares));
                $prefix = "$destinationUid/files";
index be32dce0d6315053f0e0f6a77fd83e43f42a4196..00569dc6aeb84563669982fac67e4d204da219a3 100644 (file)
@@ -28,7 +28,7 @@ use OCP\IUser;
 use OCP\IUserSession;
 
 class UserConfig {
-       const ALLOWED_CONFIGS = [
+       public const ALLOWED_CONFIGS = [
                [
                        // Whether to crop the files previews or not in the files list
                        'key' => 'crop_image_previews',
@@ -68,7 +68,7 @@ class UserConfig {
         * @return string[]
         */
        public function getAllowedConfigKeys(): array {
-               return array_map(function($config) {
+               return array_map(function ($config) {
                        return $config['key'];
                }, self::ALLOWED_CONFIGS);
        }
@@ -142,7 +142,7 @@ class UserConfig {
                }
 
                $userId = $this->user->getUID();
-               $userConfigs = array_map(function(string $key) use ($userId) {
+               $userConfigs = array_map(function (string $key) use ($userId) {
                        $value = $this->config->getUserValue($userId, Application::APP_ID, $key, $this->getDefaultConfigValue($key));
                        // If the default is expected to be a boolean, we need to cast the value
                        if (is_bool($this->getDefaultConfigValue($key)) && is_string($value)) {
index 51d90ffdb4ed6ffd7b4f42d1145b2967efa416a3..fefc3f6a7def8eead68b902b6e61bb9e44207c7c 100644 (file)
@@ -28,8 +28,8 @@ use OCP\IUser;
 use OCP\IUserSession;
 
 class ViewConfig {
-       const CONFIG_KEY = 'files_views_configs';
-       const ALLOWED_CONFIGS = [
+       public const CONFIG_KEY = 'files_views_configs';
+       public const ALLOWED_CONFIGS = [
                [
                        // The default sorting key for the files list view
                        'key' => 'sorting_mode',
@@ -64,7 +64,7 @@ class ViewConfig {
         * @return string[]
         */
        public function getAllowedConfigKeys(): array {
-               return array_map(function($config) {
+               return array_map(function ($config) {
                        return $config['key'];
                }, self::ALLOWED_CONFIGS);
        }
@@ -155,7 +155,7 @@ class ViewConfig {
                }
 
                // Extend undefined values with defaults
-               return array_reduce(self::ALLOWED_CONFIGS, function($carry, $config) use ($view, $configs) {
+               return array_reduce(self::ALLOWED_CONFIGS, function ($carry, $config) use ($view, $configs) {
                        $key = $config['key'];
                        $carry[$key] = $configs[$view][$key] ?? $this->getDefaultConfigValue($key);
                        return $carry;
@@ -176,7 +176,7 @@ class ViewConfig {
                $configs = json_decode($this->config->getUserValue($userId, Application::APP_ID, self::CONFIG_KEY, '[]'), true);
                $views = array_keys($configs);
                
-               return array_reduce($views, function($carry, $view) use ($configs) {
+               return array_reduce($views, function ($carry, $view) use ($configs) {
                        $carry[$view] = $this->getConfig($view);
                        return $carry;
                }, []);
index c4b93b2e145dc83bfc932aeae1b5101b84dc56a1..5f1bc07f499a8bc52cc6e183445744581f02169e 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>
  *
  */
-use OCP\Share\IManager;
-use OCP\Server;
 use OCP\IConfig;
 use OCP\IUserSession;
+use OCP\Server;
+use OCP\Share\IManager;
 
 $config = Server::get(IConfig::class);
 $userSession = Server::get(IUserSession::class);
index 17409bdb189b5c67a246bb699a7508f55c7b2eb5..d2b57b03ecaa4743f4a338ab9a061ff53dd7084e 100644 (file)
@@ -3,9 +3,9 @@
        <ul class="with-icon" tabindex="0">
                <?php
                        $pinned = 0;
-                       foreach ($_['navigationItems'] as $item) {
-                               $pinned = NavigationListElements($item, $l, $pinned);
-                       }
+               foreach ($_['navigationItems'] as $item) {
+                       $pinned = NavigationListElements($item, $l, $pinned);
+               }
                ?>
        </ul>
 </div>
@@ -31,8 +31,8 @@ function NavigationListElements($item, $l, $pinned) {
                <?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?>
                class="nav-<?php p($item['id']) ?>
                <?php if (isset($item['classes'])) {
-               p($item['classes']);
-       } ?>
+                       p($item['classes']);
+               } ?>
                <?php p($pinned === 1 ? 'first-pinned' : '') ?>
                <?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>"
                <?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>>
@@ -42,7 +42,7 @@ function NavigationListElements($item, $l, $pinned) {
 
 
                <?php
-               NavigationElementMenu($item);
+                       NavigationElementMenu($item);
        if (isset($item['sublist'])) {
                ?>
                        <button class="collapse app-navigation-noclose" aria-expanded="<?= !empty($item['defaultExpandedState']) ? 'true' : 'false' ?>"
index 3566d83f415d92f608e0e4364084cf9adcdcdc97..3598c982ddd473c0a56af9a2aa2d80276728e856 100644 (file)
@@ -32,7 +32,6 @@ use OCP\Federation\ICloudId;
 use OCP\Federation\ICloudIdManager;
 use OCP\Files\IRootFolder;
 use OCP\IURLGenerator;
-use OCP\IUser;
 use OCP\IUserManager;
 use OCP\L10N\IFactory;
 use PHPUnit\Framework\MockObject\MockObject;
index 138d4d7de2ddccaea3fc36cd7ea1358b2052830b..1b5e7779df4224fd332609b0e15fedab527a5ce1 100644 (file)
@@ -31,9 +31,9 @@ use OCA\Files_External\Service\UserGlobalStoragesService;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\TimedJob;
-use OCP\Security\ICredentialsManager;
 use OCP\IUser;
 use OCP\IUserManager;
+use OCP\Security\ICredentialsManager;
 
 class CredentialsCleanup extends TimedJob {
        private $credentialsManager;
index ea0d98fe4670cb59970ac3d76f97f31d4a35d3aa..50f7fb1cb432b99b8145604e588f5ce0ef613c2b 100644 (file)
@@ -33,8 +33,8 @@ use OCA\Files_External\Lib\DefinitionParameter;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\Service\BackendService;
 use OCA\Files_External\Service\GlobalStoragesService;
-use OCA\Files_External\Service\UserStoragesService;
 use OCA\Files_External\Service\StoragesService;
+use OCA\Files_External\Service\UserStoragesService;
 use OCP\IUserManager;
 use OCP\IUserSession;
 use Symfony\Component\Console\Input\ArrayInput;
index 625d0c1d515b1f87f4f46298d5c67d2a0ddb1b84..590206d2099e3d5f5664608460f2bebe5a062870 100644 (file)
@@ -25,8 +25,6 @@
 namespace OCA\Files_External\Command;
 
 use OC\Core\Command\Base;
-use OCA\Files_External\Lib\Auth\AuthMechanism;
-use OCA\Files_External\Lib\Backend\Backend;
 use OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\NotFoundException;
index 1b83688418c7435311e35b67a68fd7fe39a61bd2..c06df7765b63f821c1ab2196d821f70687ca7793 100644 (file)
@@ -51,7 +51,8 @@ class ConfigAdapter implements IMountProvider {
                private UserStoragesService $userStoragesService,
                private UserGlobalStoragesService $userGlobalStoragesService,
                private ClockInterface $clock,
-       ) {}
+       ) {
+       }
 
        /**
         * Process storage ready for mounting
index 07475f961f98d150ddf8118aa187dbd73b4d07fa..0cda9914f0e58acfa0efab413c64e404325433c6 100644 (file)
@@ -24,8 +24,8 @@
 namespace OCA\Files_External\Config;
 
 use OC\Files\Mount\MountPoint;
-use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\Lib\Auth\Password\SessionCredentials;
+use OCA\Files_External\Lib\StorageConfig;
 
 class ExternalMountPoint extends MountPoint {
 
index 7de07699164c9b55d88ea5fe7ed94ad066e87b9a..32a39c0e063877a2e7cb11be5a761a8206ad1a0f 100644 (file)
@@ -23,7 +23,6 @@ declare(strict_types=1);
 
 namespace OCA\Files_External\Config;
 
-
 use OCP\Files\Mount\ISystemMountPoint;
 
 class SystemMountPoint extends ExternalMountPoint implements ISystemMountPoint {
index e41a75a62bc091d46841a9cdd04f7982fa434648..a03243020e49110e40cf40337c7f7cac629810a0 100644 (file)
@@ -55,11 +55,11 @@ class AjaxController extends Controller {
         * @param IGroupManager $groupManager
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               RSA $rsaMechanism,
-                                                               GlobalAuth $globalAuth,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager) {
+               IRequest $request,
+               RSA $rsaMechanism,
+               GlobalAuth $globalAuth,
+               IUserSession $userSession,
+               IGroupManager $groupManager) {
                parent::__construct($appName, $request);
                $this->rsaMechanism = $rsaMechanism;
                $this->globalAuth = $globalAuth;
index ead6aa9663a958b5b0eef447497e44f40ad578a2..229e2d1930e7526b26bf1db118a3edb8b6cecf95 100644 (file)
@@ -30,7 +30,6 @@ namespace OCA\Files_External\Controller;
 
 use OCA\Files_External\Lib\Auth\AuthMechanism;
 use OCA\Files_External\Lib\Backend\Backend;
-use OCA\Files_External\Lib\DefinitionParameter;
 use OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\NotFoundException;
index e43f6d06b479659c9ede7efba5f7f71aff3b51cc..5ef5f78acd9e9f987645d3298e82bf5369f81515 100644 (file)
@@ -26,11 +26,11 @@ namespace OCA\Files_External\Lib\Auth;
 
 use OCA\Files_External\Lib\FrontendDefinitionTrait;
 use OCA\Files_External\Lib\IdentifierTrait;
+use OCA\Files_External\Lib\IFrontendDefinition;
+use OCA\Files_External\Lib\IIdentifier;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\Lib\StorageModifierTrait;
 use OCA\Files_External\Lib\VisibilityTrait;
-use OCA\Files_External\Lib\IIdentifier;
-use OCA\Files_External\Lib\IFrontendDefinition;
 
 /**
  * Authentication mechanism
index d0058e98b52826e46f89575470f31553c71e5c9e..48f46b8f55a1275e64e5d97de3144bf068bfbc89 100644 (file)
@@ -26,12 +26,12 @@ use OCA\Files_External\Lib\Auth\AuthMechanism;
 use OCA\Files_External\Lib\DependencyTrait;
 use OCA\Files_External\Lib\FrontendDefinitionTrait;
 use OCA\Files_External\Lib\IdentifierTrait;
+use OCA\Files_External\Lib\IFrontendDefinition;
+use OCA\Files_External\Lib\IIdentifier;
 use OCA\Files_External\Lib\PriorityTrait;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\Lib\StorageModifierTrait;
 use OCA\Files_External\Lib\VisibilityTrait;
-use OCA\Files_External\Lib\IIdentifier;
-use OCA\Files_External\Lib\IFrontendDefinition;
 use OCP\Files\Storage\IStorage;
 
 /**
index d00c5b0e944cdf17ff43ea866e21742531763cda..86c21f034346cd6ae0d5fb294cf096541590cc0c 100644 (file)
@@ -61,18 +61,18 @@ class LegacyBackend extends Backend {
                                $placeholder = substr($placeholder, 1);
                        }
                        switch ($placeholder[0]) {
-                       case '!':
-                               $type = DefinitionParameter::VALUE_BOOLEAN;
-                               $placeholder = substr($placeholder, 1);
-                               break;
-                       case '*':
-                               $type = DefinitionParameter::VALUE_PASSWORD;
-                               $placeholder = substr($placeholder, 1);
-                               break;
-                       case '#':
-                               $type = DefinitionParameter::VALUE_HIDDEN;
-                               $placeholder = substr($placeholder, 1);
-                               break;
+                               case '!':
+                                       $type = DefinitionParameter::VALUE_BOOLEAN;
+                                       $placeholder = substr($placeholder, 1);
+                                       break;
+                               case '*':
+                                       $type = DefinitionParameter::VALUE_PASSWORD;
+                                       $placeholder = substr($placeholder, 1);
+                                       break;
+                               case '#':
+                                       $type = DefinitionParameter::VALUE_HIDDEN;
+                                       $placeholder = substr($placeholder, 1);
+                                       break;
                        }
                        $this->addParameter((new DefinitionParameter($name, $placeholder))
                                ->setType($type)
index 8e2a6b8ea12e3d04ea7f31cecdb7873a18528e3f..e5fa98313d523c9857a5b459d0a75e8e9abcddae 100644 (file)
  */
 namespace OCA\Files_External\Lib\Storage;
 
-use Aws\Result;
 use Aws\S3\Exception\S3Exception;
-use Aws\S3\S3Client;
 use Icewind\Streams\CallbackWrapper;
 use Icewind\Streams\IteratorDirectory;
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Cache\CacheEntry;
 use OC\Files\ObjectStore\S3ConnectionTrait;
 use OC\Files\ObjectStore\S3ObjectTrait;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Constants;
 use OCP\Files\FileInfo;
 use OCP\Files\IMimeTypeDetector;
+use OCP\ICache;
 use OCP\ICacheFactory;
-use OCP\IMemcache;
 use OCP\Server;
-use OCP\ICache;
 use Psr\Log\LoggerInterface;
 
 class AmazonS3 extends \OC\Files\Storage\Common {
index 5c4dcca65cea411dcad1905fa39e5b4b38ffc023..3fa04209fa0053623bf251298624ef4e2d0ca430 100644 (file)
@@ -39,7 +39,6 @@ namespace OCA\Files_External\Lib\Storage;
 use Icewind\Streams\CountWrapper;
 use Icewind\Streams\IteratorDirectory;
 use Icewind\Streams\RetryWrapper;
-use OC\Files\Filesystem;
 use OC\Files\Storage\Common;
 use OCP\Constants;
 use OCP\Files\FileInfo;
@@ -64,7 +63,7 @@ class SFTP extends Common {
        protected $client;
        private IMimeTypeDetector $mimeTypeDetector;
 
-       const COPY_CHUNK_SIZE = 8 * 1024 * 1024;
+       public const COPY_CHUNK_SIZE = 8 * 1024 * 1024;
 
        /**
         * @param string $host protocol://server:port
index 26e6c5315cbf41e96e5af456b726b1bbb4ba4760..19c83b29bc8cb6bcb0567831dfaaa4cb1238db67 100644 (file)
@@ -296,7 +296,7 @@ class Swift extends \OC\Files\Storage\Common {
                        $path .= '/';
                }
 
-//             $path = str_replace('%23', '#', $path); // the prefix is sent as a query param, so revert the encoding of #
+               //              $path = str_replace('%23', '#', $path); // the prefix is sent as a query param, so revert the encoding of #
 
                try {
                        $files = [];
index 5f56a14c4ce9b3e0a8112976fa9b704696ee380e..6de23eb828473217b5c893816ab6667aa2e27443 100644 (file)
@@ -25,8 +25,8 @@ declare(strict_types=1);
  */
 namespace OCA\Files_External\Listener;
 
-use OCA\Files_External\AppInfo\Application;
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files_External\AppInfo\Application;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
@@ -41,7 +41,8 @@ class LoadAdditionalListener implements IEventListener {
        public function __construct(
                private IConfig $config,
                private IInitialState $initialState,
-       ) {}
+       ) {
+       }
 
        public function handle(Event $event): void {
                if (!($event instanceof LoadAdditionalScriptsEvent)) {
index 413c84b4babc10b166d5bdcadbf986f144cdec0b..cf0f870e7ecf517e78976e79a6bc137ea71effbb 100644 (file)
@@ -28,8 +28,8 @@ declare(strict_types=1);
 namespace OCA\Files_External\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 2c86ed18e552c31e701006bc795bc34e97487384..67c325196f6d6c245cf6f8f3d2696f61925cc348 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index d715e5946f1d00610b700a27b8a6f697cb3fbcfc..e0837ef7b422c098185359d135cc07322c6ea33c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
-use \OCA\Files_External\Lib\Backend\Backend;
 use \OCA\Files_External\Lib\Auth\AuthMechanism;
+use \OCA\Files_External\Lib\Backend\Backend;
 use \OCA\Files_External\Lib\DefinitionParameter;
 use \OCA\Files_External\Service\BackendService;
 
@@ -8,49 +8,49 @@ use \OCA\Files_External\Service\BackendService;
 
 $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN || $_['allowUserMounting'];
 
-       $l->t("Enable encryption");
-       $l->t("Enable previews");
-       $l->t("Enable sharing");
-       $l->t("Check for changes");
-       $l->t("Never");
-       $l->t("Once every direct access");
-       $l->t('Read only');
+$l->t("Enable encryption");
+$l->t("Enable previews");
+$l->t("Enable sharing");
+$l->t("Check for changes");
+$l->t("Never");
+$l->t("Once every direct access");
+$l->t('Read only');
 
-       script('files_external', [
-               'settings',
-               'templates'
-       ]);
-       style('files_external', 'settings');
+script('files_external', [
+       'settings',
+       'templates'
+]);
+style('files_external', 'settings');
 
-       // load custom JS
-       foreach ($_['backends'] as $backend) {
-               /** @var Backend $backend */
-               $scripts = $backend->getCustomJs();
-               foreach ($scripts as $script) {
-                       script('files_external', $script);
-               }
+// load custom JS
+foreach ($_['backends'] as $backend) {
+       /** @var Backend $backend */
+       $scripts = $backend->getCustomJs();
+       foreach ($scripts as $script) {
+               script('files_external', $script);
        }
-       foreach ($_['authMechanisms'] as $authMechanism) {
-               /** @var AuthMechanism $authMechanism */
-               $scripts = $authMechanism->getCustomJs();
-               foreach ($scripts as $script) {
-                       script('files_external', $script);
-               }
+}
+foreach ($_['authMechanisms'] as $authMechanism) {
+       /** @var AuthMechanism $authMechanism */
+       $scripts = $authMechanism->getCustomJs();
+       foreach ($scripts as $script) {
+               script('files_external', $script);
        }
+}
 
-       function writeParameterInput($parameter, $options, $classes = []) {
-               $value = '';
-               if (isset($options[$parameter->getName()])) {
-                       $value = $options[$parameter->getName()];
-               }
-               $placeholder = $parameter->getText();
-               $is_optional = $parameter->isFlagSet(DefinitionParameter::FLAG_OPTIONAL);
+function writeParameterInput($parameter, $options, $classes = []) {
+       $value = '';
+       if (isset($options[$parameter->getName()])) {
+               $value = $options[$parameter->getName()];
+       }
+       $placeholder = $parameter->getText();
+       $is_optional = $parameter->isFlagSet(DefinitionParameter::FLAG_OPTIONAL);
 
-               switch ($parameter->getType()) {
+       switch ($parameter->getType()) {
                case DefinitionParameter::VALUE_PASSWORD: ?>
                        <?php if ($is_optional) {
-                       $classes[] = 'optional';
-               } ?>
+                               $classes[] = 'optional';
+                       } ?>
                        <input type="password"
                                <?php if (!empty($classes)): ?> class="<?php p(implode(' ', $classes)); ?>"<?php endif; ?>
                                data-parameter="<?php p($parameter->getName()); ?>"
@@ -58,7 +58,7 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                                placeholder="<?php p($placeholder); ?>"
                        />
                        <?php
-                       break;
+                               break;
                case DefinitionParameter::VALUE_BOOLEAN: ?>
                        <?php $checkboxId = uniqid("checkbox_"); ?>
                        <div>
@@ -84,8 +84,8 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                        break;
                default: ?>
                        <?php if ($is_optional) {
-                       $classes[] = 'optional';
-               } ?>
+                               $classes[] = 'optional';
+                       } ?>
                        <input type="text"
                                <?php if (!empty($classes)): ?> class="<?php p(implode(' ', $classes)); ?>"<?php endif; ?>
                                data-parameter="<?php p($parameter->getName()); ?>"
@@ -93,8 +93,8 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                                placeholder="<?php p($placeholder); ?>"
                        />
                        <?php
-               }
        }
+}
 ?>
 
 <div class="emptyfilelist emptycontent hidden">
@@ -110,8 +110,8 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
        <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 users 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>
                        <tr>
@@ -121,8 +121,8 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                                <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>
                                <th>&nbsp;</th>
@@ -152,17 +152,17 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                                                        <?php p($l->t('Add storage')); ?>
                                                </option>
                                                <?php
-                                                       $sortedBackends = array_filter($_['backends'], function ($backend) use ($_) {
-                                                               return $backend->isVisibleFor($_['visibilityType']);
-                                                       });
-                                                       uasort($sortedBackends, function ($a, $b) {
-                                                               return strcasecmp($a->getText(), $b->getText());
-                                                       });
-                                               ?>
+                                                                                       $sortedBackends = array_filter($_['backends'], function ($backend) use ($_) {
+                                                                                               return $backend->isVisibleFor($_['visibilityType']);
+                                                                                       });
+uasort($sortedBackends, function ($a, $b) {
+       return strcasecmp($a->getText(), $b->getText());
+});
+?>
                                                <?php foreach ($sortedBackends as $backend): ?>
                                                        <?php if ($backend->getDeprecateTo() || (!$canCreateNewLocalStorage && $backend->getIdentifier() == "local")) {
-                                                       continue;
-                                               } // ignore deprecated backends?>
+                                                               continue;
+                                                       } // ignore deprecated backends?>
                                                        <option value="<?php p($backend->getIdentifier()); ?>"><?php p($backend->getText()); ?></option>
                                                <?php endforeach; ?>
                                        </select>
@@ -191,8 +191,8 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
        <?php if ($_['visibilityType'] === BackendService::VISIBILITY_ADMIN): ?>
                <input type="checkbox" name="allowUserMounting" id="allowUserMounting" class="checkbox"
                        value="1" <?php if ($_['allowUserMounting']) {
-                                                       print_unescaped(' checked="checked"');
-                                               } ?> />
+                               print_unescaped(' checked="checked"');
+                       } ?> />
                <label for="allowUserMounting"><?php p($l->t('Allow users to mount external storage')); ?></label> <span id="userMountingMsg" class="msg"></span>
 
                <p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>>
@@ -200,14 +200,15 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN ||
                                $userBackends = array_filter($_['backends'], function ($backend) {
                                        return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL);
                                });
-                       ?>
-                       <?php $i = 0; foreach ($userBackends as $backend): ?>
+               ?>
+                       <?php $i = 0;
+               foreach ($userBackends as $backend): ?>
                                <?php if ($deprecateTo = $backend->getDeprecateTo()): ?>
                                        <input type="hidden" id="allowUserMountingBackends<?php p($i); ?>" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" data-deprecate-to="<?php p($deprecateTo->getIdentifier()); ?>" />
                                <?php else: ?>
                                        <input type="checkbox" id="allowUserMountingBackends<?php p($i); ?>" class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) {
-                               print_unescaped(' checked="checked"');
-                       } ?> />
+                                               print_unescaped(' checked="checked"');
+                                       } ?> />
                                        <label for="allowUserMountingBackends<?php p($i); ?>"><?php p($backend->getText()); ?></label> <br />
                                <?php endif; ?>
                                <?php $i++; ?>
index 5ce9db68e40351f4bf6831a219450d441bbe82c8..a3c1a7b0daef70bff6880f124d50816f73499959 100644 (file)
@@ -35,7 +35,6 @@ use OCP\IL10N;
 use OCP\IRequest;
 use OCP\IUserSession;
 use Psr\Log\LoggerInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 
 class GlobalStoragesControllerTest extends StoragesControllerTest {
        protected function setUp(): void {
index deb0f6e37bf664d1ea071998b06fc32dd721e73f..793a90c527bfa0a57e47d6d698f197b89ab4f293 100644 (file)
@@ -38,7 +38,6 @@ use OCP\IL10N;
 use OCP\IRequest;
 use OCP\IUserSession;
 use Psr\Log\LoggerInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 
 class UserStoragesControllerTest extends StoragesControllerTest {
 
index fd7e147aebf58fec132ef25351e0f9a33d0f5595..f6521b39410220e5c99508e03d7d6c9a80b2f8d9 100644 (file)
@@ -32,8 +32,8 @@ use OCP\IUser;
 use OCP\Security\ICredentialsManager;
 use OCP\User\Events\PasswordUpdatedEvent;
 use OCP\User\Events\UserLoggedInEvent;
-use Test\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
+use Test\TestCase;
 
 /**
  * @group DB
index 024695b0188d0cebaa66d08f26d29f1daa7f405e..f2b270f087fdbb046ba5d3d3fea85820d8a028a4 100644 (file)
@@ -28,10 +28,6 @@ use OC\Files\Mount\Manager;
 use OC\Files\SetupManagerFactory;
 use OCA\Files_External\Lib\PersonalMount;
 use OCA\Files_External\Lib\StorageConfig;
-use OCP\Diagnostics\IEventLogger;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Files\Config\IMountProviderCollection;
-use OCP\IUserManager;
 use Test\TestCase;
 
 class PersonalMountTest extends TestCase {
index 507d43dd44ebeeda2cba125361982721d3e6ee02..08f1288bd3dea8feb91239c6775717e05f4d60ad 100644 (file)
@@ -1,14 +1,15 @@
 <?php
+
 $CONFIG = [
        "apps_paths" => [
                [
-                       "path"     => "/var/www/html/apps",
-                       "url"      => "/apps",
+                       "path" => "/var/www/html/apps",
+                       "url" => "/apps",
                        "writable" => false,
                ],
                [
-                       "path"     => "/var/www/html/extra-apps",
-                       "url"      => "/extra-apps",
+                       "path" => "/var/www/html/extra-apps",
+                       "url" => "/extra-apps",
                        "writable" => true,
                ],
        ],
index bc3aa42ff6c4f1a6b826f3874d1f03da2d531749..f95b3da3d61c150ab0bb8e4bd2c8a7494f9c312a 100644 (file)
@@ -36,7 +36,8 @@ use OCP\Util;
 class LoadAdditionalScriptsListener implements IEventListener {
        public function __construct(
                private IAppManager $appManager,
-       ) {}
+       ) {
+       }
 
        public function handle(Event $event): void {
                if (!($event instanceof LoadAdditionalScriptsEvent)) {
index 88aed08bba82f710dcbc3fb714373650ae7a77cc..944ce2cbe360d1fb7da75c3977754dc8aa7f6451 100644 (file)
@@ -34,7 +34,8 @@ use OCP\Files\Events\Node\NodeDeletedEvent;
 class NodeDeletedListener implements IEventListener {
        public function __construct(
                private ReminderService $reminderService,
-       ) {}
+       ) {
+       }
 
        public function handle(Event $event): void {
                if (!($event instanceof NodeDeletedEvent)) {
index b95102c1cc27884478f9f0f3671fcd83f8152bac..4e54a6d9946d6cb55b5a732e06bdd36065ab07c1 100644 (file)
@@ -34,7 +34,8 @@ use OCP\User\Events\UserDeletedEvent;
 class UserDeletedListener implements IEventListener {
        public function __construct(
                private ReminderService $reminderService,
-       ) {}
+       ) {
+       }
 
        public function handle(Event $event): void {
                if (!($event instanceof UserDeletedEvent)) {
index ce46aafb86c2cf99e35a7752145a464d64dc417f..f7ffa0b443754df6255e0e4b3889d366914d6c77 100644 (file)
@@ -42,7 +42,8 @@ class Notifier implements INotifier {
                protected IFactory $l10nFactory,
                protected IURLGenerator $urlGenerator,
                protected IRootFolder $root,
-       ) {}
+       ) {
+       }
 
        public function getID(): string {
                return Application::APP_ID;
index 4bfa943cb04842cf84fc1c1b404ffc0653b19eac..fabca65c45a19363dce9e0e8b093d78e54199a21 100644 (file)
@@ -52,7 +52,8 @@ class ReminderService {
                protected ReminderMapper $reminderMapper,
                protected IRootFolder $root,
                protected LoggerInterface $logger,
-       ) {}
+       ) {
+       }
 
        /**
         * @throws DoesNotExistException
index e9e1d870f9a5be0218050fb7094218581f0835fa..01d730242c938b324aea6b82156a1a64bd20cee1 100644 (file)
@@ -63,12 +63,12 @@ abstract class Base implements IProvider {
        protected $displayNames = [];
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               ICloudIdManager $cloudIdManager,
-                                                               IContactsManager $contactsManager,
-                                                               IEventMerger $eventMerger) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               ICloudIdManager $cloudIdManager,
+               IContactsManager $contactsManager,
+               IEventMerger $eventMerger) {
                $this->languageFactory = $languageFactory;
                $this->url = $url;
                $this->activityManager = $activityManager;
index b9cc2e6b57920e7f4829faa6baf6548bfc12a04b..a6e6fae3e9bf41c67601b872575ed45cf465273e 100644 (file)
@@ -51,13 +51,13 @@ class Groups extends Base {
        protected $groupDisplayNames = [];
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               ICloudIdManager $cloudIdManager,
-                                                               IContactsManager $contactsManager,
-                                                               IEventMerger $eventMerger,
-                                                               IGroupManager $groupManager) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               ICloudIdManager $cloudIdManager,
+               IContactsManager $contactsManager,
+               IEventMerger $eventMerger,
+               IGroupManager $groupManager) {
                parent::__construct($languageFactory, $url, $activityManager, $userManager, $cloudIdManager, $contactsManager, $eventMerger);
                $this->groupManager = $groupManager;
        }
index e24645f8a26ce8626481e869e9446673ba16e74f..b46db3105e95012f7d461daed2cef9da7c0fa44d 100644 (file)
@@ -40,12 +40,12 @@ class RemoteShares extends Base {
        public const SUBJECT_REMOTE_SHARE_UNSHARED = 'remote_share_unshared';
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               ICloudIdManager $cloudIdManager,
-                                                               IContactsManager $contactsManager,
-                                                               IEventMerger $eventMerger) {
+               IURLGenerator $url,
+               IManager $activityManager,
+               IUserManager $userManager,
+               ICloudIdManager $cloudIdManager,
+               IContactsManager $contactsManager,
+               IEventMerger $eventMerger) {
                parent::__construct($languageFactory, $url, $activityManager, $userManager, $cloudIdManager, $contactsManager, $eventMerger);
        }
 
index 603527310aee12735558d9d9667726393aeb041f..fc305e58dbe45920d605f565c86ed09d0b982960 100644 (file)
@@ -32,8 +32,9 @@ namespace OCA\Files_Sharing\AppInfo;
 use OC\Group\DisplayNameCache as GroupDisplayNameCache;
 use OC\Share\Share;
 use OC\User\DisplayNameCache;
+use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files\Event\LoadSidebar;
 use OCA\Files_Sharing\Capabilities;
-use OCA\Files_Sharing\Event\BeforeTemplateRenderedEvent;
 use OCA\Files_Sharing\External\Manager;
 use OCA\Files_Sharing\External\MountProvider as ExternalMountProvider;
 use OCA\Files_Sharing\Helper;
@@ -48,8 +49,6 @@ use OCA\Files_Sharing\Middleware\SharingCheckMiddleware;
 use OCA\Files_Sharing\MountProvider;
 use OCA\Files_Sharing\Notification\Listener;
 use OCA\Files_Sharing\Notification\Notifier;
-use OCA\Files\Event\LoadAdditionalScriptsEvent;
-use OCA\Files\Event\LoadSidebar;
 use OCA\Files_Sharing\ShareBackend\File;
 use OCA\Files_Sharing\ShareBackend\Folder;
 use OCA\Files_Sharing\ViewOnly;
index af8e722c609dc876b40528f91c77fb00013f7cd2..3011bc6466975689e571ac781759ae8f502efaa8 100644 (file)
@@ -39,8 +39,6 @@ use OCP\Files\Search\ISearchBinaryOperator;
 use OCP\Files\Search\ISearchComparison;
 use OCP\Files\Search\ISearchOperator;
 use OCP\Files\StorageNotAvailableException;
-use OCP\ICacheFactory;
-use OCP\IUserManager;
 use OCP\Share\IShare;
 
 /**
index 2fd35b20a0f5a5051bdf254088162d88fd991275..4ed30f44020e0fb1ddf1241d16c5a685d6f5ad5c 100644 (file)
@@ -24,7 +24,6 @@
 namespace OCA\Files_Sharing\Collaboration;
 
 use OCP\Collaboration\AutoComplete\ISorter;
-use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
 use OCP\IUserSession;
index 310f27ebfa3e07baf1021538eab2e1ec4dab407b..5715877475809179abf88a2b662b92ea1ed052dc 100644 (file)
@@ -23,14 +23,13 @@ declare(strict_types=1);
 
 namespace OCA\Files_Sharing\Command;
 
-
-use Symfony\Component\Console\Question\ConfirmationQuestion;
 use OC\Core\Command\Base;
 use OCA\Files_Sharing\OrphanHelper;
 use Symfony\Component\Console\Helper\QuestionHelper;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Question\ConfirmationQuestion;
 
 class DeleteOrphanShares extends Base {
        private OrphanHelper $orphanHelper;
index e77b41b183531758aa90ca77adfb9985fe99bff2..b0311e092212ad176df0eb2b0245a506276cf623 100644 (file)
@@ -46,9 +46,9 @@ class ExiprationNotification extends Command {
        private $shareManager;
 
        public function __construct(ITimeFactory $time,
-                                                               NotificationManager $notificationManager,
-                                                               IDBConnection $connection,
-                                                               ShareManager $shareManager) {
+               NotificationManager $notificationManager,
+               IDBConnection $connection,
+               ShareManager $shareManager) {
                parent::__construct();
 
                $this->notificationManager = $notificationManager;
@@ -67,7 +67,7 @@ class ExiprationNotification extends Command {
                //Current time
                $minTime = $this->time->getDateTime();
                $minTime->add(new \DateInterval('P1D'));
-               $minTime->setTime(0,0,0);
+               $minTime->setTime(0, 0, 0);
 
                $maxTime = clone $minTime;
                $maxTime->setTime(23, 59, 59);
index aec011aa7ac9e9427a8f4d092ca4ebccad5f4b17..6b54a3489c6e3cd8346159323518ede4b0a70279 100644 (file)
@@ -77,14 +77,14 @@ class DeletedShareAPIController extends OCSController {
        private $serverContainer;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               ShareManager $shareManager,
-                                                               string $UserId,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IRootFolder $rootFolder,
-                                                               IAppManager $appManager,
-                                                               IServerContainer $serverContainer) {
+               IRequest $request,
+               ShareManager $shareManager,
+               string $UserId,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               IRootFolder $rootFolder,
+               IAppManager $appManager,
+               IServerContainer $serverContainer) {
                parent::__construct($appName, $request);
 
                $this->shareManager = $shareManager;
index 089610f711f406ebab4f2154863496ad9d38a109..54a1a32166561f513bfdbaa4fd92ec3ec66f6771 100644 (file)
@@ -51,10 +51,10 @@ class PublicPreviewController extends PublicShareController {
        private $share;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               ShareManager $shareManger,
-                                                               ISession $session,
-                                                               IPreview $previewManager) {
+               IRequest $request,
+               ShareManager $shareManger,
+               ISession $session,
+               IPreview $previewManager) {
                parent::__construct($appName, $request, $session);
 
                $this->shareManager = $shareManger;
index 00d627095b826003d0cca8ebae332ef28fdb045b..ff087d4a196c75fedbc3ffe06b3991d5ff787d42 100644 (file)
@@ -41,8 +41,8 @@ class SettingsController extends Controller {
        private $userId;
 
        public function __construct(IRequest $request,
-                                                               IConfig $config,
-                                                               string $userId) {
+               IConfig $config,
+               string $userId) {
                parent::__construct(Application::APP_ID, $request);
 
                $this->config = $config;
index 5b69d522545f1d83d0ec7f6412f4291b3061f2b7..98423e7dd1fb70fbe9220fa108caf21a40789a80 100644 (file)
@@ -260,7 +260,7 @@ class ShareAPIController extends OCSController {
                        $result['share_with'] = $share->getSharedWith();
                        $result['share_with_displayname'] = $sharedWith !== null ? $sharedWith->getDisplayName() : $share->getSharedWith();
                        $result['share_with_displayname_unique'] = $sharedWith !== null ? (
-                                !empty($sharedWith->getSystemEMailAddress()) ? $sharedWith->getSystemEMailAddress() : $sharedWith->getUID()
+                               !empty($sharedWith->getSystemEMailAddress()) ? $sharedWith->getSystemEMailAddress() : $sharedWith->getUID()
                        ) : $share->getSharedWith();
 
                        $userStatuses = $this->userStatusManager->getUserStatuses([$share->getSharedWith()]);
@@ -364,7 +364,7 @@ class ShareAPIController extends OCSController {
 
                $result['attributes'] = null;
                if ($attributes = $share->getAttributes()) {
-                       $result['attributes'] =  (string)\json_encode($attributes->toArray());
+                       $result['attributes'] = (string)\json_encode($attributes->toArray());
                }
 
                return $result;
@@ -1314,8 +1314,8 @@ class ShareAPIController extends OCSController {
                                }
 
                                if (!$this->hasPermission($newPermissions, Constants::PERMISSION_READ) && (
-                                               $this->hasPermission($newPermissions, Constants::PERMISSION_UPDATE) || $this->hasPermission($newPermissions, Constants::PERMISSION_DELETE)
-                                       )) {
+                                       $this->hasPermission($newPermissions, Constants::PERMISSION_UPDATE) || $this->hasPermission($newPermissions, Constants::PERMISSION_DELETE)
+                               )) {
                                        throw new OCSBadRequestException($this->l->t('Share must have READ permission if UPDATE or DELETE permission is set'));
                                }
                        }
index dc60463dac70b870277f35a594228bcdb03b1d1c..835d08c446ca971b93366dae0fe146bda3272e24 100644 (file)
@@ -71,8 +71,8 @@ use OCP\Security\ISecureRandom;
 use OCP\Share;
 use OCP\Share\Exceptions\ShareNotFound;
 use OCP\Share\IManager as ShareManager;
-use OCP\Share\IShare;
 use OCP\Share\IPublicShareTemplateFactory;
+use OCP\Share\IShare;
 use OCP\Template;
 
 /**
@@ -569,10 +569,10 @@ class ShareController extends AuthPublicShareController {
         * @param string $filePath
         */
        protected function publishActivity($subject,
-                                                                               array $parameters,
-                                                                               $affectedUser,
-                                                                               $fileId,
-                                                                               $filePath) {
+               array $parameters,
+               $affectedUser,
+               $fileId,
+               $filePath) {
                $event = $this->activityManager->generateEvent();
                $event->setApp('files_sharing')
                        ->setType('public_links')
index 720705121d23bb8d74569fde5632c3c7def1f1f1..a1379a63d9a42b037368af94ac1af8548a7f4a02 100644 (file)
@@ -53,8 +53,8 @@ class ShareInfoController extends ApiController {
         * @param IManager $shareManager
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IManager $shareManager) {
+               IRequest $request,
+               IManager $shareManager) {
                parent::__construct($appName, $request);
 
                $this->shareManager = $shareManager;
index c151ab533273cc2398330ae652e4518ee862527a..00bc85e4a969d3eb2cd080a7756e454111ff7008 100644 (file)
@@ -38,9 +38,6 @@ declare(strict_types=1);
  */
 namespace OCA\Files_Sharing\Controller;
 
-use OCP\Constants;
-use function array_slice;
-use function array_values;
 use Generator;
 use OC\Collaboration\Collaborators\SearchResult;
 use OCA\Files_Sharing\ResponseDefinitions;
@@ -51,11 +48,14 @@ use OCP\AppFramework\OCSController;
 use OCP\Collaboration\Collaborators\ISearch;
 use OCP\Collaboration\Collaborators\ISearchResult;
 use OCP\Collaboration\Collaborators\SearchResultType;
+use OCP\Constants;
 use OCP\IConfig;
 use OCP\IRequest;
 use OCP\IURLGenerator;
-use OCP\Share\IShare;
 use OCP\Share\IManager;
+use OCP\Share\IShare;
+use function array_slice;
+use function array_values;
 use function usort;
 
 /**
index 9c95428d7b73e0ce45d966dbb947c308dd665194..8af1c803e18bcccbc2b449fd496a6412b49b556a 100644 (file)
@@ -39,7 +39,6 @@ use OCP\Defaults;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\FileInfo;
 use OCP\Files\Folder;
-use OCP\Files\NotFoundException;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IPreview;
@@ -47,8 +46,8 @@ use OCP\IRequest;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
-use OCP\Share\IShare;
 use OCP\Share\IPublicShareTemplateProvider;
+use OCP\Share\IShare;
 use OCP\Template;
 use OCP\Util;
 
index 5b315e81f69c1ab30336ac89be181326d75d5d43..169bf6ed3d74a42331e5c226adccdade5fc5ee90 100644 (file)
  */
 namespace OCA\Files_Sharing\External;
 
+use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\Federation\ICloudIdManager;
 use OCP\Files\Config\IMountProvider;
 use OCP\Files\Storage\IStorageFactory;
 use OCP\IDBConnection;
-use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IUser;
 
 class MountProvider implements IMountProvider {
index e2122cb6ee2aa7533c820a47a0fda34a5d0d4c35..a15eade79fd13070990167628ad7c668c59dbd06 100644 (file)
@@ -25,8 +25,8 @@ declare(strict_types=1);
  */
 namespace OCA\Files_Sharing\Listener;
 
-use OCA\Files_Sharing\AppInfo\Application;
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files_Sharing\AppInfo\Application;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
 use OCP\Share\IManager;
index c6a3c4c2683f6f20bf7edc8db9a79319a68cdeec..b88c3ccf0d8ba3323b82937aba1af5eacc5d367f 100644 (file)
@@ -26,26 +26,23 @@ declare(strict_types=1);
 
 namespace OCA\Files_Sharing\Listener;
 
-use OCA\Files_Sharing\AppInfo\Application;
 use OCA\Files\Event\LoadSidebar;
+use OCA\Files_Sharing\AppInfo\Application;
+use OCP\AppFramework\Services\IInitialState;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
-use OCP\Util;
-use OCP\AppFramework\Services\IInitialState;
 use OCP\Share\IManager;
+use OCP\Util;
 
 /**
  * @template-implements IEventListener<Event>
  */
-class LoadSidebarListener implements IEventListener
-{
+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
-       {
+       public function handle(Event $event): void {
                if (!($event instanceof LoadSidebar)) {
                        return;
                }
index 1c961ffed3498c0452797ec641713ccfa228a58d..aba6124f4155afeef00a78bf56fae5f67af711fb 100644 (file)
@@ -39,7 +39,7 @@ class OCSShareAPIMiddleware extends Middleware {
        private $l;
 
        public function __construct(IManager $shareManager,
-                                                               IL10N $l) {
+               IL10N $l) {
                $this->shareManager = $shareManager;
                $this->l = $l;
        }
index b9bab169d1d478969e20906d2ee00d240b7abdff..005fc75c849b00945013db60fef841049eb0dee5 100644 (file)
@@ -64,12 +64,12 @@ class SharingCheckMiddleware extends Middleware {
        protected $request;
 
        public function __construct(string $appName,
-                                                               IConfig $config,
-                                                               IAppManager $appManager,
-                                                               IControllerMethodReflector $reflector,
-                                                               IManager $shareManager,
-                                                               IRequest $request
-                                                               ) {
+               IConfig $config,
+               IAppManager $appManager,
+               IControllerMethodReflector $reflector,
+               IManager $shareManager,
+               IRequest $request
+       ) {
                $this->appName = $appName;
                $this->config = $config;
                $this->appManager = $appManager;
index d1ba645f93d4051f1133bb455c94ef5fd5e60200..57b441172ee135487389e06cab427af41f7863d4 100644 (file)
@@ -68,7 +68,7 @@ class OwncloudGuestShareType implements IRepairStep {
 
                $query = $this->connection->getQueryBuilder();
                $query->update('share')
-                       ->set('share_type',  $query->createNamedParameter(IShare::TYPE_GUEST))
+                       ->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST))
                        ->where($query->expr()->eq('share_type', $query->createNamedParameter(IShare::TYPE_EMAIL)));
                $query->execute();
        }
index 50d0cd9e0666a3153cd5bc6d4b008fc72a6ed8c7..ec514c9154fd81948e5b6340656abce01ddd32af 100644 (file)
@@ -29,8 +29,8 @@ namespace OCA\Files_Sharing\Migration;
 
 use Closure;
 use Doctrine\DBAL\Types\Type;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index ff7722eaa585e60582fe73f9996c02d912cffe55..c393295a3670f40ec71c1dcd0aa3d653d926ed72 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
 namespace OCA\Files_Sharing\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index d5f938dde6dd951de562a0a1ebe08b856a6d35a9..8b95e32eb4f8a4055d878040862e42c964ac5107 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
 namespace OCA\Files_Sharing\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index d4cc13842a3fa8eaeac3edca1acdc93506b606c6..dce67b7ef9895584d9a264b97eca6f11be7a72d0 100644 (file)
@@ -28,9 +28,9 @@
  */
 namespace OCA\Files_Sharing;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\View;
 use OCA\Files_Sharing\Event\ShareMountedEvent;
+use OCP\Cache\CappedMemoryCache;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Config\IMountProvider;
 use OCP\Files\Storage\IStorageFactory;
index d339c484dd7891c971e329f9d3ca5556d646c665..20ad9c7e755e5c9832227c56415e73e285dc2713 100644 (file)
@@ -61,11 +61,11 @@ class Notifier implements INotifier {
        protected $url;
 
        public function __construct(IFactory $l10nFactory,
-                                                               IManager $shareManager,
-                                                               IRootFolder $rootFolder,
-                                                               IGroupManager $groupManager,
-                                                               IUserManager $userManager,
-                                                               IURLGenerator $url) {
+               IManager $shareManager,
+               IRootFolder $rootFolder,
+               IGroupManager $groupManager,
+               IUserManager $userManager,
+               IURLGenerator $url) {
                $this->l10nFactory = $l10nFactory;
                $this->shareManager = $shareManager;
                $this->rootFolder = $rootFolder;
index 19993572c2e42dff70d2e79838edd2e6dab44799..aa1ee004971a55d884fc39c6683f2d1719ad61e4 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index a9d5bf8293514bd1572b0f5bdc16cd5f648ec2a3..7dc24936d6b1feaa5e22a935cc8a2b2c11aa199d 100644 (file)
 
 namespace OCA\Files_Sharing;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Filesystem;
 use OC\Files\Mount\MountPoint;
 use OC\Files\Mount\MoveableMount;
 use OC\Files\View;
+use OCP\Cache\CappedMemoryCache;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Events\InvalidateMountCacheEvent;
 use OCP\Files\Storage\IStorageFactory;
index c56bcaebb123688bc4858762535c5483685e563f..de49e3c4294749eb8fe52d0bced497f388a675be 100644 (file)
@@ -37,18 +37,18 @@ use OC\Files\Cache\NullWatcher;
 use OC\Files\Cache\Watcher;
 use OC\Files\ObjectStore\HomeObjectStoreStorage;
 use OC\Files\Storage\Common;
-use OC\Files\Storage\Home;
-use OC\User\DisplayNameCache;
-use OCP\Files\Folder;
-use OCP\Files\IHomeStorage;
-use OCP\Files\Node;
 use OC\Files\Storage\FailedStorage;
+use OC\Files\Storage\Home;
 use OC\Files\Storage\Wrapper\PermissionsMask;
+use OC\User\DisplayNameCache;
 use OC\User\NoUserException;
 use OCA\Files_External\Config\ExternalMountPoint;
 use OCP\Constants;
 use OCP\Files\Cache\ICacheEntry;
+use OCP\Files\Folder;
+use OCP\Files\IHomeStorage;
 use OCP\Files\IRootFolder;
+use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage\IDisableEncryptionStorage;
 use OCP\Files\Storage\IStorage;
index 59e06e60299828d9ee2a1a37e1ef75b1b8095947..95a5c9d9166dc25a9c018aa6d991e9d09db4151d 100644 (file)
@@ -28,8 +28,8 @@ namespace OCA\Files_Sharing;
 
 use OC\Files\Mount\MountPoint;
 use OCP\Constants;
-use OCP\Share\IShare;
 use OCP\Files\Folder;
+use OCP\Share\IShare;
 
 class Updater {
 
index fa4d34dd6f173d8f77028deef168c257d58efdcf..4d840169b69ba25c35daab5005ffc4f637078e3f 100644 (file)
@@ -120,7 +120,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
                                                echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
                                                        '<span id="show-terms-dialog">', '</span>'
                                                ]);
-                                       ?>
+                               ?>
                                </div>
                        <?php } ?>
                </div>
index f77a22dc0ad4d858959e730ff9a427ef275253b9..a50bfe5bee4ddce6cbef83474f68f6d586f37b01 100644 (file)
@@ -37,7 +37,6 @@ namespace OCA\Files_Sharing\Tests;
 
 use OC\Files\Cache\Scanner;
 use OC\Files\Filesystem;
-use OC\Files\SetupManager;
 use OCA\Files_Sharing\Controller\ShareAPIController;
 use OCP\App\IAppManager;
 use OCP\AppFramework\OCS\OCSBadRequestException;
index d16aed61bf7e5cf3d13a5b6e0c1aaa74601a67ae..270a56504f97b2803bc1e26a113b43295949bc83 100644 (file)
  */
 namespace OCA\Files_Sharing\Tests;
 
-use OCP\Files\Events\BeforeDirectFileDownloadEvent;
-use OCP\Files\Events\BeforeZipCreatedEvent;
-use Psr\Log\LoggerInterface;
-use OC\Share20\Manager;
 use OC\EventDispatcher\EventDispatcher;
+use OC\Share20\Manager;
 use OCA\Files_Sharing\AppInfo\Application;
 use OCA\Files_Sharing\SharedStorage;
 use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Files\Events\BeforeDirectFileDownloadEvent;
+use OCP\Files\Events\BeforeZipCreatedEvent;
 use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
@@ -39,6 +38,7 @@ use OCP\IUser;
 use OCP\IUserSession;
 use OCP\Share\IAttributes;
 use OCP\Share\IShare;
+use Psr\Log\LoggerInterface;
 use Symfony\Component\EventDispatcher\EventDispatcher as SymfonyDispatcher;
 use Test\TestCase;
 
index 50e5433d10f5670da7cb5a5d45a9312059bd2ea8..729b701b1a0a37567a5ed18c7f73432e18e9d7c8 100644 (file)
@@ -244,7 +244,7 @@ class CacheTest extends TestCase {
 
        public function testGetFolderContentsInRoot() {
                $results = $this->user2View->getDirectoryContent('/');
-               $results = (array_filter($results, function($file) {
+               $results = (array_filter($results, function ($file) {
                        return $file->getName() !== 'welcome.txt';
                }));
 
@@ -334,7 +334,7 @@ class CacheTest extends TestCase {
                self::assertEquals([
                        'welcome.txt',
                        'simplefile.txt'
-               ], array_map(function($node) {
+               ], array_map(function ($node) {
                        return $node->getFileInfo()['name'];
                }, $recents));
        }
index ff6001e0ced0c0bf094b0e75b536ad3bb2e1617e..c4906b9119bdcdf2756e04d0e8758e5bbf77557e 100644 (file)
 namespace OCA\Files_Sharing\Tests\Controllers;
 
 use OCA\Files_Sharing\Controller\ExternalSharesController;
+use OCA\Files_Sharing\External\Manager;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Http\JSONResponse;
+use OCP\Http\Client\IClient;
 use OCP\Http\Client\IClientService;
+use OCP\Http\Client\IResponse;
 use OCP\IConfig;
 use OCP\IRequest;
-use OCP\Http\Client\IResponse;
-use OCP\Http\Client\IClient;
-use OCA\Files_Sharing\External\Manager;
 use PHPUnit\Framework\MockObject\MockObject;
 
 /**
index a4b77c3ea9459c7fa0599a31091a80b8f9ec79d1..bfc6a97bd86cfdbb65df534f31f0d0dcd05441a9 100644 (file)
@@ -46,7 +46,6 @@ use OCP\Files\IRootFolder;
 use OCP\Files\Mount\IMountPoint;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage;
-use OCP\Files\Storage\IStorage;
 use OCP\IConfig;
 use OCP\IGroup;
 use OCP\IGroupManager;
@@ -62,8 +61,8 @@ use OCP\Share\Exceptions\GenericShareException;
 use OCP\Share\IAttributes as IShareAttributes;
 use OCP\Share\IManager;
 use OCP\Share\IShare;
-use Test\TestCase;
 use OCP\UserStatus\IManager as IUserStatusManager;
+use Test\TestCase;
 
 /**
  * Class ShareAPIControllerTest
@@ -523,8 +522,8 @@ class ShareAPIControllerTest extends TestCase {
        */
 
        public function createShare($id, $shareType, $sharedWith, $sharedBy, $shareOwner, $path, $permissions,
-                                                               $shareTime, $expiration, $parent, $target, $mail_send, $note = '', $token = null,
-                                                               $password = null, $label = '', $attributes = null) {
+               $shareTime, $expiration, $parent, $target, $mail_send, $note = '', $token = null,
+               $password = null, $label = '', $attributes = null) {
                $share = $this->getMockBuilder(IShare::class)->getMock();
                $share->method('getId')->willReturn($id);
                $share->method('getShareType')->willReturn($shareType);
@@ -2184,7 +2183,7 @@ class ShareAPIControllerTest extends TestCase {
                $this->shareManager->expects($this->once())->method('createShare')->with(
                        $this->callback(function (\OCP\Share\IShare $share) use ($path) {
                                $date = new \DateTime('2000-01-01');
-                               $date->setTime(0,0,0);
+                               $date->setTime(0, 0, 0);
 
                                return $share->getNode() === $path &&
                                $share->getShareType() === IShare::TYPE_LINK &&
@@ -2743,7 +2742,7 @@ class ShareAPIControllerTest extends TestCase {
                $this->shareManager->expects($this->once())->method('updateShare')->with(
                        $this->callback(function (\OCP\Share\IShare $share) {
                                $date = new \DateTime('2000-01-01');
-                               $date->setTime(0,0,0);
+                               $date->setTime(0, 0, 0);
 
                                return $share->getPermissions() === (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE) &&
                                $share->getPassword() === 'password' &&
@@ -3029,7 +3028,7 @@ class ShareAPIControllerTest extends TestCase {
                $ocs = $this->mockFormatShare();
 
                $date = new \DateTime('2000-01-01');
-               $date->setTime(0,0,0);
+               $date->setTime(0, 0, 0);
 
                [$userFolder, $node] = $this->getNonSharedUserFolder();
                $node->method('getId')->willReturn(42);
@@ -3081,7 +3080,7 @@ class ShareAPIControllerTest extends TestCase {
                $ocs = $this->mockFormatShare();
 
                $date = new \DateTime('2000-01-01');
-               $date->setTime(0,0,0);
+               $date->setTime(0, 0, 0);
 
                [$userFolder, $node] = $this->getNonSharedUserFolder();
                $userFolder->method('getById')
@@ -3139,7 +3138,7 @@ class ShareAPIControllerTest extends TestCase {
                $ocs = $this->mockFormatShare();
 
                $date = new \DateTime('2000-01-01');
-               $date->setTime(0,0,0);
+               $date->setTime(0, 0, 0);
 
                [$userFolder, $node] = $this->getNonSharedUserFolder();
                $userFolder->method('getById')
@@ -3179,7 +3178,7 @@ class ShareAPIControllerTest extends TestCase {
                $ocs = $this->mockFormatShare();
 
                $date = new \DateTime('2000-01-01');
-               $date->setTime(0,0,0);
+               $date->setTime(0, 0, 0);
 
                [$userFolder, $node] = $this->getNonSharedUserFolder();
                $userFolder->method('getById')
@@ -3233,7 +3232,7 @@ class ShareAPIControllerTest extends TestCase {
                $ocs = $this->mockFormatShare();
 
                $date = new \DateTime('2000-01-01');
-               $date->setTime(0,0,0);
+               $date->setTime(0, 0, 0);
 
                [$userFolder, $node] = $this->getNonSharedUserFolder();
                $node->method('getId')
@@ -3328,7 +3327,7 @@ class ShareAPIControllerTest extends TestCase {
                $this->shareManager->expects($this->once())->method('updateShare')->with(
                        $this->callback(function (\OCP\Share\IShare $share) {
                                $date = new \DateTime('2010-12-23');
-                               $date->setTime(0,0,0);
+                               $date->setTime(0, 0, 0);
 
                                return $share->getPermissions() === \OCP\Constants::PERMISSION_ALL &&
                                $share->getPassword() === 'password' &&
index 2a9ab1a3b08cc841c0c2f1380503710c4ad5d99f..3a73862bf77d5c7a614d9bd620871a95b93e1e42 100644 (file)
@@ -37,19 +37,24 @@ namespace OCA\Files_Sharing\Tests\Controllers;
 
 use OC\Files\Filesystem;
 use OC\Files\Node\Folder;
+use OC\Share20\Manager;
 use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCA\Files_Sharing\Controller\ShareController;
+use OCA\Files_Sharing\DefaultPublicShareTemplateProvider;
 use OCP\Accounts\IAccount;
 use OCP\Accounts\IAccountManager;
 use OCP\Accounts\IAccountProperty;
+use OCP\Activity\IManager;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Http\Template\ExternalShareMenuAction;
 use OCP\AppFramework\Http\Template\LinkMenuAction;
 use OCP\AppFramework\Http\Template\PublicTemplateResponse;
 use OCP\AppFramework\Http\Template\SimpleMenuAction;
 use OCP\Constants;
+use OCP\Defaults;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\File;
+use OCP\Files\IRootFolder;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage;
 use OCP\IConfig;
@@ -62,14 +67,9 @@ use OCP\IUser;
 use OCP\IUserManager;
 use OCP\Security\ISecureRandom;
 use OCP\Share\Exceptions\ShareNotFound;
+use OCP\Share\IPublicShareTemplateFactory;
 use OCP\Share\IShare;
 use PHPUnit\Framework\MockObject\MockObject;
-use OCP\Activity\IManager;
-use OCP\Files\IRootFolder;
-use OCP\Defaults;
-use OC\Share20\Manager;
-use OCA\Files_Sharing\DefaultPublicShareTemplateProvider;
-use OCP\Share\IPublicShareTemplateFactory;
 
 /**
  * @group DB
index b73b605f4102f4a1850f738d68c2cad69a024319..5953ab0d890222961cbfc572672e81a01e3e3868 100644 (file)
@@ -38,8 +38,8 @@ use OCP\Collaboration\Collaborators\ISearch;
 use OCP\IConfig;
 use OCP\IRequest;
 use OCP\IURLGenerator;
-use OCP\Share\IShare;
 use OCP\Share\IManager;
+use OCP\Share\IShare;
 use PHPUnit\Framework\MockObject\MockObject;
 
 /**
index 2e169f878ce9b44f3d60aa280687c010ad17fa68..e320b85cb221c2b4ff84614e564ab81ba5f9600a 100644 (file)
@@ -377,14 +377,14 @@ class SharedMountTest extends TestCase {
                $caches = [];
                $cacheFactory = $this->createMock(ICacheFactory::class);
                $cacheFactory->method('createLocal')
-                       ->willReturnCallback(function(string $prefix) use (&$caches) {
+                       ->willReturnCallback(function (string $prefix) use (&$caches) {
                                if (!isset($caches[$prefix])) {
                                        $caches[$prefix] = new ArrayCache($prefix);
                                }
                                return $caches[$prefix];
                        });
                $cacheFactory->method('createDistributed')
-                       ->willReturnCallback(function(string $prefix) use (&$caches) {
+                       ->willReturnCallback(function (string $prefix) use (&$caches) {
                                if (!isset($caches[$prefix])) {
                                        $caches[$prefix] = new ArrayCache($prefix);
                                }
index 2bd83d6c9c28f5fe3e90ac0a0dc3c580e68d52a5..84e436b17cd87f7835f1c3c853937efc9b67983d 100644 (file)
 namespace OCA\Files_Sharing\Tests;
 
 use OC\Files\Filesystem;
+use OC\User\DisplayNameCache;
 use OCA\Files_Sharing\AppInfo\Application;
 use OCA\Files_Sharing\External\MountProvider as ExternalMountProvider;
 use OCA\Files_Sharing\MountProvider;
 use OCP\Files\Config\IMountProviderCollection;
 use OCP\Share\IShare;
 use Test\Traits\MountProviderTrait;
-use OC\User\DisplayNameCache;
 
 /**
  * Class TestCase
index 461eade68024a094193770b7d0207b652b764e28..f83c56a64b0899c204355859a93501a9f64ed58b 100644 (file)
@@ -33,11 +33,11 @@ use OCA\Files_Trashbin\Listeners\LoadAdditionalScripts;
 use OCA\Files_Trashbin\Trash\ITrashManager;
 use OCA\Files_Trashbin\Trash\TrashManager;
 use OCA\Files_Trashbin\UserMigration\TrashbinMigrator;
+use OCP\App\IAppManager;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
-use OCP\App\IAppManager;
 use OCP\ILogger;
 use OCP\IServerContainer;
 
index c76033e0c79440bbe4945cd6be51328861763c33..5bbc97a38c9b60d8a8fc41f3c3fcc1c7581704b8 100644 (file)
@@ -26,7 +26,6 @@
  */
 namespace OCA\Files_Trashbin\BackgroundJob;
 
-use OCA\Files_Trashbin\AppInfo\Application;
 use OCA\Files_Trashbin\Expiration;
 use OCA\Files_Trashbin\Helper;
 use OCA\Files_Trashbin\Trashbin;
index bcecbfceeffd9e4f0df6aee3ac170c240b987b6f..e64ef2973f76a26314457f6e97c74020f6cbe6c6 100644 (file)
@@ -53,7 +53,7 @@ class ExpireTrash extends Command {
         * @param Expiration|null $expiration
         */
        public function __construct(IUserManager $userManager = null,
-                                                               Expiration $expiration = null) {
+               Expiration $expiration = null) {
                parent::__construct();
 
                $this->userManager = $userManager;
index 5705fc23b8a1e5aaf3c2adf84ec1c01119a2a7fe..110630cb25429f359d73223479a745eeef48858c 100644 (file)
@@ -50,7 +50,7 @@ class Expiration {
        /** @var bool */
        private $canPurgeToSaveSpace;
 
-       public function __construct(IConfig $config,ITimeFactory $timeFactory) {
+       public function __construct(IConfig $config, ITimeFactory $timeFactory) {
                $this->timeFactory = $timeFactory;
                $this->setRetentionObligation($config->getSystemValue('trashbin_retention_obligation', 'auto'));
        }
index 33b1b2de1ccab1a70098135ef8f9d8ec099fc1c3..321b4a54b2c96bbccf291bff53709c070c0d55ef 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
@@ -24,8 +25,8 @@ declare(strict_types=1);
  */
 namespace OCA\Files_Trashbin\Listeners;
 
-use OCA\Files_Trashbin\AppInfo\Application;
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files_Trashbin\AppInfo\Application;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
 use OCP\Util;
index 778bd76c218351b16be052896dc9d668f43fac54..913c08388e76f5898a83fd76bba20f821e36ca6e 100644 (file)
@@ -28,8 +28,8 @@ declare(strict_types=1);
 namespace OCA\Files_Trashbin\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 0c3ccee2590bf06abeadb293c3142e34b8ab8a41..72b7332d9b11b71f2344c9c52ba8fc22e0cdf35c 100644 (file)
@@ -27,14 +27,14 @@ declare(strict_types=1);
  */
 namespace OCA\Files_Trashbin\Sabre;
 
+use OCA\DAV\Connector\Sabre\FilesPlugin;
 use OCP\IPreview;
 use Sabre\DAV\INode;
-use Sabre\DAV\Server;
 use Sabre\DAV\PropFind;
+use Sabre\DAV\Server;
 use Sabre\DAV\ServerPlugin;
 use Sabre\HTTP\RequestInterface;
 use Sabre\HTTP\ResponseInterface;
-use OCA\DAV\Connector\Sabre\FilesPlugin;
 
 class TrashbinPlugin extends ServerPlugin {
        public const TRASHBIN_FILENAME = '{http://nextcloud.org/ns}trashbin-filename';
index 3d1f3c42bc41ca3d9922b9c8d6a3fed0e2fb93bf..3e749169ad257a9fd752aed541c1f91938bf0cff 100644 (file)
@@ -78,7 +78,7 @@ class LegacyTrashBackend implements ITrashBackend {
        public function listTrashFolder(ITrashItem $folder): array {
                $user = $folder->getUser();
                $entries = Helper::getTrashFiles($folder->getTrashPath(), $user->getUID());
-               return $this->mapTrashItems($entries, $user ,$folder);
+               return $this->mapTrashItems($entries, $user$folder);
        }
 
        public function restoreItem(ITrashItem $item) {
index 99b2d3a1a2c221a78e3de59e79bd6bd2fae0eee0..5c9775c6876cfff9a29bf806b1d24917effa1088 100644 (file)
@@ -24,7 +24,6 @@
 namespace OCA\Files_Trashbin\Trash;
 
 use OCP\Files\FileInfo;
-use OCP\FilesMetadata\Model\IFilesMetadata;
 use OCP\IUser;
 
 class TrashItem implements ITrashItem {
index 94ad77ac1c553bfe8cfc009d25cd63cd9a3b3a91..051665acde1f11c4b0d587139c8390296f79500b 100644 (file)
  */
 namespace OCA\Files_Trashbin;
 
-use OC_User;
 use OC\Files\Cache\Cache;
 use OC\Files\Cache\CacheEntry;
 use OC\Files\Cache\CacheQueryBuilder;
 use OC\Files\Filesystem;
 use OC\Files\ObjectStore\ObjectStoreStorage;
 use OC\Files\View;
+use OC_User;
 use OCA\Files_Trashbin\AppInfo\Application;
 use OCA\Files_Trashbin\Command\Expire;
-use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\App\IAppManager;
+use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\NotFoundException;
index 842721eeac9a2f06273d8d576f996a2f6c45aab5..971d2a7d60b4fd4b5c7be714b8f541ebf3d9b1d7 100644 (file)
@@ -148,7 +148,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
                                                ->setParameter('id', $id)
                                                ->setParameter('timestamp', $timestamp)
                                                ->setParameter('location', $location)
-                                               ;
+                                       ;
 
                                        $qb->executeStatement();
                                }
index 2f304b17881945fe0877f48fbf60e5e08e9ec70d..b8f37a890b78df2e80a3453afe1a3de5625f7b3d 100644 (file)
@@ -142,7 +142,7 @@ class ExpirationTest extends \Test\TestCase {
        public function testGetMaxAgeAsTimestamp($configValue, $expectedMaxAgeTimestamp) {
                $mockedConfig = $this->getMockedConfig($configValue);
                $mockedTimeFactory = $this->getMockedTimeFactory(
-                               self::FAKE_TIME_NOW
+                       self::FAKE_TIME_NOW
                );
 
                $expiration = new Expiration($mockedConfig, $mockedTimeFactory);
index a07058d04a7cf1238c532e1ef461d8125009f154..2556b8e4150348bd49eba27b77368de7b437570d 100644 (file)
@@ -48,11 +48,11 @@ use OCP\Files\Events\Node\BeforeNodeCopiedEvent;
 use OCP\Files\Events\Node\BeforeNodeDeletedEvent;
 use OCP\Files\Events\Node\BeforeNodeRenamedEvent;
 use OCP\Files\Events\Node\BeforeNodeTouchedEvent;
+use OCP\Files\Events\Node\BeforeNodeWrittenEvent;
 use OCP\Files\Events\Node\NodeCopiedEvent;
+use OCP\Files\Events\Node\NodeCreatedEvent;
 use OCP\Files\Events\Node\NodeDeletedEvent;
 use OCP\Files\Events\Node\NodeRenamedEvent;
-use OCP\Files\Events\Node\BeforeNodeWrittenEvent;
-use OCP\Files\Events\Node\NodeCreatedEvent;
 use OCP\Files\Events\Node\NodeTouchedEvent;
 use OCP\Files\Events\Node\NodeWrittenEvent;
 use OCP\IConfig;
index 86a0be826681bc623fb8a8ba16d60d806e9d814b..bc6e8b264dee98139776e3624df29e0ceae2bc0d 100644 (file)
@@ -26,10 +26,8 @@ declare(strict_types=1);
 
 namespace OCA\Files_Versions\Db;
 
-use OCA\Files_Versions\Db\VersionEntity;
-use OCP\IDBConnection;
 use OCP\AppFramework\Db\QBMapper;
-use OCP\DB\IResult;
+use OCP\IDBConnection;
 
 /**
  * @extends QBMapper<VersionEntity>
index 40768e90af766264030af21c9dc4e49774be1721..f18a577d80e0f4fbe322b44ea378abb42e38d12d 100644 (file)
@@ -157,16 +157,16 @@ class Expiration {
                if (!ctype_digit($minValue) && $minValue !== 'auto') {
                        $isValid = false;
                        $this->logger->warning(
-                                       $minValue . ' is not a valid value for minimal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
-                                       ['app' => 'files_versions']
+                               $minValue . ' is not a valid value for minimal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
+                               ['app' => 'files_versions']
                        );
                }
 
                if (!ctype_digit($maxValue) && $maxValue !== 'auto') {
                        $isValid = false;
                        $this->logger->warning(
-                                       $maxValue . ' is not a valid value for maximal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
-                                       ['app' => 'files_versions']
+                               $maxValue . ' is not a valid value for maximal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
+                               ['app' => 'files_versions']
                        );
                }
 
index 5aa64c812c6698d85af0da5af7835e184e8838df..de933ecc7d30280c66d091a8d02a6c1a9eae3db2 100644 (file)
@@ -92,7 +92,7 @@ class Plugin extends ServerPlugin {
 
        public function propFind(PropFind $propFind, INode $node): void {
                if ($node instanceof VersionFile) {
-                       $propFind->handle(self::VERSION_LABEL, fn() => $node->getLabel());
+                       $propFind->handle(self::VERSION_LABEL, fn () => $node->getLabel());
                        $propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, fn () => $this->previewManager->isMimeSupported($node->getContentType()));
                }
        }
index a03ecd64b46adcc431ebd1ca446022e2782e56f9..8fd97b0636f75e1df519db8e7ff2c1eebd026b10 100644 (file)
@@ -31,7 +31,6 @@ use OCA\Files_Versions\Versions\INameableVersion;
 use OCA\Files_Versions\Versions\INameableVersionBackend;
 use OCA\Files_Versions\Versions\IVersion;
 use OCA\Files_Versions\Versions\IVersionManager;
-use OCP\Files\FileInfo;
 use OCP\Files\NotFoundException;
 use Sabre\DAV\Exception\Forbidden;
 use Sabre\DAV\Exception\NotFound;
index 56d9a8343c6a7caea4e117d84f84a754309d4942..5e33059dcf81c0fe58cfeba4312063acbbf2790e 100644 (file)
 
 namespace OCA\Files_Versions;
 
+use OC\Files\Filesystem;
 use OC\Files\Search\SearchBinaryOperator;
 use OC\Files\Search\SearchComparison;
 use OC\Files\Search\SearchQuery;
-use OC_User;
-use OC\Files\Filesystem;
 use OC\Files\View;
+use OC_User;
 use OCA\Files_Sharing\SharedMount;
 use OCA\Files_Versions\AppInfo\Application;
 use OCA\Files_Versions\Command\Expire;
@@ -53,13 +53,13 @@ use OCA\Files_Versions\Db\VersionsMapper;
 use OCA\Files_Versions\Events\CreateVersionEvent;
 use OCA\Files_Versions\Versions\IVersionManager;
 use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\Command\IBus;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\FileInfo;
 use OCP\Files\Folder;
+use OCP\Files\IMimeTypeDetector;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
-use OCP\Command\IBus;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Files\IMimeTypeDetector;
 use OCP\Files\NotFoundException;
 use OCP\Files\Search\ISearchBinaryOperator;
 use OCP\Files\Search\ISearchComparison;
index e99ab7d6870760077c5441c8b2d2f38cb57a1798..36faf893d66aa5c03f8aa4126ede6e33d052cf2e 100644 (file)
@@ -36,7 +36,6 @@ use OCP\Files\FileInfo;
 use OCP\Files\Folder;
 use OCP\Files\IMimeTypeLoader;
 use OCP\Files\IRootFolder;
-use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage\IStorage;
 use OCP\IUser;
index abbbe69e5864cb5edb673a3905687b7e80e72bf9..5fbfaae4a16c1287d028a5e4567acb031c11a5c8 100644 (file)
@@ -31,7 +31,6 @@ use OCP\Files\IRootFolder;
 use OCP\Files\Lock\ILock;
 use OCP\Files\Lock\ILockManager;
 use OCP\Files\Lock\LockContext;
-use OCP\Files\NotFoundException;
 use OCP\Files\Storage\IStorage;
 use OCP\IUser;
 use OCP\Lock\ManuallyLockedException;
@@ -100,7 +99,7 @@ class VersionManager implements IVersionManager, INameableVersionBackend, IDelet
 
        public function rollback(IVersion $version) {
                $backend = $version->getBackend();
-               $result = self::handleAppLocks(fn(): ?bool => $backend->rollback($version));
+               $result = self::handleAppLocks(fn (): ?bool => $backend->rollback($version));
                // rollback doesn't have a return type yet and some implementations don't return anything
                if ($result === null || $result === true) {
                        \OC_Hook::emit('\OCP\Versions', 'rollback', [
@@ -197,7 +196,7 @@ class VersionManager implements IVersionManager, INameableVersionBackend, IDelet
                        $lockContext = new LockContext($root, ILock::TYPE_APP, $owner);
                        $lockManager = \OC::$server->get(ILockManager::class);
                        $result = null;
-                       $lockManager->runInScope($lockContext, function() use ($callback, &$result) {
+                       $lockManager->runInScope($lockContext, function () use ($callback, &$result) {
                                $result = $callback();
                        });
                        return $result;
index b319cc2c9c727c500b6d313e752d33b838ead1db..ba9bcf0705a1b5a230507a2504ef77e31ccfdacb 100644 (file)
@@ -24,7 +24,6 @@ declare(strict_types=1);
 namespace OCA\files_versions\tests;
 
 use OCA\Files_Versions\Expiration;
-use OCA\Files_Versions\Hooks;
 use OCA\Files_Versions\Storage;
 use OCP\Files\IRootFolder;
 use OCP\Files\NotFoundException;
index fbcf54f83de511b3a75e41e6be42e3c577e12394..6a74aaa870d58ddbd0a37b4c14ca06b51e8e1f8b 100644 (file)
@@ -36,9 +36,7 @@ use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IUser;
 use Psr\Container\ContainerInterface;
-use Symfony\Component\EventDispatcher\GenericEvent;
 
 class Application extends App implements IBootstrap {
        public const APP_ID = 'lookup_server_connector';
@@ -58,7 +56,7 @@ class Application extends App implements IBootstrap {
         * @todo move the OCP events and then move the registration to `register`
         */
        private function registerEventListeners(IEventDispatcher $dispatcher,
-                                                                                       ContainerInterface $appContainer): void {
+               ContainerInterface $appContainer): void {
                $dispatcher->addListener(UserUpdatedEvent::class, function (UserUpdatedEvent $event) use ($appContainer) {
                        /** @var UpdateLookupServer $updateLookupServer */
                        $updateLookupServer = $appContainer->get(UpdateLookupServer::class);
index d0ad110cf5b9dda36ad32a63ea9b1ac6adffe197..52464ec7dea11365302a42100e12a78c3b4db6bb 100644 (file)
@@ -61,11 +61,11 @@ class RetryJob extends Job {
         * @param Signer $signer
         */
        public function __construct(ITimeFactory $time,
-                                                               IClientService $clientService,
-                                                               IConfig $config,
-                                                               IUserManager $userManager,
-                                                               IAccountManager $accountManager,
-                                                               Signer $signer) {
+               IClientService $clientService,
+               IConfig $config,
+               IUserManager $userManager,
+               IAccountManager $accountManager,
+               Signer $signer) {
                parent::__construct($time);
                $this->clientService = $clientService;
                $this->config = $config;
index ec528e6effa7f2936b093e072e4036acfbcab32b..7d1b6a1cb6355cdac9c67b421e47374c2278148c 100644 (file)
@@ -50,7 +50,7 @@ class UpdateLookupServer {
         * @param IConfig $config
         */
        public function __construct(IJobList $jobList,
-                                                               IConfig $config) {
+               IConfig $config) {
                $this->config = $config;
                $this->jobList = $jobList;
        }
index 7b83e39ca86610f906e81703af9938b6ca35dae7..4c5b905a1ee0b949d643f5f44addb8ea1dd641a8 100644 (file)
@@ -58,11 +58,11 @@ class LoginRedirectorController extends Controller {
         * @param IL10N $l
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IURLGenerator $urlGenerator,
-                                                               ClientMapper $clientMapper,
-                                                               ISession $session,
-                                                               IL10N $l) {
+               IRequest $request,
+               IURLGenerator $urlGenerator,
+               ClientMapper $clientMapper,
+               ISession $session,
+               IL10N $l) {
                parent::__construct($appName, $request);
                $this->urlGenerator = $urlGenerator;
                $this->clientMapper = $clientMapper;
@@ -86,8 +86,8 @@ class LoginRedirectorController extends Controller {
         * 303: Redirect to login URL
         */
        public function authorize($client_id,
-                                                         $state,
-                                                         $response_type): TemplateResponse|RedirectResponse {
+               $state,
+               $response_type): TemplateResponse|RedirectResponse {
                try {
                        $client = $this->clientMapper->getByIdentifier($client_id);
                } catch (ClientNotFoundException $e) {
index 3dcda337917cefb928ac8e506895a41d9df7428a..d49dd6da0381b88b040c1d7b2b096b2ae9f41eea 100644 (file)
@@ -30,13 +30,13 @@ declare(strict_types=1);
  */
 namespace OCA\OAuth2\Controller;
 
-use OCP\Authentication\Token\IProvider as IAuthTokenProvider;
 use OCA\OAuth2\Db\AccessTokenMapper;
 use OCA\OAuth2\Db\Client;
 use OCA\OAuth2\Db\ClientMapper;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\JSONResponse;
+use OCP\Authentication\Token\IProvider as IAuthTokenProvider;
 use OCP\IL10N;
 use OCP\IRequest;
 use OCP\IUser;
@@ -63,7 +63,7 @@ class SettingsController extends Controller {
        }
 
        public function addClient(string $name,
-                                                         string $redirectUri): JSONResponse {
+               string $redirectUri): JSONResponse {
                if (filter_var($redirectUri, FILTER_VALIDATE_URL) === false) {
                        return new JSONResponse(['message' => $this->l->t('Your redirect URL needs to be a full URL for example: https://yourdomain.com/path')], Http::STATUS_BAD_REQUEST);
                }
index 7188985f3f5996b1da5105bfc615711c0d2bc8eb..696d3b7f04afa50140d36ca99595157f06f0c000 100644 (file)
@@ -46,8 +46,8 @@ class SetTokenExpiration implements IRepairStep {
        private $tokenProvider;
 
        public function __construct(IDBConnection $connection,
-                                                               ITimeFactory $timeFactory,
-                                                               TokenProvider $tokenProvider) {
+               ITimeFactory $timeFactory,
+               TokenProvider $tokenProvider) {
                $this->connection = $connection;
                $this->time = $timeFactory;
                $this->tokenProvider = $tokenProvider;
index 7b297116a77a4637241c2adb995573ff8e5c39f3..5cba6805f7cf1e72c4f4567a9c4f6db496215dbf 100644 (file)
@@ -29,9 +29,9 @@ namespace OCA\OAuth2\Settings;
 use OCA\OAuth2\Db\ClientMapper;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
+use OCP\IURLGenerator;
 use OCP\Security\ICrypto;
 use OCP\Settings\ISettings;
-use OCP\IURLGenerator;
 use Psr\Log\LoggerInterface;
 
 class Admin implements ISettings {
index 817747599b7bc2bfc3e165cc27bb1696241472ae..f34707c554d1e2f5f09b86ddb4643c0c0b939a62 100644 (file)
  */
 namespace OCA\OAuth2\Tests\Controller;
 
-use OC\Authentication\Token\IToken;
-use OCP\Authentication\Token\IProvider as IAuthTokenProvider;
 use OCA\OAuth2\Controller\SettingsController;
 use OCA\OAuth2\Db\AccessTokenMapper;
 use OCA\OAuth2\Db\Client;
 use OCA\OAuth2\Db\ClientMapper;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\JSONResponse;
+use OCP\Authentication\Token\IProvider as IAuthTokenProvider;
 use OCP\IL10N;
 use OCP\IRequest;
 use OCP\IUser;
index 584ff9a8cc7699e0ea78ece7dfd86686f6148359..77d7f31c6daf579d8acd754c1447cef86d5a2d3c 100644 (file)
@@ -82,13 +82,13 @@ abstract class AUserData extends OCSController {
        protected $l10nFactory;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IUserManager $userManager,
-                                                               IConfig $config,
-                                                               IGroupManager $groupManager,
-                                                               IUserSession $userSession,
-                                                               IAccountManager $accountManager,
-                                                               IFactory $l10nFactory) {
+               IRequest $request,
+               IUserManager $userManager,
+               IConfig $config,
+               IGroupManager $groupManager,
+               IUserSession $userSession,
+               IAccountManager $accountManager,
+               IFactory $l10nFactory) {
                parent::__construct($appName, $request);
 
                $this->userManager = $userManager;
index 4cdd350042e8f1975ccc8b9555d9cec1cc43cb80..798daedaf6be8539f7ad53dc594a799c02a24d10 100644 (file)
@@ -68,13 +68,13 @@ class AppConfigController extends OCSController {
         * @param IAppConfig $appConfig
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IConfig $config,
-                                                               IAppConfig $appConfig,
-                                                               IUserSession $userSession,
-                                                               IL10N $l10n,
-                                                               IGroupManager $groupManager,
-                                                               IManager $settingManager) {
+               IRequest $request,
+               IConfig $config,
+               IAppConfig $appConfig,
+               IUserSession $userSession,
+               IL10N $l10n,
+               IGroupManager $groupManager,
+               IManager $settingManager) {
                parent::__construct($appName, $request);
                $this->config = $config;
                $this->appConfig = $appConfig;
index 4fde39279166673e750a6b9fe1c5e06ebf80179f..d140c5d60b139ffba7bbdd3620f7a2319c8c36b8 100644 (file)
@@ -61,14 +61,14 @@ class GroupsController extends AUserData {
        private $logger;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IUserManager $userManager,
-                                                               IConfig $config,
-                                                               IGroupManager $groupManager,
-                                                               IUserSession $userSession,
-                                                               IAccountManager $accountManager,
-                                                               IFactory $l10nFactory,
-                                                               LoggerInterface $logger) {
+               IRequest $request,
+               IUserManager $userManager,
+               IConfig $config,
+               IGroupManager $groupManager,
+               IUserSession $userSession,
+               IAccountManager $accountManager,
+               IFactory $l10nFactory,
+               LoggerInterface $logger) {
                parent::__construct($appName,
                        $request,
                        $userManager,
index 43e95c52e069fa17efc90754a7f41d291a39253d..0b4a3d1ebbc54f1a6226b64c2c9227d6ecd5eed2 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 52798d2e428b5dc6a7a554748f6dabad6abaed8a..32e6438d9724149ae5462bfe9b663af2e2065996 100644 (file)
@@ -53,10 +53,10 @@ class GroupProvider implements IProvider {
 
 
        public function __construct(L10nFactory $l10n,
-                                                               IURLGenerator $urlGenerator,
-                                                               IManager $activityManager,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager) {
+               IURLGenerator $urlGenerator,
+               IManager $activityManager,
+               IUserManager $userManager,
+               IGroupManager $groupManager) {
                $this->urlGenerator = $urlGenerator;
                $this->l10n = $l10n;
                $this->activityManager = $activityManager;
index c2ef77f3d9aeac426e11f6150c7ac2c5edbc7826..001f75ba5e65c33b75fb34d83d10203cfa12cf0d 100644 (file)
@@ -66,9 +66,9 @@ class Provider implements IProvider {
        private $activityManager;
 
        public function __construct(IFactory $languageFactory,
-                                                               IURLGenerator $url,
-                                                               IUserManager $userManager,
-                                                               IManager $activityManager) {
+               IURLGenerator $url,
+               IUserManager $userManager,
+               IManager $activityManager) {
                $this->languageFactory = $languageFactory;
                $this->url = $url;
                $this->userManager = $userManager;
index ec75f4243bec2c748035b3936a8d3f600641ddf2..a9fc1e19a7d20aede85c2f5a3aa5cf325ceb1946 100644 (file)
@@ -70,11 +70,11 @@ class VerifyUserData extends Job {
        private $config;
 
        public function __construct(IAccountManager $accountManager,
-                                                               IUserManager $userManager,
-                                                               IClientService $clientService,
-                                                               ILogger $logger,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config
+               IUserManager $userManager,
+               IClientService $clientService,
+               ILogger $logger,
+               ITimeFactory $timeFactory,
+               IConfig $config
        ) {
                parent::__construct($timeFactory);
                $this->accountManager = $accountManager;
index 8db8fa8b5bb68c6627c5a5df7b5fbb133e9396d3..2676bfcf7e6b09926e9a31fbc619bb7793a3af43 100644 (file)
@@ -23,15 +23,9 @@ declare(strict_types=1);
 namespace OCA\Settings\Controller;
 
 use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\IConfig;
-use OCP\IL10N;
 use OCP\IRequest;
-use OCP\IURLGenerator;
-use OCP\IUserSession;
-use OCP\Mail\IMailer;
-use function GuzzleHttp\Promise\queue;
 
 class AISettingsController extends Controller {
 
index 403117a9e748f4efc13fda59318995d29db94545..df98a4578c5d993f90134b78231c6090dda5682f 100644 (file)
@@ -100,18 +100,18 @@ class AppSettingsController extends Controller {
         * @param LoggerInterface $logger
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IL10N $l10n,
-                                                               IConfig $config,
-                                                               INavigationManager $navigationManager,
-                                                               IAppManager $appManager,
-                                                               CategoryFetcher $categoryFetcher,
-                                                               AppFetcher $appFetcher,
-                                                               IFactory $l10nFactory,
-                                                               BundleFetcher $bundleFetcher,
-                                                               Installer $installer,
-                                                               IURLGenerator $urlGenerator,
-                                                               LoggerInterface $logger) {
+               IRequest $request,
+               IL10N $l10n,
+               IConfig $config,
+               INavigationManager $navigationManager,
+               IAppManager $appManager,
+               CategoryFetcher $categoryFetcher,
+               AppFetcher $appFetcher,
+               IFactory $l10nFactory,
+               BundleFetcher $bundleFetcher,
+               Installer $installer,
+               IURLGenerator $urlGenerator,
+               LoggerInterface $logger) {
                parent::__construct($appName, $request);
                $this->l10n = $l10n;
                $this->config = $config;
index 305908e5e0a74b939875dddfbcf0c5b20d779036..c0dc8cbac8517593a04fcd0af75e83a78e40294f 100644 (file)
@@ -90,15 +90,15 @@ class AuthSettingsController extends Controller {
         * @param LoggerInterface $logger
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IProvider $tokenProvider,
-                                                               ISession $session,
-                                                               ISecureRandom $random,
-                                                               ?string $userId,
-                                                               IUserSession $userSession,
-                                                               IManager $activityManager,
-                                                               RemoteWipe $remoteWipe,
-                                                               LoggerInterface $logger) {
+               IRequest $request,
+               IProvider $tokenProvider,
+               ISession $session,
+               ISecureRandom $random,
+               ?string $userId,
+               IUserSession $userSession,
+               IManager $activityManager,
+               RemoteWipe $remoteWipe,
+               LoggerInterface $logger) {
                parent::__construct($appName, $request);
                $this->tokenProvider = $tokenProvider;
                $this->uid = $userId;
index dcae5b3133251d12475876330de948732f9cab6b..e771da6c46c4458bb37357be096b415f60ad1366 100644 (file)
@@ -26,10 +26,10 @@ namespace OCA\Settings\Controller;
 use OC\Settings\AuthorizedGroup;
 use OCA\Settings\Service\AuthorizedGroupService;
 use OCA\Settings\Service\NotFoundException;
+use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\DataResponse;
 use OCP\DB\Exception;
 use OCP\IRequest;
-use OCP\AppFramework\Http\DataResponse;
-use OCP\AppFramework\Controller;
 
 class AuthorizedGroupController extends Controller {
        /** @var AuthorizedGroupService $authorizedGroupService */
index 10ad11935c652d9703c31117cdda064b8e0fc3e8..af4cf5969c93b14b5c72a2033a967f29ab720330 100644 (file)
@@ -57,13 +57,13 @@ class ChangePasswordController extends Controller {
        private IAppManager $appManager;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               ?string $userId,
-                                                               IUserManager $userManager,
-                                                               IUserSession $userSession,
-                                                               IGroupManager $groupManager,
-                                                               IAppManager $appManager,
-                                                               IL10N $l) {
+               IRequest $request,
+               ?string $userId,
+               IUserManager $userManager,
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               IAppManager $appManager,
+               IL10N $l) {
                parent::__construct($appName, $request);
 
                $this->userId = $userId;
index 3128cbfaa234331fdff09592bcad26739eb9b108..94de5cd8d9567af4372ab70a210d815a2153294e 100644 (file)
@@ -34,12 +34,12 @@ use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
 use OCP\AppFramework\Http\ContentSecurityPolicy;
 use OCP\AppFramework\Http\TemplateResponse;
+use OCP\IConfig;
 use OCP\IGroupManager;
 use OCP\IL10N;
 use OCP\INavigationManager;
 use OCP\IRequest;
 use OCP\IURLGenerator;
-use OCP\IConfig;
 
 #[IgnoreOpenAPI]
 class HelpController extends Controller {
index 2df79b67731331529ffa11738ca389a7681ab8b3..be662ed641a73e5cdc49f5c884352d9f26d03a88 100644 (file)
@@ -60,12 +60,12 @@ class MailSettingsController extends Controller {
         * @param IMailer $mailer
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               IL10N $l10n,
-                                                               IConfig $config,
-                                                               IUserSession $userSession,
-                                                               IURLGenerator $urlGenerator,
-                                                               IMailer $mailer) {
+               IRequest $request,
+               IL10N $l10n,
+               IConfig $config,
+               IUserSession $userSession,
+               IURLGenerator $urlGenerator,
+               IMailer $mailer) {
                parent::__construct($appName, $request);
                $this->l10n = $l10n;
                $this->config = $config;
@@ -90,13 +90,13 @@ class MailSettingsController extends Controller {
         * @return DataResponse
         */
        public function setMailSettings($mail_domain,
-                                                                       $mail_from_address,
-                                                                       $mail_smtpmode,
-                                                                       $mail_smtpsecure,
-                                                                       $mail_smtphost,
-                                                                       $mail_smtpauth,
-                                                                       $mail_smtpport,
-                                                                       $mail_sendmailmode) {
+               $mail_from_address,
+               $mail_smtpmode,
+               $mail_smtpsecure,
+               $mail_smtphost,
+               $mail_smtpauth,
+               $mail_smtpport,
+               $mail_sendmailmode) {
                $params = get_defined_vars();
                $configs = [];
                foreach ($params as $key => $value) {
index 45722767cda953216f690fafacdeb2546a57e832..c8541b85905bf34ff30d3e1535a062460b670c7d 100644 (file)
@@ -37,8 +37,8 @@ class TwoFactorSettingsController extends Controller {
        private $mandatoryTwoFactor;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               MandatoryTwoFactor $mandatoryTwoFactor) {
+               IRequest $request,
+               MandatoryTwoFactor $mandatoryTwoFactor) {
                parent::__construct($appName, $request);
 
                $this->mandatoryTwoFactor = $mandatoryTwoFactor;
index 13a91ab45ad97773a6bcdd9440c45b96e3960d42..a2619b3cc4a0bfa7c25d692eb63454a18d5a89e1 100644 (file)
@@ -367,20 +367,20 @@ class UsersController extends Controller {
         * @return DataResponse
         */
        public function setUserSettings(?string $avatarScope = null,
-                                                                       ?string $displayname = null,
-                                                                       ?string $displaynameScope = null,
-                                                                       ?string $phone = null,
-                                                                       ?string $phoneScope = null,
-                                                                       ?string $email = null,
-                                                                       ?string $emailScope = null,
-                                                                       ?string $website = null,
-                                                                       ?string $websiteScope = null,
-                                                                       ?string $address = null,
-                                                                       ?string $addressScope = null,
-                                                                       ?string $twitter = null,
-                                                                       ?string $twitterScope = null,
-                                                                       ?string $fediverse = null,
-                                                                       ?string $fediverseScope = null
+               ?string $displayname = null,
+               ?string $displaynameScope = null,
+               ?string $phone = null,
+               ?string $phoneScope = null,
+               ?string $email = null,
+               ?string $emailScope = null,
+               ?string $website = null,
+               ?string $websiteScope = null,
+               ?string $address = null,
+               ?string $addressScope = null,
+               ?string $twitter = null,
+               ?string $twitterScope = null,
+               ?string $fediverse = null,
+               ?string $fediverseScope = null
        ) {
                $user = $this->userSession->getUser();
                if (!$user instanceof IUser) {
index a5be30be53f3080b0a2f496e12fe1d9046c5a40c..30cae96b9f027607e782e495e2485f8cd1c1fed5 100644 (file)
@@ -60,14 +60,14 @@ class Hooks {
        protected $defaults;
 
        public function __construct(IActivityManager $activityManager,
-                                                               IGroupManager $groupManager,
-                                                               IUserManager $userManager,
-                                                               IUserSession $userSession,
-                                                               IURLGenerator $urlGenerator,
-                                                               IMailer $mailer,
-                                                               IConfig $config,
-                                                               IFactory $languageFactory,
-                                                               Defaults $defaults) {
+               IGroupManager $groupManager,
+               IUserManager $userManager,
+               IUserSession $userSession,
+               IURLGenerator $urlGenerator,
+               IMailer $mailer,
+               IConfig $config,
+               IFactory $languageFactory,
+               Defaults $defaults) {
                $this->activityManager = $activityManager;
                $this->groupManager = $groupManager;
                $this->userManager = $userManager;
index 587d626ef977888844e6900b04d5888649fc35c2..3b075d55a7e7261a3a2e999a08ff587f06388e1f 100644 (file)
@@ -48,8 +48,8 @@ class AppPasswordCreatedActivityListener implements IEventListener {
        private $logger;
 
        public function __construct(IActivityManager $activityManager,
-                                                               IUserSession $userSession,
-                                                               LoggerInterface $logger) {
+               IUserSession $userSession,
+               LoggerInterface $logger) {
                $this->activityManager = $activityManager;
                $this->userSession = $userSession;
                $this->logger = $logger;
index b91aea4391bd013b7be1feaa1722892721776d1b..69fb9a8e6cf9198593eeeca0dd916651186c49db 100644 (file)
@@ -73,14 +73,14 @@ class NewUserMailHelper {
         * @param string $fromAddress
         */
        public function __construct(Defaults $themingDefaults,
-                                                               IURLGenerator $urlGenerator,
-                                                               IFactory $l10nFactory,
-                                                               IMailer $mailer,
-                                                               ISecureRandom $secureRandom,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config,
-                                                               ICrypto $crypto,
-                                                               $fromAddress) {
+               IURLGenerator $urlGenerator,
+               IFactory $l10nFactory,
+               IMailer $mailer,
+               ISecureRandom $secureRandom,
+               ITimeFactory $timeFactory,
+               IConfig $config,
+               ICrypto $crypto,
+               $fromAddress) {
                $this->themingDefaults = $themingDefaults;
                $this->urlGenerator = $urlGenerator;
                $this->l10nFactory = $l10nFactory;
@@ -170,7 +170,7 @@ class NewUserMailHelper {
         * @throws \Exception If mail could not be sent
         */
        public function sendMail(IUser $user,
-                                                        IEMailTemplate $emailTemplate): void {
+               IEMailTemplate $emailTemplate): void {
 
                // Be sure to never try to send to an empty e-mail
                $email = $user->getEMailAddress();
index c4f3ae3c7c2dd4de393cabb6737d4f6bac986eb4..782f0155510d48b4f22c30da7e1e99a014e41ed4 100644 (file)
@@ -51,8 +51,8 @@ class SubadminMiddleware extends Middleware {
         * @param IL10N $l10n
         */
        public function __construct(ControllerMethodReflector $reflector,
-                                                               $isSubAdmin,
-                                                               IL10N $l10n) {
+               $isSubAdmin,
+               IL10N $l10n) {
                $this->reflector = $reflector;
                $this->isSubAdmin = $isSubAdmin;
                $this->l10n = $l10n;
index 77b9bc025d6f2af235a6149d12032e25eeb78184..609b4e2a52e7a15f7eaa72d41d68a1eef078932c 100644 (file)
@@ -53,9 +53,9 @@ class SectionSearch implements IProvider {
        protected $l;
 
        public function __construct(IManager $settingsManager,
-                                                               IGroupManager $groupManager,
-                                                               IURLGenerator $urlGenerator,
-                                                               IL10N $l) {
+               IGroupManager $groupManager,
+               IURLGenerator $urlGenerator,
+               IL10N $l) {
                $this->settingsManager = $settingsManager;
                $this->groupManager = $groupManager;
                $this->urlGenerator = $urlGenerator;
index f85c74b0480183a3aee75f7a388dd8b8641ccf0c..d9e4f0f6abbb08ee70220429c37572ae840f96fa 100644 (file)
 
 namespace OCA\Settings\Service;
 
-use OCP\AppFramework\Db\DoesNotExistException;
-use OCP\AppFramework\Db\MultipleObjectsReturnedException;
-
 use OC\Settings\AuthorizedGroup;
 use OC\Settings\AuthorizedGroupMapper;
+
+use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\AppFramework\Db\MultipleObjectsReturnedException;
 use OCP\DB\Exception;
 use OCP\IGroup;
 
index 1b41fe14edc56a152eb685847d90466005ec99d5..4a9194274bcf9c803442d8b5c8b469968259d9ad 100644 (file)
@@ -28,10 +28,10 @@ use OCA\Settings\Service\AuthorizedGroupService;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\IGroupManager;
+use OCP\IURLGenerator;
 use OCP\Settings\IDelegatedSettings;
 use OCP\Settings\IManager;
 use OCP\Settings\ISettings;
-use OCP\IURLGenerator;
 
 class Delegation implements ISettings {
        private IManager $settingManager;
index 63d3137a45ca868920dee6077db44dc6fdf43d1d..8d57d95ad06ff5b9382e2b75a24705dbb62f2c3e 100644 (file)
@@ -30,8 +30,8 @@ use OC\Authentication\TwoFactorAuth\MandatoryTwoFactor;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\Encryption\IManager;
-use OCP\IUserManager;
 use OCP\IURLGenerator;
+use OCP\IUserManager;
 use OCP\Settings\ISettings;
 
 class Security implements ISettings {
@@ -42,10 +42,10 @@ class Security implements ISettings {
        private IURLGenerator $urlGenerator;
 
        public function __construct(IManager $manager,
-                                                               IUserManager $userManager,
-                                                               MandatoryTwoFactor $mandatoryTwoFactor,
-                                                               IInitialState $initialState,
-                                                               IURLGenerator $urlGenerator) {
+               IUserManager $userManager,
+               MandatoryTwoFactor $mandatoryTwoFactor,
+               IInitialState $initialState,
+               IURLGenerator $urlGenerator) {
                $this->manager = $manager;
                $this->userManager = $userManager;
                $this->mandatoryTwoFactor = $mandatoryTwoFactor;
index 0d8ef00a1fdc74a002c63a1db783e022370a01e4..9aa8b1ed56d284f5974f13ab9ee487756a91eea1 100644 (file)
@@ -48,12 +48,12 @@ class Server implements IDelegatedSettings {
        private IURLGenerator $urlGenerator;
 
        public function __construct(IDBConnection $connection,
-                                                               IInitialState $initialStateService,
-                                                               ProfileManager $profileManager,
-                                                               ITimeFactory $timeFactory,
-                                                               IURLGenerator $urlGenerator,
-                                                               IConfig $config,
-                                                               IL10N $l) {
+               IInitialState $initialStateService,
+               ProfileManager $profileManager,
+               ITimeFactory $timeFactory,
+               IURLGenerator $urlGenerator,
+               IConfig $config,
+               IL10N $l) {
                $this->connection = $connection;
                $this->initialStateService = $initialStateService;
                $this->profileManager = $profileManager;
index 9fbee6ef62fa53994790b0ab0869fe8cb96371c6..8974d54d45e585942daa024c623c80937fa8ffef 100644 (file)
@@ -36,6 +36,7 @@ declare(strict_types=1);
 
 namespace OCA\Settings\Settings\Personal;
 
+use OC\Profile\ProfileManager;
 use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCP\Accounts\IAccount;
 use OCP\Accounts\IAccountManager;
@@ -51,7 +52,6 @@ use OCP\IL10N;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\L10N\IFactory;
-use OC\Profile\ProfileManager;
 use OCP\Notification\IManager;
 use OCP\Settings\ISettings;
 
index 4963f40347d2c20681b394b16e1a2592437f27a0..e713344ce88cebd9d03b1c880ce72e399784f0af 100644 (file)
@@ -25,17 +25,17 @@ declare(strict_types=1);
  */
 namespace OCA\Settings\Settings\Personal\Security;
 
-use OCP\AppFramework\Services\IInitialState;
-use OCP\IUserSession;
-use function array_map;
 use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Token\INamedToken;
 use OC\Authentication\Token\IProvider as IAuthTokenProvider;
 use OC\Authentication\Token\IToken;
 use OCP\AppFramework\Http\TemplateResponse;
+use OCP\AppFramework\Services\IInitialState;
 use OCP\ISession;
+use OCP\IUserSession;
 use OCP\Session\Exceptions\SessionNotAvailableException;
 use OCP\Settings\ISettings;
+use function array_map;
 
 class Authtokens implements ISettings {
 
@@ -55,10 +55,10 @@ class Authtokens implements ISettings {
        private $userSession;
 
        public function __construct(IAuthTokenProvider $tokenProvider,
-                                                               ISession $session,
-                                                               IUserSession $userSession,
-                                                               IInitialState $initialState,
-                                                               ?string $UserId) {
+               ISession $session,
+               IUserSession $userSession,
+               IInitialState $initialState,
+               ?string $UserId) {
                $this->tokenProvider = $tokenProvider;
                $this->session = $session;
                $this->initialState = $initialState;
index 252311b87ab67661298c618c0eba4201ea094b81..366294af4bc6700d91a964aeb301ac9f4fd2357b 100644 (file)
@@ -41,7 +41,7 @@ class Password implements ISettings {
        private $uid;
 
        public function __construct(IUserManager $userManager,
-                                                               ?string $UserId) {
+               ?string $UserId) {
                $this->userManager = $userManager;
                $this->uid = $UserId;
        }
index c356442a6280e08b65ec13e33210bfcbe4a3415d..803ea106e7cdacdc579449797986317ce6058035 100644 (file)
@@ -28,17 +28,17 @@ namespace OCA\Settings\Settings\Personal\Security;
 
 use Exception;
 use OC\Authentication\TwoFactorAuth\MandatoryTwoFactor;
-use OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider;
-use function array_filter;
-use function array_map;
-use function is_null;
 use OC\Authentication\TwoFactorAuth\ProviderLoader;
+use OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\Authentication\TwoFactorAuth\IProvider;
 use OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings;
 use OCP\IConfig;
 use OCP\IUserSession;
 use OCP\Settings\ISettings;
+use function array_filter;
+use function array_map;
+use function is_null;
 
 class TwoFactor implements ISettings {
 
@@ -58,10 +58,10 @@ class TwoFactor implements ISettings {
        private $config;
 
        public function __construct(ProviderLoader $providerLoader,
-                                                               MandatoryTwoFactor $mandatoryTwoFactor,
-                                                               IUserSession $userSession,
-                                                               IConfig $config,
-                                                               ?string $UserId) {
+               MandatoryTwoFactor $mandatoryTwoFactor,
+               IUserSession $userSession,
+               IConfig $config,
+               ?string $UserId) {
                $this->providerLoader = $providerLoader;
                $this->mandatoryTwoFactor = $mandatoryTwoFactor;
                $this->userSession = $userSession;
index 38241c9a41c238dbcbd9d7f27472914ee14392ad..95102e5d6c0495bbe6078cc65186491522935272 100644 (file)
@@ -47,9 +47,9 @@ class WebAuthn implements ISettings {
        private $manager;
 
        public function __construct(PublicKeyCredentialMapper $mapper,
-                                                               string $UserId,
-                                                               IInitialStateService $initialStateService,
-                                                               Manager $manager) {
+               string $UserId,
+               IInitialStateService $initialStateService,
+               Manager $manager) {
                $this->mapper = $mapper;
                $this->uid = $UserId;
                $this->initialStateService = $initialStateService;
index 3cb9a3a972fb2f65445728afb84059c8df51eaf4..8d6b07431270f0373b7df0bcb63b2d2acbfbf6c3 100644 (file)
@@ -57,11 +57,11 @@ class ServerDevNotice implements ISettings {
        private $urlGenerator;
 
        public function __construct(IRegistry $registry,
-                                                               IEventDispatcher $eventDispatcher,
-                                                               IRootFolder $rootFolder,
-                                                               IUserSession $userSession,
-                                                               IInitialState $initialState,
-                                                               IURLGenerator $urlGenerator) {
+               IEventDispatcher $eventDispatcher,
+               IRootFolder $rootFolder,
+               IUserSession $userSession,
+               IInitialState $initialState,
+               IURLGenerator $urlGenerator) {
                $this->registry = $registry;
                $this->eventDispatcher = $eventDispatcher;
                $this->rootFolder = $rootFolder;
index 8bc3acd6e71884344a2b67faa5e5ced7bc878319..649178c15d1905303bf568c217f63969f0660935 100644 (file)
@@ -6,8 +6,10 @@
                <ul>
                        <li>
                                <a class="icon-user <?php if ($_['mode'] === 'user') {
-               p('active');
-       } ?>" <?php if ($_['mode'] === 'user') { print_unescaped('aria-current="page"'); } ?>
+                                       p('active');
+                               } ?>" <?php if ($_['mode'] === 'user') {
+                                       print_unescaped('aria-current="page"');
+                               } ?>
                                        href="<?php print_unescaped($_['urlUserDocs']); ?>">
                                        <span class="help-list__text">
                                                <?php p($l->t('User documentation')); ?>
                <?php if ($_['admin']) { ?>
                        <li>
                                <a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
-               p('active');
-       } ?>" <?php if ($_['mode'] === 'admin') { print_unescaped('aria-current="page"'); } ?>
+                                       p('active');
+                               } ?>" <?php if ($_['mode'] === 'admin') {
+                                       print_unescaped('aria-current="page"');
+                               } ?>
                                        href="<?php print_unescaped($_['urlAdminDocs']); ?>">
                                        <span class="help-list__text">
                                                <?php p($l->t('Administrator documentation')); ?>
index ac6b91e8d76077869b1896ac24ebf3e28c2592c2..a9dd6af5c0f782f0d2db1535feb9c3e30b308584 100644 (file)
@@ -30,4 +30,4 @@
        if (isset($form['form'])) {?>
                <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
        <?php }
-} ?>
+       } ?>
index c6548d88737b0055d4d2e6d7d7b0bbf4769d8b73..7b88e99736954053abe5e3d5b03ebf074d91aaf5 100644 (file)
@@ -1,25 +1,25 @@
 <?php
 /**
      * @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de>
      *
      * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
      *
      * @license GNU AGPL version 3 or any later version
      *
      * This program is free software: you can redistribute it and/or modify
      * it under the terms of the GNU Affero General Public License as
      * published by the Free Software Foundation, either version 3 of the
      * License, or (at your option) any later version.
      *
      * This program is distributed in the hope that it will be useful,
      * but WITHOUT ANY WARRANTY; without even the implied warranty of
      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      * GNU Affero General Public License for more details.
      *
      * You should have received a copy of the GNU Affero General Public License
      * along with this program.  If not, see <http://www.gnu.org/licenses/>.
      *
      */
+ * @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de>
+ *
+ * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
 
 /** @var \OCP\IL10N $l */
 /** @var array $_ */
@@ -77,14 +77,14 @@ $mail_sendmailmode = [
                <p>
                        <label id="mail_smtpsecure_label" for="mail_smtpsecure"
                                <?php if ($_['mail_smtpmode'] !== 'smtp') {
-                                               print_unescaped(' class="hidden"');
-                                       } ?>>
+                                       print_unescaped(' class="hidden"');
+                               } ?>>
                                <?php p($l->t('Encryption')); ?>
                        </label>
                        <select name="mail_smtpsecure" id="mail_smtpsecure"
                                <?php if ($_['mail_smtpmode'] !== 'smtp') {
-                                               print_unescaped(' class="hidden"');
-                                       } ?>>
+                                       print_unescaped(' class="hidden"');
+                               } ?>>
                                <?php foreach ($mail_smtpsecure as $secure => $name):
                                        $selected = '';
                                        if ($secure == $_['mail_smtpsecure']):
@@ -143,8 +143,8 @@ $mail_sendmailmode = [
        </form>
        <form class="mail_settings" id="mail_credentials_settings">
                <p id="mail_credentials" <?php if (!$_['mail_smtpauth'] || $_['mail_smtpmode'] !== 'smtp') {
-                                               print_unescaped(' class="hidden"');
-                                       } ?>>
+                       print_unescaped(' class="hidden"');
+               } ?>>
                        <label for="mail_smtpname"><?php p($l->t('Credentials')); ?></label>
                        <input type="text" name="mail_smtpname" id="mail_smtpname" placeholder="<?php p($l->t('SMTP Username'))?>"
                                   value="<?php p($_['mail_smtpname']) ?>" />
index 7d0ea25872a35fc99b6e838d795af6d7face6cd2..db066fc6df31fb1e67787f6a8a7bc880aef17155 100644 (file)
        </div>
 
        <div id="postsetupchecks" data-check-wellknown="<?php if ($_['checkForWorkingWellKnownSetup']) {
-       p('true');
-} else {
-       p('false');
-} ?>">
+               p('true');
+       } else {
+               p('false');
+       } ?>">
                <ul class="errors hidden"></ul>
                <ul class="warnings hidden"></ul>
                <ul class="info hidden"></ul>
index 63ebc6f44a1cc0fd7e2a3828df267426b0b8bfc4..59e3098e3de3063ea2c1cb06a4092d9b4441a3ab 100644 (file)
@@ -21,4 +21,4 @@
  *
  */
 
-       # used for Personal/Additional settings as fallback for legacy settings
+# used for Personal/Additional settings as fallback for legacy settings
index bd562014bea22b50299e5b930d222afbc9533d37..b0889746173ec99e7885197137b8ccb9bf6342b2 100644 (file)
@@ -53,7 +53,7 @@ script('files', 'jquery.fileupload');
                                        <?php
                                }
                        }
-                       ?>
+?>
                </ul>
        </nav>
 
@@ -80,7 +80,7 @@ script('files', 'jquery.fileupload');
                                        <?php
                                }
                        }
-                       ?>
+?>
                </ul>
        </nav>
 </div>
index 4244bf387a0d3c925bf784bf4114982d14decf2d..ce32639c5984f6fe961044d1effdd254fc94dfe4 100644 (file)
@@ -59,7 +59,7 @@
                                $l->t('Subscribe to our newsletter'),
 
                        ],
-'{facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose}
+                       '{facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose}
 {twitteropen}<img width="50" src="{twitterimage}" title="{twittertext}" alt="{twittertext}">{linkclose}
 {mastodonopen}<img width="50" src="{mastodonimage}" title="{mastodontext}" alt="{mastodontext}">{linkclose}
 {rssopen}<img class="img-circle" width="50" src="{rssimage}" title="{rsstext}" alt="{rsstext}">{linkclose}
index 3fa63bd6d28789df411ed5d6621171f9f55c3c4f..17d1e6e707445112676c964f4c14ebef370a3735 100644 (file)
@@ -38,16 +38,16 @@ declare(strict_types=1);
 
                        /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */
                        $provider = $data['provider'];
-                       //Handle 2FA provider icons and theme
-                       if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
-                               $icon = $provider->getDarkIcon();
-                               //fallback icon if the 2factor provider doesn't provide an icon.
-                       } else {
-                               $icon = image_path('core', 'actions/password.svg');
-                       }
-                       /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */
-                       $settings = $data['settings'];
-                       ?>
+               //Handle 2FA provider icons and theme
+               if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
+                       $icon = $provider->getDarkIcon();
+               //fallback icon if the 2factor provider doesn't provide an icon.
+               } else {
+                       $icon = image_path('core', 'actions/password.svg');
+               }
+               /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */
+               $settings = $data['settings'];
+               ?>
                        <h3>
                                <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt="">
                                <?php p($provider->getDisplayName()) ?>
index db6043030d3cb1275dacb951cf9471a4c8894c4d..bfa89fbc0b43f1809f4bca645d19672190f2af9f 100644 (file)
@@ -35,10 +35,10 @@ use OCP\AppFramework\Http;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IRequest;
+use OCP\IURLGenerator;
 use OCP\IUserSession;
 use OCP\Mail\IEMailTemplate;
 use OCP\Mail\IMailer;
-use OCP\IURLGenerator;
 
 /**
  * @package Tests\Settings\Controller
index 6243b85fb2f52e8617e46fd42366bf44dd9d190f..eddb290212ab7e28ef8167501bcdfbd71cb6883e 100644 (file)
@@ -636,8 +636,8 @@ class UsersControllerTest extends \Test\TestCase {
         * @param ?string $oldDisplayName
         */
        public function testSaveUserSettings($data,
-                                                                                $oldEmailAddress,
-                                                                                $oldDisplayName
+               $oldEmailAddress,
+               $oldDisplayName
        ) {
                $controller = $this->getController();
                $user = $this->createMock(IUser::class);
@@ -948,9 +948,9 @@ class UsersControllerTest extends \Test\TestCase {
         * @param bool $expected
         */
        public function testCanAdminChangeUserPasswords($encryptionEnabled,
-                                                                                                       $encryptionModuleLoaded,
-                                                                                                       $masterKeyEnabled,
-                                                                                                       $expected) {
+               $encryptionModuleLoaded,
+               $masterKeyEnabled,
+               $expected) {
                $controller = $this->getController();
 
                $this->encryptionManager->expects($this->any())
index 52d113c04fe64b76337feb145ed0705b2cf13d87..1e261399d19281d6596df0f8c132d68d3bb86917 100644 (file)
@@ -32,8 +32,8 @@ use OC\Encryption\Manager;
 use OCA\Settings\Settings\Admin\Security;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
-use OCP\IUserManager;
 use OCP\IURLGenerator;
+use OCP\IUserManager;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
 
index 74d9a5d53fd8432072b7f01d1f44a7cc1ead51d9..c070dbe3db1491cc4bd11daabbdd9685f622f81e 100644 (file)
@@ -38,8 +38,8 @@ use OCP\AppFramework\Services\IInitialState;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\IConfig;
 use OCP\IDBConnection;
-use OCP\IUrlGenerator;
 use OCP\IL10N;
+use OCP\IUrlGenerator;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
 
index 8e52a85c538f865bee62e9d54f3dfcfbb3e97886..f8e34a774237e3bb6401a4654e145167de8f5d44 100644 (file)
@@ -28,8 +28,8 @@ namespace OCA\Settings\Tests;
 use OCA\Settings\SetupChecks\PhpDefaultCharset;
 use OCP\IL10N;
 use OCP\SetupCheck\SetupResult;
-use Test\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
+use Test\TestCase;
 
 class PhpDefaultCharsetTest extends TestCase {
        /** @var IL10N|MockObject */
index 2fe8bef653e3f49c50f7d1ef7c2a07980cdf34bd..e8c9169a5443c34a7ea3d8b6027ed8003ee7de2c 100644 (file)
@@ -44,8 +44,8 @@ class Capabilities implements ICapability {
        private $appManager;
 
        public function __construct(IManager $manager,
-                                                               SettingsManager $settingsManager,
-                                                               IAppManager $appManager) {
+               SettingsManager $settingsManager,
+               IAppManager $appManager) {
                $this->manager = $manager;
                $this->settingsManager = $settingsManager;
                $this->appManager = $appManager;
index ab897f3037af18bcdc23420bee0e234a7e6ed4f2..a30198d616fc824c36a1538e2089063f42151396 100644 (file)
@@ -76,14 +76,14 @@ class Listener {
         * @param IShareHelper $shareHelper
         */
        public function __construct(IGroupManager $groupManager,
-                                                               IManager $activityManager,
-                                                               IUserSession $session,
-                                                               IConfig $config,
-                                                               ISystemTagManager $tagManager,
-                                                               IAppManager $appManager,
-                                                               IMountProviderCollection $mountCollection,
-                                                               IRootFolder $rootFolder,
-                                                               IShareHelper $shareHelper) {
+               IManager $activityManager,
+               IUserSession $session,
+               IConfig $config,
+               ISystemTagManager $tagManager,
+               IAppManager $appManager,
+               IMountProviderCollection $mountCollection,
+               IRootFolder $rootFolder,
+               IShareHelper $shareHelper) {
                $this->groupManager = $groupManager;
                $this->activityManager = $activityManager;
                $this->session = $session;
index 7484438092c38de38097aace8bbc0b218bf8d4da..640adb2dbe27333d80392c32c78b961ee173dffd 100644 (file)
@@ -26,9 +26,9 @@ declare(strict_types=1);
 namespace OCA\SystemTags\AppInfo;
 
 use OCA\Files\Event\LoadAdditionalScriptsEvent;
-use OCA\SystemTags\Search\TagSearchProvider;
 use OCA\SystemTags\Activity\Listener;
 use OCA\SystemTags\Capabilities;
+use OCA\SystemTags\Search\TagSearchProvider;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
index 5da70a17758dc2c63473b737f6364ce982f293b1..fb232a83ca0c9093abfb3cde331a01b0ceb9076f 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 2ff5cc984abd99a213df0b36aefe7cf1c84fefff..8fb2475999f6a402d9fcd016204d42bddb5494b8 100644 (file)
@@ -30,18 +30,14 @@ declare(strict_types=1);
  */
 namespace OCA\SystemTags\Search;
 
-use OC\Files\Search\SearchBinaryOperator;
 use OC\Files\Search\SearchComparison;
 use OC\Files\Search\SearchOrder;
 use OC\Files\Search\SearchQuery;
-use OCP\SystemTag\ISystemTag;
-use OCP\SystemTag\ISystemTagManager;
-use OCP\SystemTag\ISystemTagObjectMapper;
 use OCP\Files\FileInfo;
 use OCP\Files\IMimeTypeDetector;
 use OCP\Files\IRootFolder;
-use OCP\Files\Search\ISearchComparison;
 use OCP\Files\Node;
+use OCP\Files\Search\ISearchComparison;
 use OCP\Files\Search\ISearchOrder;
 use OCP\IL10N;
 use OCP\IURLGenerator;
@@ -50,6 +46,9 @@ use OCP\Search\IProvider;
 use OCP\Search\ISearchQuery;
 use OCP\Search\SearchResult;
 use OCP\Search\SearchResultEntry;
+use OCP\SystemTag\ISystemTag;
+use OCP\SystemTag\ISystemTagManager;
+use OCP\SystemTag\ISystemTagObjectMapper;
 use RecursiveArrayIterator;
 use RecursiveIteratorIterator;
 
@@ -131,13 +130,13 @@ class TagSearchProvider implements IProvider {
 
                // do search
                $searchResults = $userFolder->search($fileQuery);
-               $resultIds = array_map(function(Node $node) {
+               $resultIds = array_map(function (Node $node) {
                        return $node->getId();
                }, $searchResults);
                $matchedTags = $this->objectMapper->getTagIdsForObjects($resultIds, 'files');
 
                // prepare direct tag results
-               $tagResults = array_map(function(ISystemTag $tag) {
+               $tagResults = array_map(function (ISystemTag $tag) {
                        $thumbnailUrl = '';
                        $link = $this->urlGenerator->linkToRoute(
                                'files.view.index'
@@ -195,14 +194,14 @@ class TagSearchProvider implements IProvider {
                 * @var ISystemTag[]
                 */
                $tags = $this->tagManager->getTagsByIds($tagInfo);
-               $tagNames = array_map(function($tag) {
+               $tagNames = array_map(function ($tag) {
                        return $tag->getName();
-               }, array_filter($tags, function($tag) {
+               }, array_filter($tags, function ($tag) {
                        return $tag->isUserVisible();
                }));
 
                // show the tag that you have searched for first
-               usort($tagNames, function($tagName) use($query) {
+               usort($tagNames, function ($tagName) use ($query) {
                        return strpos($tagName, $query->getTerm()) !== false? -1 :  1;
                });
 
index a92caeb245a181f863ede07108b3a00db787fcc3..6e9421a030ec922d3211190e44048e623b149255 100644 (file)
@@ -26,8 +26,8 @@ namespace OCA\Testing\AppInfo;
 
 use OCA\Testing\AlternativeHomeUserBackend;
 use OCA\Testing\Provider\FakeText2ImageProvider;
-use OCA\Testing\Provider\FakeTranslationProvider;
 use OCA\Testing\Provider\FakeTextProcessingProvider;
+use OCA\Testing\Provider\FakeTranslationProvider;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
index 76f1e1a1ee1ecf7b8734ef9933640e8995d45f8a..bad4be7b4a1cb44f1eb1458c7acc4e5752d03d6f 100644 (file)
@@ -38,8 +38,8 @@ class ConfigController extends OCSController {
         * @param IConfig $config
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               IConfig $config) {
+               IRequest $request,
+               IConfig $config) {
                parent::__construct($appName, $request);
                $this->config = $config;
        }
index c01ad218c84f61794c90c131281bda8be5e00dc8..0c084b4f9cd28ef0f79282bb11a4fd07a3aa116f 100644 (file)
@@ -64,12 +64,12 @@ class LockingController extends OCSController {
         * @param IRootFolder $rootFolder
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               ILockingProvider $lockingProvider,
-                                                               FakeDBLockingProvider $fakeDBLockingProvider,
-                                                               IDBConnection $connection,
-                                                               IConfig $config,
-                                                               IRootFolder $rootFolder) {
+               IRequest $request,
+               ILockingProvider $lockingProvider,
+               FakeDBLockingProvider $fakeDBLockingProvider,
+               IDBConnection $connection,
+               IConfig $config,
+               IRootFolder $rootFolder) {
                parent::__construct($appName, $request);
 
                $this->lockingProvider = $lockingProvider;
index 2556ba29a642794ced6e38d7271a563ba94ceaa3..c5ebbc163718e6430dcfb0b90229a42a0d79fe63 100644 (file)
  */
 namespace OCA\Testing\Locking;
 
+use OC\Lock\DBLockingProvider;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\IDBConnection;
-use Psr\Log\LoggerInterface;
-use OC\Lock\DBLockingProvider;
 
 class FakeDBLockingProvider extends DBLockingProvider {
        // Lock for 10 hours just to be sure
index 9a1a224ed785251eb7eaf0182172d1f91da85c8f..e19665ffb31d29738b322ecc46206f581049b06a 100644 (file)
@@ -27,7 +27,6 @@
  */
 namespace OCA\Theming;
 
-use Exception;
 use OCA\Theming\AppInfo\Application;
 use OCA\Theming\Service\BackgroundService;
 use OCP\Capabilities\IPublicCapability;
@@ -115,10 +114,10 @@ class Capabilities implements IPublicCapability {
                        if ($backgroundImage === BackgroundService::BACKGROUND_CUSTOM) {
                                $backgroundPlain = false;
                                $background = $this->url->linkToRouteAbsolute('theming.userTheme.getBackground');
-                       } else if (isset(BackgroundService::SHIPPED_BACKGROUNDS[$backgroundImage])) {
+                       } elseif (isset(BackgroundService::SHIPPED_BACKGROUNDS[$backgroundImage])) {
                                $backgroundPlain = false;
                                $background = $this->url->linkTo(Application::APP_ID, "img/background/$backgroundImage");
-                       } else if ($backgroundImage !== BackgroundService::BACKGROUND_DEFAULT) {
+                       } elseif ($backgroundImage !== BackgroundService::BACKGROUND_DEFAULT) {
                                $backgroundPlain = true;
                                $background = $color;
                        }
index 86b45fbbc032e68c763cb3bf75b1ed4cd4b2ea09..6ad67c4667a0d0b0861d659432b24ef85585e5d6 100644 (file)
@@ -100,7 +100,7 @@ class IconController extends Controller {
                        if ($icon === false || $icon === '') {
                                return new NotFoundResponse();
                        }
-                       $iconFileName = $this->imageManager->setCachedImage('icon-' . $app . '-' . $color . str_replace('/', '_', $image),  $icon);
+                       $iconFileName = $this->imageManager->setCachedImage('icon-' . $app . '-' . $color . str_replace('/', '_', $image), $icon);
                }
                $response = new FileDisplayResponse($iconFileName, Http::STATUS_OK, ['Content-Type' => 'image/svg+xml']);
                $response->cacheFor(86400, false, true);
index e8f6ec6289ba9ba5aa6cb79ee205ce86d613a683..b4bf6d1c3cd121952078c8a00f99571e0567449d 100644 (file)
@@ -68,7 +68,7 @@ use ScssPhp\ScssPhp\Compiler;
  * @package OCA\Theming\Controller
  */
 class ThemingController extends Controller {
-       const VALID_UPLOAD_KEYS = ['header', 'logo', 'logoheader', 'background', 'favicon'];
+       public const VALID_UPLOAD_KEYS = ['header', 'logo', 'logoheader', 'background', 'favicon'];
 
        private ThemingDefaults $themingDefaults;
        private IL10N $l10n;
@@ -414,7 +414,7 @@ class ThemingController extends Controller {
                }
 
                $theme = $themes[$themeId];
-               $customCss  = $theme->getCustomCss();
+               $customCss = $theme->getCustomCss();
 
                // Generate variables
                $variables = '';
@@ -429,7 +429,8 @@ class ThemingController extends Controller {
                        // If not set, we'll rely on the body class
                        $compiler = new Compiler();
                        $compiledCss = $compiler->compileString("[data-theme-$themeId] { $variables $customCss }");
-                       $css = $compiledCss->getCss();;
+                       $css = $compiledCss->getCss();
+                       ;
                }
 
                try {
@@ -486,13 +487,13 @@ class ThemingController extends Controller {
                                [
                                        [
                                                'src' => $this->urlGenerator->linkToRoute('theming.Icon.getTouchIcon',
-                                                               ['app' => $app]) . '?v=' . $cacheBusterValue,
+                                                       ['app' => $app]) . '?v=' . $cacheBusterValue,
                                                'type' => 'image/png',
                                                'sizes' => '512x512'
                                        ],
                                        [
                                                'src' => $this->urlGenerator->linkToRoute('theming.Icon.getFavicon',
-                                                               ['app' => $app]) . '?v=' . $cacheBusterValue,
+                                                       ['app' => $app]) . '?v=' . $cacheBusterValue,
                                                'type' => 'image/svg+xml',
                                                'sizes' => '16x16'
                                        ]
index acd930fea8353670ca79de5e04e645c8d497649b..1ccce652908844c981cdfb33020b1d69c1327c00 100644 (file)
@@ -64,12 +64,12 @@ class UserThemeController extends OCSController {
        private BackgroundService $backgroundService;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IConfig $config,
-                                                               IUserSession $userSession,
-                                                               ThemesService $themesService,
-                                                               ThemingDefaults $themingDefaults,
-                                                               BackgroundService $backgroundService) {
+               IRequest $request,
+               IConfig $config,
+               IUserSession $userSession,
+               ThemesService $themesService,
+               ThemingDefaults $themingDefaults,
+               BackgroundService $backgroundService) {
                parent::__construct($appName, $request);
                $this->config = $config;
                $this->userSession = $userSession;
index a5c9cdf26a6231c762abc2726b32131a81105310..3c3b081aec58be18a7eb7a6d1123c2230888b852 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>
@@ -30,8 +31,8 @@ namespace OCA\Theming;
  */
 interface ITheme {
 
-       const TYPE_THEME = 1;
-       const TYPE_FONT = 2;
+       public const TYPE_THEME = 1;
+       public const TYPE_FONT = 2;
 
        /**
         * Unique theme id
index fb6909089b5693019eaa0a67eab354451e4e1295..87a3de1024ca209f45a8f8addd685afe7fc11813 100644 (file)
@@ -73,19 +73,19 @@ class IconBuilder {
                        $icon->setImageFormat("png32");
 
                        $clone = clone $icon;
-                       $clone->scaleImage(16,0);
+                       $clone->scaleImage(16, 0);
                        $favicon->addImage($clone);
 
                        $clone = clone $icon;
-                       $clone->scaleImage(32,0);
+                       $clone->scaleImage(32, 0);
                        $favicon->addImage($clone);
 
                        $clone = clone $icon;
-                       $clone->scaleImage(64,0);
+                       $clone->scaleImage(64, 0);
                        $favicon->addImage($clone);
 
                        $clone = clone $icon;
-                       $clone->scaleImage(128,0);
+                       $clone->scaleImage(128, 0);
                        $favicon->addImage($clone);
 
                        $data = $favicon->getImagesBlob();
index 380527ee024612ae46922fb7c6fba2424fa7aa7e..ccc701f74bc8a6b24abf29086db48c41eb4ce0a1 100644 (file)
@@ -96,23 +96,23 @@ class BeforeTemplateRenderedListener implements IEventListener {
                                $this->config->getUserValue($userId, Application::APP_ID, 'background_color', BackgroundService::DEFAULT_COLOR),
                        );
 
-                       /** 
+                       /**
                         * Admin background. `backgroundColor` if disabled,
                         * mime type if defined and empty by default
                         */
                        $this->initialState->provideInitialState(
                                'themingDefaultBackground',
-                                $this->config->getAppValue('theming', 'backgroundMime', ''),
+                               $this->config->getAppValue('theming', 'backgroundMime', ''),
                        );
                        $this->initialState->provideInitialState(
                                'defaultShippedBackground',
-                                BackgroundService::DEFAULT_BACKGROUND_IMAGE,
+                               BackgroundService::DEFAULT_BACKGROUND_IMAGE,
                        );
 
                        /** List of all shipped backgrounds */
                        $this->initialState->provideInitialState(
                                'shippedBackgrounds',
-                                BackgroundService::SHIPPED_BACKGROUNDS,
+                               BackgroundService::SHIPPED_BACKGROUNDS,
                        );
                }
 
index 285c2f4129535b35ae7d3a43e0c9551b9ef221c5..ed5ffb7dab1a1a810158bc3dac02d2419af58e83 100644 (file)
@@ -28,7 +28,6 @@ namespace OCA\Theming\Migration;
 
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
-use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\IL10N;
 use OCP\Migration\IOutput;
 use OCP\Migration\IRepairStep;
@@ -61,7 +60,7 @@ class MigrateAdminConfig implements IRepairStep {
                        $images = $this->appData->getFolder('images');
                        $output->info('Migrating administration images');
 
-                               // get or init the global folder if any
+                       // get or init the global folder if any
                        try {
                                $global = $this->appData->getFolder('global');
                        } catch (NotFoundException $e) {
index 0f8d982dfa70fc85c1ad2a53a93b2f0187602a0e..e8239bbcdb1d870b7ef02ed6086e20e3f052ddac 100644 (file)
@@ -52,12 +52,12 @@ class MigrateUserConfig implements IRepairStep {
         * MigrateUserConfig constructor.
         */
        public function __construct(IConfig $config,
-                                                               IUserManager $userManager,
-                                                               ThemesService $themesService,
-                                                               DarkTheme $darkTheme,
-                                                               DarkHighContrastTheme $darkHighContrastTheme,
-                                                               HighContrastTheme $highContrastTheme,
-                                                               DyslexiaFont $dyslexiaFont) {
+               IUserManager $userManager,
+               ThemesService $themesService,
+               DarkTheme $darkTheme,
+               DarkHighContrastTheme $darkHighContrastTheme,
+               HighContrastTheme $highContrastTheme,
+               DyslexiaFont $dyslexiaFont) {
                $this->config = $config;
                $this->userManager = $userManager;
                $this->themesService = $themesService;
@@ -98,9 +98,9 @@ class MigrateUserConfig implements IRepairStep {
                        if ($highcontrast || $theme) {
                                if ($theme === 'dark' && $highcontrast === 'highcontrast') {
                                        $config[] = $this->darkHighContrastTheme->getId();
-                               } else if ($theme === 'dark') {
+                               } elseif ($theme === 'dark') {
                                        $config[] = $this->darkTheme->getId();
-                               } else if ($highcontrast === 'highcontrast') {
+                               } elseif ($highcontrast === 'highcontrast') {
                                        $config[] = $this->highContrastTheme->getId();
                                }
                        }
index ddd8615e45502675e05b812903271b2d0304facd..f1b0d09790ad1f5e3475eff40e6272a469db9d83 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 8e382da3152924e302d6dd9499bbb61deab56e10..b349af73a57f3d9fbd7bb49da19c02c7a7971d6f 100644 (file)
@@ -184,10 +184,10 @@ class BackgroundService {
        private ThemingDefaults $themingDefaults;
 
        public function __construct(IRootFolder $rootFolder,
-                                                               IAppData $appData,
-                                                               IConfig $config,
-                                                               ?string $userId,
-                                                               ThemingDefaults $themingDefaults) {
+               IAppData $appData,
+               IConfig $config,
+               ?string $userId,
+               ThemingDefaults $themingDefaults) {
                if ($userId === null) {
                        return;
                }
index 90acd74b86853777bf923e0093880980e9d43e9e..5dc7b3fd632fc959fea3ae572bde43522141759a 100644 (file)
@@ -26,7 +26,6 @@ declare(strict_types=1);
  */
 namespace OCA\Theming\Service;
 
-use OCA\Theming\AppInfo\Application;
 use OCA\Theming\ThemingDefaults;
 use OCA\Theming\Util;
 use OCP\IConfig;
index 8e55f614146183501c6fe5dae9f48d10dd372669..c7560bdf8f8e218a83d21462cd5a6e25d5a23774 100644 (file)
@@ -22,7 +22,6 @@
  */
 namespace OCA\Theming\Service;
 
-use OCA\Theming\AppInfo\Application;
 use OCA\Theming\Themes\DefaultTheme;
 use OCA\Theming\Util;
 use OCP\IConfig;
@@ -39,11 +38,11 @@ class ThemeInjectionService {
        private ?string $userId;
 
        public function __construct(IURLGenerator $urlGenerator,
-                                                               ThemesService $themesService,
-                                                               DefaultTheme $defaultTheme,
-                                                               Util $util,
-                                                               IConfig $config,
-                                                               IUserSession $userSession) {
+               ThemesService $themesService,
+               DefaultTheme $defaultTheme,
+               Util $util,
+               IConfig $config,
+               IUserSession $userSession) {
                $this->urlGenerator = $urlGenerator;
                $this->themesService = $themesService;
                $this->defaultTheme = $defaultTheme;
@@ -59,7 +58,7 @@ class ThemeInjectionService {
        public function injectHeaders() {
                $themes = $this->themesService->getThemes();
                $defaultTheme = $themes[$this->defaultTheme->getId()];
-               $mediaThemes = array_filter($themes, function($theme) {
+               $mediaThemes = array_filter($themes, function ($theme) {
                        // Check if the theme provides a media query
                        return (bool)$theme->getMediaQuery();
                });
index eabd903734a936f002b4c88266a0e5d3bd16c783..0d252e964312fd9754eee0291a5eada01bfdfdf9 100644 (file)
@@ -42,30 +42,30 @@ class ThemesService {
        private array $themesProviders;
 
        public function __construct(IUserSession $userSession,
-                                                               IConfig $config,
-                                                               DefaultTheme $defaultTheme,
-                                                               LightTheme $lightTheme,
-                                                               DarkTheme $darkTheme,
-                                                               HighContrastTheme $highContrastTheme,
-                                                               DarkHighContrastTheme $darkHighContrastTheme,
-                                                               DyslexiaFont $dyslexiaFont) {
+               IConfig $config,
+               DefaultTheme $defaultTheme,
+               LightTheme $lightTheme,
+               DarkTheme $darkTheme,
+               HighContrastTheme $highContrastTheme,
+               DarkHighContrastTheme $darkHighContrastTheme,
+               DyslexiaFont $dyslexiaFont) {
                $this->userSession = $userSession;
                $this->config = $config;
 
                // Register themes
                $this->themesProviders = [
-                       $defaultTheme->getId()                  => $defaultTheme,
-                       $lightTheme->getId()                    => $lightTheme,
-                       $darkTheme->getId()                             => $darkTheme,
-                       $highContrastTheme->getId()             => $highContrastTheme,
-                       $darkHighContrastTheme->getId() => $darkHighContrastTheme,
-                       $dyslexiaFont->getId()                  => $dyslexiaFont,
+                       $defaultTheme->getId() => $defaultTheme,
+                       $lightTheme->getId() => $lightTheme,
+                       $darkTheme->getId() => $darkTheme,
+                       $highContrastTheme->getId() => $highContrastTheme,
+                       $darkHighContrastTheme->getId() => $darkHighContrastTheme,
+                       $dyslexiaFont->getId() => $dyslexiaFont,
                ];
        }
 
        /**
         * Get the list of all registered themes
-        * 
+        *
         * @return ITheme[]
         */
        public function getThemes(): array {
@@ -74,7 +74,7 @@ class ThemesService {
 
        /**
         * Enable a theme for the logged-in user
-        * 
+        *
         * @param ITheme $theme the theme to enable
         * @return string[] the enabled themes
         */
@@ -87,18 +87,18 @@ class ThemesService {
                }
 
                /** @var ITheme[] */
-               $themes = array_filter(array_map(function($themeId) {
+               $themes = array_filter(array_map(function ($themeId) {
                        return $this->getThemes()[$themeId];
                }, $themesIds));
 
                // Filtering all themes with the same type
-               $filteredThemes = array_filter($themes, function(ITheme $t) use ($theme) {
+               $filteredThemes = array_filter($themes, function (ITheme $t) use ($theme) {
                        return $theme->getType() === $t->getType();
                });
 
                // Retrieve IDs only
                /** @var string[] */
-               $filteredThemesIds = array_map(function(ITheme $t) {
+               $filteredThemesIds = array_map(function (ITheme $t) {
                        return $t->getId();
                }, array_values($filteredThemes));
 
@@ -110,7 +110,7 @@ class ThemesService {
 
        /**
         * Disable a theme for the logged-in user
-        * 
+        *
         * @param ITheme $theme the theme to disable
         * @return string[] the enabled themes
         */
@@ -130,7 +130,7 @@ class ThemesService {
        /**
         * Check whether a theme is enabled or not
         * for the logged-in user
-        * 
+        *
         * @return bool
         */
        public function isEnabled(ITheme $theme): bool {
@@ -146,7 +146,7 @@ class ThemesService {
        /**
         * Get the list of all enabled themes IDs
         * for the logged-in user
-        * 
+        *
         * @return string[]
         */
        public function getEnabledThemes(): array {
@@ -169,9 +169,9 @@ class ThemesService {
        }
 
        /**
-        * Set the list of enabled themes 
+        * Set the list of enabled themes
         * for the logged-in user
-        * 
+        *
         * @param string[] $themes the list of enabled themes IDs
         */
        private function setEnabledThemes(array $themes): void {
index 9bd92a47c1f753aba53d533fdb19c843d53be986..dc5d9a2a6a4434f6c4a39ca9e1accb40508045b3 100644 (file)
@@ -64,7 +64,7 @@ class Admin implements IDelegatedSettings {
                        $errorMessage = $this->l->t('You are already using a custom theme. Theming app settings might be overwritten by that.');
                }
 
-               $allowedMimeTypes = array_reduce(ThemingController::VALID_UPLOAD_KEYS, function($carry, $key) {
+               $allowedMimeTypes = array_reduce(ThemingController::VALID_UPLOAD_KEYS, function ($carry, $key) {
                        $carry[$key] = $this->imageManager->getSupportedUploadImageFormats($key);
                        return $carry;
                }, []);
index c175416f978dcb7729f033b214313acc56e1cdc0..f24aaa2f8f83f2c76b2d4091cd547be64312011a 100644 (file)
@@ -51,7 +51,7 @@ class Personal implements ISettings {
        public function getForm(): TemplateResponse {
                $enforcedTheme = $this->config->getSystemValueString('enforce_theme', '');
 
-               $themes = array_map(function($theme) {
+               $themes = array_map(function ($theme) {
                        return [
                                'id' => $theme->getId(),
                                'type' => $theme->getType(),
@@ -63,7 +63,7 @@ class Personal implements ISettings {
                }, $this->themesService->getThemes());
 
                if ($enforcedTheme !== '') {
-                       $themes = array_filter($themes, function($theme) use ($enforcedTheme) {
+                       $themes = array_filter($themes, function ($theme) use ($enforcedTheme) {
                                return $theme['type'] !== ITheme::TYPE_THEME || $theme['id'] === $enforcedTheme;
                        });
                }
index 4165a733fb2c10bf6ed081c9d72f808e6184f708..bfaa8bcaa32738131ef6d3632edb6b259a808359 100644 (file)
@@ -46,8 +46,8 @@ class PersonalSection implements IIconSection {
         * @param IL10N $l
         */
        public function __construct(string $appName,
-                                                               IURLGenerator $urlGenerator,
-                                                               IL10N $l) {
+               IURLGenerator $urlGenerator,
+               IL10N $l) {
                $this->appName = $appName;
                $this->urlGenerator = $urlGenerator;
                $this->l = $l;
index 66775500f659c4f13173fe5559af94688bde8c35..6f2d31ff6b1600a3bbf2e0d8865795f4046c54ae 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -24,10 +25,10 @@ declare(strict_types=1);
  */
 namespace OCA\Theming\Themes;
 
-use OCA\Theming\Util;
-use OCA\Theming\ImageManager;
 use OCA\Theming\AppInfo\Application;
+use OCA\Theming\ImageManager;
 use OCA\Theming\Service\BackgroundService;
+use OCA\Theming\Util;
 
 trait CommonThemeTrait {
        public Util $util;
index 5636dacf1d957b389022b9d6a8c837842c113358..c76818e368ffab6af678ab4fb6a2903b959ef9de 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -56,7 +57,7 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
 
                $colorMainText = '#ffffff';
                $colorMainBackground = '#000000';
-               $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground)); 
+               $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
 
                return array_merge(
                        $defaultVariables,
index 1def7f378a73d851394f23ce64525e9f8b62b819..af374a016035bd0fbc80fb2bc25ff00e4094c456 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
index e2bd31548ca6eddf972858c7862ecfa4228d606d..44930e457fa3c6719101d00856fee8f182d630cd 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -51,13 +52,13 @@ class DefaultTheme implements ITheme {
        public string $primaryColor;
 
        public function __construct(Util $util,
-                                                               ThemingDefaults $themingDefaults,
-                                                               IUserSession $userSession,
-                                                               IURLGenerator $urlGenerator,
-                                                               ImageManager $imageManager,
-                                                               IConfig $config,
-                                                               IL10N $l,
-                                                               IAppManager $appManager) {
+               ThemingDefaults $themingDefaults,
+               IUserSession $userSession,
+               IURLGenerator $urlGenerator,
+               ImageManager $imageManager,
+               IConfig $config,
+               IL10N $l,
+               IAppManager $appManager) {
                $this->util = $util;
                $this->themingDefaults = $themingDefaults;
                $this->userSession = $userSession;
index 2629ac588c62103d51808dbf1f43e69cab3dee17..3275a005c8d4a214bbe2cb5eeb301658362aae38 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -88,4 +89,3 @@ class DyslexiaFont extends DefaultTheme implements ITheme {
                ";
        }
 }
-
index 4bb77b8c961bf6cb9b78cc6347149a4c257e90c7..1599d45e475af8c83289218df8fcc203158116d4 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -56,7 +57,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
 
                $colorMainText = '#000000';
                $colorMainBackground = '#ffffff';
-               $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground)); 
+               $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
 
                return array_merge(
                        $defaultVariables,
index e988f612226a20f44b5d7e28d17fed7a2781ad8b..320f83341474c3033a1f5d907af528838fba0c93 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
@@ -24,14 +25,7 @@ declare(strict_types=1);
  */
 namespace OCA\Theming\Themes;
 
-use OCA\Theming\ImageManager;
-use OCA\Theming\ThemingDefaults;
-use OCA\Theming\Util;
 use OCA\Theming\ITheme;
-use OCA\Theming\Themes\DefaultTheme;
-use OCP\IConfig;
-use OCP\IL10N;
-use OCP\IURLGenerator;
 
 class LightTheme extends DefaultTheme implements ITheme {
 
index 1e55a1fb2f90760e762ec35bc8546d716ed0072e..210029ae6369455b12805c4820e72b04021a1d52 100644 (file)
@@ -91,14 +91,14 @@ class ThemingDefaults extends \OC_Defaults {
         * @param IAppManager $appManager
         */
        public function __construct(IConfig $config,
-                                                               IL10N $l,
-                                                               IUserSession $userSession,
-                                                               IURLGenerator $urlGenerator,
-                                                               ICacheFactory $cacheFactory,
-                                                               Util $util,
-                                                               ImageManager $imageManager,
-                                                               IAppManager $appManager,
-                                                               INavigationManager $navigationManager
+               IL10N $l,
+               IUserSession $userSession,
+               IURLGenerator $urlGenerator,
+               ICacheFactory $cacheFactory,
+               Util $util,
+               ImageManager $imageManager,
+               IAppManager $appManager,
+               INavigationManager $navigationManager
        ) {
                parent::__construct();
                $this->config = $config;
index 635c0026112218d557a2b436decf6c4919aa92d0..951b07bfa2aa10b8e0ca926fb8dc1ae6b103d308 100644 (file)
@@ -28,6 +28,7 @@
  */
 namespace OCA\Theming;
 
+use Mexitek\PHPColors\Color;
 use OCP\App\AppPathNotFoundException;
 use OCP\App\IAppManager;
 use OCP\Files\IAppData;
@@ -35,7 +36,6 @@ use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\IConfig;
 use OCP\IUserSession;
-use Mexitek\PHPColors\Color;
 
 class Util {
 
index 4931a148b7853efa3a172f58e2a047382f2c5c34..5bc27069c6e98a351f5db35df08233a56cce1f9c 100644 (file)
@@ -35,8 +35,8 @@ namespace OCA\Theming\Tests\Controller;
 
 use OC\L10N\L10N;
 use OCA\Theming\Controller\ThemingController;
-use OCA\Theming\Service\ThemesService;
 use OCA\Theming\ImageManager;
+use OCA\Theming\Service\ThemesService;
 use OCA\Theming\ThemingDefaults;
 use OCP\App\IAppManager;
 use OCP\AppFramework\Http;
index 851dbec38eb38aaa319a67ee78d4d33dfbb5026a..500cb807e83b39f201a4eeb99fa71c89ec32786f 100644 (file)
@@ -26,12 +26,12 @@ use OCA\Theming\AppInfo\Application;
 use OCA\Theming\Controller\UserThemeController;
 use OCA\Theming\ITheme;
 use OCA\Theming\Service\BackgroundService;
+use OCA\Theming\Service\ThemesService;
 use OCA\Theming\Themes\DarkHighContrastTheme;
 use OCA\Theming\Themes\DarkTheme;
 use OCA\Theming\Themes\DefaultTheme;
 use OCA\Theming\Themes\DyslexiaFont;
 use OCA\Theming\Themes\HighContrastTheme;
-use OCA\Theming\Service\ThemesService;
 use OCA\Theming\Themes\LightTheme;
 use OCA\Theming\ThemingDefaults;
 use OCP\AppFramework\Http\DataResponse;
index 5637ce25cb69869b5c5074a8e776e7e0d662ad62..ee4705c77dc89b53f60cb686d7c6c41bd8c2da91 100644 (file)
@@ -217,6 +217,6 @@ class IconBuilderTest extends TestCase {
                $util->expects($this->once())
                        ->method('getAppImage')
                        ->willReturn('notexistingfile');
-               $this->assertFalse($iconBuilder->colorSvg('noapp','noimage'));
+               $this->assertFalse($iconBuilder->colorSvg('noapp', 'noimage'));
        }
 }
index ba970b9239449f743b41b3214c3b6d75fe3db1ef..6ed49fd16458d6865ee99c277207a12166c1a3bc 100644 (file)
@@ -25,18 +25,18 @@ namespace OCA\Theming\Tests\Service;
 use OCA\Theming\AppInfo\Application;
 use OCA\Theming\ImageManager;
 use OCA\Theming\ITheme;
+use OCA\Theming\Service\ThemesService;
 use OCA\Theming\Themes\DarkHighContrastTheme;
 use OCA\Theming\Themes\DarkTheme;
 use OCA\Theming\Themes\DefaultTheme;
 use OCA\Theming\Themes\DyslexiaFont;
 use OCA\Theming\Themes\HighContrastTheme;
-use OCA\Theming\Service\ThemesService;
 use OCA\Theming\Themes\LightTheme;
 use OCA\Theming\ThemingDefaults;
 use OCA\Theming\Util;
+use OCP\App\IAppManager;
 use OCP\IConfig;
 use OCP\IL10N;
-use OCP\App\IAppManager;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserSession;
index 15876930179954bf127cb687027cf21749dcb57c..0a9bf4b59c93f7cf65d4e937982f3f64ef498622 100644 (file)
@@ -29,6 +29,7 @@ namespace OCA\Theming\Tests\Settings;
 
 use OCA\Theming\AppInfo\Application;
 use OCA\Theming\ImageManager;
+use OCA\Theming\ITheme;
 use OCA\Theming\Service\ThemesService;
 use OCA\Theming\Settings\Personal;
 use OCA\Theming\Themes\DarkHighContrastTheme;
@@ -39,7 +40,6 @@ use OCA\Theming\Themes\HighContrastTheme;
 use OCA\Theming\Themes\LightTheme;
 use OCA\Theming\ThemingDefaults;
 use OCA\Theming\Util;
-use OCA\Theming\ITheme;
 use OCP\App\IAppManager;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
index 4714d9751f4223d2534c8ec4ff3f75e5f863c289..7a55d168fea7811e8d4a581d0bf3ea17763adbb9 100644 (file)
@@ -22,7 +22,6 @@
  */
 namespace OCA\Theming\Tests\Service;
 
-use OC\App\AppManager;
 use OC\Route\Router;
 use OCA\Theming\ImageManager;
 use OCA\Theming\ITheme;
index a33e38a184758bcb19ae3a23f8a71a8b6c1fd79f..92898aecbbaad7fef7fe9793a767e4ff29023577 100644 (file)
@@ -49,10 +49,10 @@ class RememberBackupCodesJob extends TimedJob {
        private $jobList;
 
        public function __construct(IRegistry $registry,
-                                                               IUserManager $userManager,
-                                                               ITimeFactory $timeFactory,
-                                                               IManager $notificationManager,
-                                                               IJobList $jobList) {
+               IUserManager $userManager,
+               ITimeFactory $timeFactory,
+               IManager $notificationManager,
+               IJobList $jobList) {
                parent::__construct($timeFactory);
                $this->registry = $registry;
                $this->userManager = $userManager;
index 2629cd92dd06526c16d65165a36d58fb45847c12..77d6a15a722be11dc96a3076aed0ab1e40b0eec1 100644 (file)
@@ -42,7 +42,7 @@ class ProviderDisabled implements IEventListener {
        private $jobList;
 
        public function __construct(IRegistry $registry,
-                                                               IJobList $jobList) {
+               IJobList $jobList) {
                $this->registry = $registry;
                $this->jobList = $jobList;
        }
index 581602d72620364bac49c83d8ce1ec8a376f2c61..4645b793630a64aa79296a74b325518e4d8fa842 100644 (file)
@@ -42,7 +42,7 @@ class ProviderEnabled implements IEventListener {
        private $jobList;
 
        public function __construct(IRegistry $registry,
-                                                               IJobList $jobList) {
+               IJobList $jobList) {
                $this->registry = $registry;
                $this->jobList = $jobList;
        }
index a9ef2a2b2526e712d47d0784210bae31403b4e43..bb5dc53b1e4366b6830534474c5d2b0eed3741c9 100644 (file)
@@ -61,10 +61,10 @@ class BackupCodesProvider implements IDeactivatableByAdmin, IProvidesPersonalSet
         * @param AppManager $appManager
         */
        public function __construct(string $appName,
-                                                               BackupCodeStorage $storage,
-                                                               IL10N $l10n,
-                                                               AppManager $appManager,
-                                                               IInitialStateService $initialStateService) {
+               BackupCodeStorage $storage,
+               IL10N $l10n,
+               AppManager $appManager,
+               IInitialStateService $initialStateService) {
                $this->appName = $appName;
                $this->l10n = $l10n;
                $this->storage = $storage;
index 4ecff652ae7648ba8a3481d7f20effb7c110aed8..9d4b6a28500b89182705d1b1912b8979064f73cb 100644 (file)
@@ -52,9 +52,9 @@ class BackupCodeStorage {
        private $eventDispatcher;
 
        public function __construct(BackupCodeMapper $mapper,
-                                                               ISecureRandom $random,
-                                                               IHasher $hasher,
-                                                               IEventDispatcher $eventDispatcher) {
+               ISecureRandom $random,
+               IHasher $hasher,
+               IEventDispatcher $eventDispatcher) {
                $this->mapper = $mapper;
                $this->hasher = $hasher;
                $this->random = $random;
index f9e1252505381391aedd1d3cc79fac10d8483c04..d684b69024f368d1224cd6bd7dbb9139dcd60d5b 100644 (file)
@@ -74,12 +74,12 @@ class APIController extends OCSController {
        ];
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IConfig $config,
-                                                               IAppManager $appManager,
-                                                               AppFetcher $appFetcher,
-                                                               IFactory $l10nFactory,
-                                                               IUserSession $userSession) {
+               IRequest $request,
+               IConfig $config,
+               IAppManager $appManager,
+               AppFetcher $appFetcher,
+               IFactory $l10nFactory,
+               IUserSession $userSession) {
                parent::__construct($appName, $request);
 
                $this->config = $config;
@@ -141,7 +141,7 @@ class APIController extends OCSController {
                $this->language = $this->l10nFactory->getUserLanguage($this->userSession->getUser());
 
                // Ignore apps that are deployed from git
-               $installedApps = array_filter($installedApps, function(string $appId) {
+               $installedApps = array_filter($installedApps, function (string $appId) {
                        try {
                                return !file_exists($this->appManager->getAppPath($appId) . '/.git');
                        } catch (AppPathNotFoundException $e) {
index 74a3a86c7e1e5351800df628980b7321c4b7549c..e5a8aa45838deea1d55590ba18bef190b28ffbc1 100644 (file)
@@ -61,12 +61,12 @@ class AdminController extends Controller {
         * @param IL10N $l10n
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               IJobList $jobList,
-                                                               ISecureRandom $secureRandom,
-                                                               IConfig $config,
-                                                               ITimeFactory $timeFactory,
-                                                               IL10N $l10n) {
+               IRequest $request,
+               IJobList $jobList,
+               ISecureRandom $secureRandom,
+               IConfig $config,
+               ITimeFactory $timeFactory,
+               IL10N $l10n) {
                parent::__construct($appName, $request);
                $this->jobList = $jobList;
                $this->secureRandom = $secureRandom;
index 6e80f0fc0bf76e51f21f6e99f2684d27635b43ac..723922157b377dcc82077a4813770bdfafb16072 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
  */
 namespace OCA\UpdateNotification;
 
-use OCP\BackgroundJob\TimedJob;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
 use OCP\IConfig;
 
 /**
@@ -47,7 +47,7 @@ class ResetTokenBackgroundJob extends TimedJob {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(IConfig $config,
-                                                               ITimeFactory $timeFactory) {
+               ITimeFactory $timeFactory) {
                parent::__construct($timeFactory);
                // Run all 10 minutes
                parent::setInterval(60 * 10);
index cb6796aac34becce6e1423152eed166aa10d1dc2..24f0df8ae8da175a2bda60ed18b61a80671814ce 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index 7f47a46f8f95ebc7af6b7aeb195d596ae7d3006e..730be5601a26cd1f9e4ccc402e52a437a5e2cb89 100644 (file)
@@ -30,18 +30,18 @@ declare(strict_types=1);
 namespace OCA\UpdateNotification\Settings;
 
 use OC\User\Backend;
-use OCP\User\Backend\ICountUsersBackend;
 use OCA\UpdateNotification\UpdateChecker;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\IConfig;
 use OCP\IDateTimeFormatter;
 use OCP\IGroupManager;
+use OCP\IUserManager;
 use OCP\L10N\IFactory;
 use OCP\Settings\ISettings;
 use OCP\Support\Subscription\IRegistry;
+use OCP\User\Backend\ICountUsersBackend;
 use OCP\Util;
-use OCP\IUserManager;
 use Psr\Log\LoggerInterface;
 
 class Admin implements ISettings {
@@ -64,7 +64,7 @@ class Admin implements ISettings {
                IRegistry $subscriptionRegistry,
                IUserManager $userManager,
                LoggerInterface $logger,
-               IInitialState $initialState 
+               IInitialState $initialState
        ) {
                $this->config = $config;
                $this->updateChecker = $updateChecker;
index a9bf18b3a4e1cb477781449916d916deccd64a7a..6de72628e45af1f7980df085129e01ba2a2b0645 100644 (file)
@@ -9,6 +9,6 @@ declare(strict_types=1);
  * later. See the COPYING file.
  */
 \OCP\Util::addScript('updatenotification', 'updatenotification');
- ?>
+?>
 
 <div id="updatenotification"></div>
index 784e56e79edb9d582d0a9a78ce531587dd46908c..bdde25acecae8d8f6965ea47e28057faa2b86c81 100644 (file)
@@ -29,9 +29,11 @@ declare(strict_types=1);
  */
 namespace OCA\UpdateNotification\Tests\Settings;
 
+use OC\User\Backend;
 use OCA\UpdateNotification\Settings\Admin;
 use OCA\UpdateNotification\UpdateChecker;
 use OCP\AppFramework\Http\TemplateResponse;
+use OCP\AppFramework\Services\IInitialState;
 use OCP\IConfig;
 use OCP\IDateTimeFormatter;
 use OCP\IGroup;
@@ -40,11 +42,9 @@ use OCP\IUserManager;
 use OCP\L10N\IFactory;
 use OCP\L10N\ILanguageIterator;
 use OCP\Support\Subscription\IRegistry;
-use OCP\UserInterface;
 use OCP\User\Backend\ICountUsersBackend;
-use OCP\AppFramework\Services\IInitialState;
+use OCP\UserInterface;
 use OCP\Util;
-use OC\User\Backend;
 use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
@@ -84,11 +84,11 @@ class AdminTest extends TestCase {
                $this->initialState = $this->createMock(IInitialState::class);
 
                $this->admin = new Admin(
-                       $this->config, 
-                       $this->updateChecker, 
-                       $this->groupManager, 
-                       $this->dateTimeFormatter, 
-                       $this->l10nFactory, 
+                       $this->config,
+                       $this->updateChecker,
+                       $this->groupManager,
+                       $this->dateTimeFormatter,
+                       $this->l10nFactory,
                        $this->subscriptionRegistry,
                        $this->userManager,
                        $this->logger,
index f8469cc85b11cebb798bf643122895846c95fbd9..395e3ec3016a327ead6e8c42ec33e4f95bf95288 100644 (file)
@@ -23,8 +23,8 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>
  *
  */
-use OCA\User_LDAP\Mapping\UserMapping;
 use OCA\User_LDAP\Mapping\GroupMapping;
+use OCA\User_LDAP\Mapping\UserMapping;
 
 // Check user and app status
 \OC_JSON::checkAdminUser();
index 90c2d72a2ffc5c4c090a313d1d85fdae909ea205..e608d5f80f029c79f4f5f81665e598dd4598c66c 100644 (file)
@@ -2016,12 +2016,12 @@ class Access extends LDAPUtility {
                        }
                        $this->logger->debug('Ready for a paged search', ['app' => 'user_ldap']);
                        return [true, $pageSize, $this->lastCookie];
-                       /* ++ Fixing RHDS searches with pages with zero results ++
-                        * We couldn't get paged searches working with our RHDS for login ($limit = 0),
-                        * due to pages with zero results.
-                        * So we added "&& !empty($this->lastCookie)" to this test to ignore pagination
-                        * if we don't have a previous paged search.
-                        */
+               /* ++ Fixing RHDS searches with pages with zero results ++
+                * We couldn't get paged searches working with our RHDS for login ($limit = 0),
+                * due to pages with zero results.
+                * So we added "&& !empty($this->lastCookie)" to this test to ignore pagination
+                * if we don't have a previous paged search.
+                */
                } elseif ($this->lastCookie !== '') {
                        // a search without limit was requested. However, if we do use
                        // Paged Search once, we always must do it. This requires us to
index 459de75181232d83c1044555900548823e64773f..e46d77b8066d4ad623063e5ac6003b7ed97ba441 100644 (file)
@@ -40,10 +40,10 @@ use OCA\User_LDAP\ILDAPWrapper;
 use OCA\User_LDAP\LDAP;
 use OCA\User_LDAP\LoginListener;
 use OCA\User_LDAP\Notification\Notifier;
+use OCA\User_LDAP\SetupChecks\LdapInvalidUuids;
 use OCA\User_LDAP\User\Manager;
 use OCA\User_LDAP\User_Proxy;
 use OCA\User_LDAP\UserPluginManager;
-use OCA\User_LDAP\SetupChecks\LdapInvalidUuids;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
index 6ccfc9c19ea55ec7c9e352bd637c7b0029a3b163..1174408cb4923a66a564aa20edd278b5279941a3 100644 (file)
@@ -62,16 +62,16 @@ class CheckUser extends Command {
                        ->setName('ldap:check-user')
                        ->setDescription('checks whether a user exists on LDAP.')
                        ->addArgument(
-                                       'ocName',
-                                       InputArgument::REQUIRED,
-                                       'the user name as used in Nextcloud, or the LDAP DN'
-                                        )
+                               'ocName',
+                               InputArgument::REQUIRED,
+                               'the user name as used in Nextcloud, or the LDAP DN'
+                       )
                        ->addOption(
-                                       'force',
-                                       null,
-                                       InputOption::VALUE_NONE,
-                                       'ignores disabled LDAP configuration'
-                                        )
+                               'force',
+                               null,
+                               InputOption::VALUE_NONE,
+                               'ignores disabled LDAP configuration'
+                       )
                        ->addOption(
                                'update',
                                null,
index 707fd455611599be20fb06904757a375ca8e259e..8da77c296714af5ac02be275198fe22b8a3d09d5 100644 (file)
@@ -47,10 +47,10 @@ class DeleteConfig extends Command {
                        ->setName('ldap:delete-config')
                        ->setDescription('deletes an existing LDAP configuration')
                        ->addArgument(
-                                       'configID',
-                                       InputArgument::REQUIRED,
-                                       'the configuration ID'
-                                        )
+                               'configID',
+                               InputArgument::REQUIRED,
+                               'the configuration ID'
+                       )
                ;
        }
 
index 96c4df4b2bf59859bfde5717829352949b20879e..748bf873e64e5e0a5619072a58c7145a26628d52 100644 (file)
@@ -58,30 +58,30 @@ class Search extends Command {
                        ->setName('ldap:search')
                        ->setDescription('executes a user or group search')
                        ->addArgument(
-                                       'search',
-                                       InputArgument::REQUIRED,
-                                       'the search string (can be empty)'
-                                        )
+                               'search',
+                               InputArgument::REQUIRED,
+                               'the search string (can be empty)'
+                       )
                        ->addOption(
-                                       'group',
-                                       null,
-                                       InputOption::VALUE_NONE,
-                                       'searches groups instead of users'
-                                        )
+                               'group',
+                               null,
+                               InputOption::VALUE_NONE,
+                               'searches groups instead of users'
+                       )
                        ->addOption(
-                                       'offset',
-                                       null,
-                                       InputOption::VALUE_REQUIRED,
-                                       'The offset of the result set. Needs to be a multiple of limit. defaults to 0.',
-                                       '0'
-                                        )
+                               'offset',
+                               null,
+                               InputOption::VALUE_REQUIRED,
+                               'The offset of the result set. Needs to be a multiple of limit. defaults to 0.',
+                               '0'
+                       )
                        ->addOption(
-                                       'limit',
-                                       null,
-                                       InputOption::VALUE_REQUIRED,
-                                       'limit the results. 0 means no limit, defaults to 15',
-                                       '15'
-                                        )
+                               'limit',
+                               null,
+                               InputOption::VALUE_REQUIRED,
+                               'limit the results. 0 means no limit, defaults to 15',
+                               '15'
+                       )
                ;
        }
 
index 2b487787c8a17e4a9a3ae6b099dab9131ec588ee..8cf100ecd0a2ca71c2b83da203e253bc116a0f12 100644 (file)
@@ -40,20 +40,20 @@ class SetConfig extends Command {
                        ->setName('ldap:set-config')
                        ->setDescription('modifies an LDAP configuration')
                        ->addArgument(
-                                       'configID',
-                                       InputArgument::REQUIRED,
-                                       'the configuration ID'
-                                        )
+                               'configID',
+                               InputArgument::REQUIRED,
+                               'the configuration ID'
+                       )
                        ->addArgument(
-                                       'configKey',
-                                       InputArgument::REQUIRED,
-                                       'the configuration key'
-                                        )
+                               'configKey',
+                               InputArgument::REQUIRED,
+                               'the configuration key'
+                       )
                        ->addArgument(
-                                       'configValue',
-                                       InputArgument::REQUIRED,
-                                       'the new configuration value'
-                                        )
+                               'configValue',
+                               InputArgument::REQUIRED,
+                               'the new configuration value'
+                       )
                ;
        }
 
index 4997d9737a5e4eaa1c51b0ebe95a700833040365..6ff30739217a2129a770136ed1e0d7324e06d330 100644 (file)
@@ -52,23 +52,23 @@ class ShowConfig extends Base {
                        ->setName('ldap:show-config')
                        ->setDescription('shows the LDAP configuration')
                        ->addArgument(
-                                       'configID',
-                                       InputArgument::OPTIONAL,
-                                       'will show the configuration of the specified id'
-                                        )
+                               'configID',
+                               InputArgument::OPTIONAL,
+                               'will show the configuration of the specified id'
+                       )
                        ->addOption(
-                                       'show-password',
-                                       null,
-                                       InputOption::VALUE_NONE,
-                                       'show ldap bind password'
-                                        )
+                               'show-password',
+                               null,
+                               InputOption::VALUE_NONE,
+                               'show ldap bind password'
+                       )
                        ->addOption(
-                                       'output',
-                                       null,
-                                       InputOption::VALUE_OPTIONAL,
-                                       'Output format (table, plain, json or json_pretty, default is table)',
-                                       'table'
-                                        )
+                               'output',
+                               null,
+                               InputOption::VALUE_OPTIONAL,
+                               'Output format (table, plain, json or json_pretty, default is table)',
+                               'table'
+                       )
                ;
        }
 
index 716bc2d0563bd9c4fdf909f998d264f9fc43f997..57863a11ec850ee8e59f19fb3db3b26b75b1f81e 100644 (file)
@@ -42,12 +42,12 @@ use Symfony\Component\Console\Output\OutputInterface;
 use function sprintf;
 
 class UuidUpdateReport {
-       const UNCHANGED = 0;
-       const UNKNOWN = 1;
-       const UNREADABLE = 2;
-       const UPDATED = 3;
-       const UNWRITABLE = 4;
-       const UNMAPPED = 5;
+       public const UNCHANGED = 0;
+       public const UNKNOWN = 1;
+       public const UNREADABLE = 2;
+       public const UPDATED = 3;
+       public const UNWRITABLE = 4;
+       public const UNMAPPED = 5;
 
        public $id = '';
        public $dn = '';
@@ -178,7 +178,7 @@ class UpdateUUID extends Command {
                                if (!empty($report->id)) {
                                        $output->writeln(sprintf('  %s: %s',
                                                $report->isUser ? 'User' : 'Group', $report->id));
-                               } else if (!empty($report->dn)) {
+                               } elseif (!empty($report->dn)) {
                                        $output->writeln(sprintf('  DN: %s', $report->dn));
                                }
                        }
@@ -190,7 +190,7 @@ class UpdateUUID extends Command {
                        if ($output->isVerbose()) {
                                /** @var UuidUpdateReport $report */
                                foreach ($this->reports[UuidUpdateReport::UNKNOWN] as $report) {
-                                       $output->writeln(sprintf('  %s: %s',$report->isUser ? 'User' : 'Group', $report->id));
+                                       $output->writeln(sprintf('  %s: %s', $report->isUser ? 'User' : 'Group', $report->id));
                                }
                                $output->writeln(PHP_EOL . 'Old users can be removed along with their data per occ user:delete.' . PHP_EOL);
                        }
@@ -201,7 +201,7 @@ class UpdateUUID extends Command {
                        if ($output->isVerbose()) {
                                /** @var UuidUpdateReport $report */
                                foreach ($this->reports[UuidUpdateReport::UNREADABLE] as $report) {
-                                       $output->writeln(sprintf('  %s: %s',$report->isUser ? 'User' : 'Group', $report->id));
+                                       $output->writeln(sprintf('  %s: %s', $report->isUser ? 'User' : 'Group', $report->id));
                                }
                        }
                }
@@ -211,7 +211,7 @@ class UpdateUUID extends Command {
                        if ($output->isVerbose()) {
                                /** @var UuidUpdateReport $report */
                                foreach ($this->reports[UuidUpdateReport::UNWRITABLE] as $report) {
-                                       $output->writeln(sprintf('  %s: %s',$report->isUser ? 'User' : 'Group', $report->id));
+                                       $output->writeln(sprintf('  %s: %s', $report->isUser ? 'User' : 'Group', $report->id));
                                }
                        }
                }
@@ -222,7 +222,7 @@ class UpdateUUID extends Command {
                        foreach($this->handleMappingBasedUpdates(false) as $_) {
                                yield;
                        }
-               } else if ($input->getOption('userId')
+               } elseif ($input->getOption('userId')
                        || $input->getOption('groupId')
                        || $input->getOption('dn')
                ) {
@@ -326,8 +326,7 @@ class UpdateUUID extends Command {
                foreach ($list as $row) {
                        $access = $backendProxy->getLDAPAccess($row['name']);
                        if ($access instanceof Access
-                               && $dn = $mapping->getDNByName($row['name']))
-                       {
+                               && $dn = $mapping->getDNByName($row['name'])) {
                                if ($uuid = $access->getUUID($dn, $isUser)) {
                                        if ($uuid !== $row['uuid']) {
                                                if ($this->dryRun || $mapping->setUUIDbyDN($uuid, $dn)) {
@@ -359,7 +358,7 @@ class UpdateUUID extends Command {
        protected function estimateNumberOfUpdates(InputInterface $input): int {
                if ($input->getOption('all')) {
                        return $this->userMapping->count() + $this->groupMapping->count();
-               } else if ($input->getOption('userId')
+               } elseif ($input->getOption('userId')
                        || $input->getOption('groupId')
                        || $input->getOption('dn')
                ) {
index 833b314b1992d9ed9f20e251f606fb725b698923..8644626d00bc6db88f27f7d92080ecf8dd36b6ed 100644 (file)
@@ -1,4 +1,6 @@
-<?php declare(strict_types = 1);
+<?php
+
+declare(strict_types = 1);
 /**
  * @copyright 2022 Carl Schwan <carl@carlschwan.eu>
  *
index 5999409cdba34edf342703c106dc56074647c743..d99e17d7673efa51ebbe4d244dc54c4ad4d1772c 100644 (file)
@@ -164,7 +164,7 @@ class GroupPluginManager {
                $plugin = $this->which[GroupInterface::COUNT_USERS];
 
                if ($plugin) {
-                       return $plugin->countUsersInGroup($gid,$search);
+                       return $plugin->countUsersInGroup($gid, $search);
                }
                throw new \Exception('No plugin implements countUsersInGroup in this LDAP Backend.');
        }
index a388c4acbd569c2ef8695c21715f7280315aa02d..a7a82eb88cab516d326aecaf351268e84a6d8101 100644 (file)
@@ -48,10 +48,10 @@ use Exception;
 use OC\ServerNotAvailableException;
 use OCA\User_LDAP\User\OfflineUser;
 use OCP\Cache\CappedMemoryCache;
-use OCP\GroupInterface;
 use OCP\Group\Backend\ABackend;
 use OCP\Group\Backend\IDeleteGroupBackend;
 use OCP\Group\Backend\IGetDisplayNameBackend;
+use OCP\GroupInterface;
 use OCP\IConfig;
 use OCP\IUserManager;
 use OCP\Server;
index 6668338d195586a3deeb4fb68856c6a8f7a6b3a5..057a12cc0b50a07c90b9cd1fb6fc9d1faaa8b493 100644 (file)
@@ -41,7 +41,7 @@ class Helper {
        protected CappedMemoryCache $sanitizeDnCache;
 
        public function __construct(IConfig $config,
-                                                               IDBConnection $connection) {
+               IDBConnection $connection) {
                $this->config = $config;
                $this->connection = $connection;
                $this->sanitizeDnCache = new CappedMemoryCache(10000);
index be7c09bd961fa8ecbf3621d56ff447df44553269..f4e234463522e33e3b8495c31052f863a0d9150e 100644 (file)
  */
 namespace OCA\User_LDAP\Jobs;
 
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\BackgroundJob\TimedJob;
 use OCA\User_LDAP\Helper;
 use OCA\User_LDAP\Mapping\UserMapping;
 use OCA\User_LDAP\User\DeletedUsersIndex;
 use OCA\User_LDAP\User_LDAP;
 use OCA\User_LDAP\User_Proxy;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
 
 /**
  * Class CleanUp
index 487f36f4f30da5c14da05b7a59787edfd693e39d..3f7ae8f21d2ec2217c32c9c3580c56ab5ed2cfc9 100644 (file)
@@ -32,11 +32,11 @@ declare(strict_types=1);
  */
 namespace OCA\User_LDAP\Jobs;
 
+use OCA\User_LDAP\Service\UpdateGroupsService;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\TimedJob;
 use OCP\DB\Exception;
 use OCP\IConfig;
-use OCA\User_LDAP\Service\UpdateGroupsService;
 use Psr\Log\LoggerInterface;
 
 class UpdateGroups extends TimedJob {
index edaf08a78165ba2ef29cd01ef56a6a6acf2cb829..8e63422b1ac4b64143d01b0b649734405cbc63a6 100644 (file)
  */
 namespace OCA\User_LDAP;
 
-use OCP\IConfig;
-use OCP\Profiler\IProfiler;
 use OC\ServerNotAvailableException;
 use OCA\User_LDAP\DataCollector\LdapDataCollector;
 use OCA\User_LDAP\Exceptions\ConstraintViolationException;
+use OCP\IConfig;
+use OCP\Profiler\IProfiler;
 use Psr\Log\LoggerInterface;
 
 class LDAP implements ILDAPWrapper {
index f89bebe57d65e2ceb0979b0edd37d4688d5a05a6..d5d7aa367a189a1a5ef7c553d0811f7eb977eb03 100644 (file)
@@ -60,7 +60,7 @@ abstract class GroupMappingMigration extends SimpleMigrationStep {
                                ->setParameter('owncloud_name', $row['owncloud_name'])
                                ->setParameter('directory_uuid', $row['directory_uuid'])
                                ->setParameter('ldap_dn_hash', $row['ldap_dn_hash'])
-                               ;
+                       ;
 
                        $insert->executeStatement();
                }
index 15dba57e5f36cc93a8abb711f0d3f1ac27604b26..fd9a79c8494c06bb64c3a54899778e118dd040cc 100644 (file)
@@ -40,7 +40,7 @@ class SetDefaultProvider implements IRepairStep {
        private $helper;
 
        public function __construct(IConfig $config,
-                                                               Helper $helper) {
+               Helper $helper) {
                $this->config = $config;
                $this->helper = $helper;
        }
index 2cb7ac8bdfbba64a121b396fd4e67489659a22e7..bd6aed44a0af9f191d20440a145f7bc435f7a4fa 100644 (file)
@@ -22,8 +22,8 @@
  */
 namespace OCA\User_LDAP\Migration;
 
-use OCA\User_LDAP\User_Proxy;
 use OCA\User_LDAP\Mapping\UserMapping;
+use OCA\User_LDAP\User_Proxy;
 
 class UUIDFixUser extends UUIDFix {
        public function __construct(UserMapping $mapper, User_Proxy $proxy) {
index 5c7dc7db95cd14905580fd45e8c36bf4c052e93a..8031741bc4d2d8facec7f4b440e12365002d2ec9 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
 namespace OCA\User_LDAP\Migration;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index b7a9b81d6a00137cfab1f6b21674ed346da98415..adc502e67478acd2e969e8b1964dfa754f142d7b 100644 (file)
@@ -31,7 +31,6 @@ use OC\Hooks\PublicEmitter;
 use OCP\DB\Exception;
 use OCP\DB\ISchemaWrapper;
 use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\IUserManager;
 use OCP\Migration\IOutput;
index f904d829c0818ac27c70b91d1a83d152efbf1920..9d3ba333e89eff95533a94b9f70f20c25f756b44 100644 (file)
@@ -29,9 +29,9 @@
  */
 namespace OCA\User_LDAP\User;
 
-use OCP\Cache\CappedMemoryCache;
 use OCA\User_LDAP\Access;
 use OCA\User_LDAP\FilesystemHelper;
+use OCP\Cache\CappedMemoryCache;
 use OCP\IAvatarManager;
 use OCP\IConfig;
 use OCP\IDBConnection;
index 214b475e2e45b6e7c1505fa3d8a47c2f842ac01e..3b0015380ecefda840e153bb9910c2d36704794b 100644 (file)
@@ -37,13 +37,13 @@ use OCA\User_LDAP\Access;
 use OCA\User_LDAP\Connection;
 use OCA\User_LDAP\Exceptions\AttributeNotSet;
 use OCA\User_LDAP\FilesystemHelper;
+use OCP\Accounts\IAccountManager;
+use OCP\Accounts\PropertyDoesNotExistException;
 use OCP\IAvatarManager;
 use OCP\IConfig;
 use OCP\Image;
 use OCP\IUser;
 use OCP\IUserManager;
-use OCP\Accounts\IAccountManager;
-use OCP\Accounts\PropertyDoesNotExistException;
 use OCP\Notification\IManager as INotificationManager;
 use OCP\Server;
 use Psr\Log\LoggerInterface;
index 0449c89bd2479da1234b15eb514036cfb940fa3f..919cddd99bef6c8baaa460d41d3eabb312c1c85b 100644 (file)
@@ -38,10 +38,10 @@ use OCP\IConfig;
 use OCP\IUserBackend;
 use OCP\IUserSession;
 use OCP\Notification\IManager as INotificationManager;
-use OCP\UserInterface;
 use OCP\User\Backend\ICountMappedUsersBackend;
 use OCP\User\Backend\ICountUsersBackend;
 use OCP\User\Backend\IProvideEnabledStateBackend;
+use OCP\UserInterface;
 use Psr\Log\LoggerInterface;
 
 class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ICountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend {
index 29407ceb0a500fdf4359f3a9f099544f434f6f10..1f4794f164e6f1defc8c0d464edf5009a792fa2c 100644 (file)
@@ -193,7 +193,7 @@ class Wizard extends LDAPUtility {
         * counts users with a specified attribute
         * @return int|false
         */
-  public function countUsersWithAttribute(string $attr, bool $existsCheck = false) {
+       public function countUsersWithAttribute(string $attr, bool $existsCheck = false) {
                $reqs = ['ldapHost', 'ldapBase', 'ldapUserFilter'];
                if (!$this->configuration->usesLdapi()) {
                        $reqs[] = 'ldapPort';
@@ -399,7 +399,7 @@ class Wizard extends LDAPUtility {
         * @return WizardResult|false the instance's WizardResult instance
         * @throws \Exception
         */
-  private function determineGroups(string $dbKey, string $confKey, bool $testMemberOf = true) {
+       private function determineGroups(string $dbKey, string $confKey, bool $testMemberOf = true) {
                $reqs = ['ldapHost', 'ldapBase'];
                if (!$this->configuration->usesLdapi()) {
                        $reqs[] = 'ldapPort';
@@ -636,7 +636,7 @@ class Wizard extends LDAPUtility {
         * @return WizardResult|false
         * @throws \Exception
         */
-  public function testLoginName(string $loginName) {
+       public function testLoginName(string $loginName) {
                $reqs = ['ldapHost', 'ldapBase', 'ldapUserFilter'];
                if (!$this->configuration->usesLdapi()) {
                        $reqs[] = 'ldapPort';
index 936d7db70f85d6597a66c8f650493a68c4e7f39a..cc1090bf9650527d4d90a82bd1de8ffb53e7946a 100644 (file)
@@ -1030,7 +1030,7 @@ class Group_LDAPTest extends TestCase {
                                }
                                [$memberFilter] = explode('&', $filter);
                                if ($memberFilter === 'member='.$dn) {
-                                               return [$group1, $group2];
+                                       return [$group1, $group2];
                                        return [];
                                } elseif ($memberFilter === 'member='.$group2['dn'][0]) {
                                        return [$group3];
index 49431ec0d9ae0f6cf988161d53997b6f7e5d96fd..6645ccc943127109e11e063a58ca7e0c23b608d5 100644 (file)
@@ -78,7 +78,7 @@ class UUIDFixInsertTest extends TestCase {
                $userBatches = [
                        0 => array_fill(0, 50, $record),
                        1 => array_fill(0, 50, $record),
-                       2 => array_fill(0,  13, $record),
+                       2 => array_fill(0, 13, $record),
                ];
 
                $groupBatches = [
@@ -152,7 +152,7 @@ class UUIDFixInsertTest extends TestCase {
                $this->userMapper->expects($this->exactly(5))
                        ->method('getList')
                        ->withConsecutive([0, 50], [0, 40], [0, 32], [32, 32], [64, 32])
-                       ->willReturnOnConsecutiveCalls($userBatches[0], $userBatches[1], $userBatches[2],  $userBatches[3],  $userBatches[4]);
+                       ->willReturnOnConsecutiveCalls($userBatches[0], $userBatches[1], $userBatches[2], $userBatches[3], $userBatches[4]);
 
                $this->groupMapper->expects($this->once())
                        ->method('getList')
index 98d9c40902772cbac39540b43c612eabf06151ad..f2bc8bc69d89a1f1cd0dda24e12af036241cf0c2 100644 (file)
@@ -91,7 +91,7 @@ class UserLDAPPluginTest extends \Test\TestCase {
                $this->expectExceptionMessage('No plugin implements createUser in this LDAP Backend.');
 
                $pluginManager = $this->getUserPluginManager();
-               $pluginManager->createUser('foo','bar');
+               $pluginManager->createUser('foo', 'bar');
        }
 
        public function testSetPassword() {
@@ -122,7 +122,7 @@ class UserLDAPPluginTest extends \Test\TestCase {
                $this->expectExceptionMessage('No plugin implements setPassword in this LDAP Backend.');
 
                $pluginManager = $this->getUserPluginManager();
-               $pluginManager->setPassword('foo','bar');
+               $pluginManager->setPassword('foo', 'bar');
        }
 
        public function testGetHome() {
index b561840b4a5170ca8094cc308a12bd4ed037f68c..35c692d634fb88d1ab13a6571728e9db8d0520ea 100644 (file)
@@ -48,9 +48,9 @@ use OCP\HintException;
 use OCP\IConfig;
 use OCP\IUser;
 use OCP\Notification\IManager as INotificationManager;
-use Test\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
+use Test\TestCase;
 
 /**
  * Class Test_User_Ldap_Direct
index 7a47fc45c95ce78f3fd7b4223be020bf4b84fdcf..68e5e6169ee300727e6374bda66a7f52f53c369b 100644 (file)
@@ -27,10 +27,10 @@ namespace OCA\UserStatus\AppInfo;
 
 use OCA\UserStatus\Capabilities;
 use OCA\UserStatus\Connector\UserStatusProvider;
+use OCA\UserStatus\Dashboard\UserStatusWidget;
 use OCA\UserStatus\Listener\BeforeTemplateRenderedListener;
 use OCA\UserStatus\Listener\UserDeletedListener;
 use OCA\UserStatus\Listener\UserLiveStatusListener;
-use OCA\UserStatus\Dashboard\UserStatusWidget;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
index 8f2ef4215970c55dbaa10fcd4aaaef880d8f6bbb..7118f748f37aa8e54202e92f73682539cf9ccb00 100644 (file)
@@ -47,7 +47,7 @@ class ClearOldStatusesBackgroundJob extends TimedJob {
         * @param UserStatusMapper $mapper
         */
        public function __construct(ITimeFactory $time,
-                                                               UserStatusMapper $mapper) {
+               UserStatusMapper $mapper) {
                parent::__construct($time);
                $this->mapper = $mapper;
 
index ff05ded9e2bb5778a0408f37226866d14c7bb435..41dd25139643b58d4593fa6249cade039119ee17 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
 namespace OCA\UserStatus\Connector;
 
 use DateTimeImmutable;
-use OCP\UserStatus\IUserStatus;
 use OCA\UserStatus\Db;
+use OCP\UserStatus\IUserStatus;
 
 class UserStatus implements IUserStatus {
 
index cc674c9967eed9df180f488fe7b782ec6e21b96b..4bc2645dceb833c42899e7949b64fa54ff92e011 100644 (file)
@@ -25,9 +25,9 @@ declare(strict_types=1);
  */
 namespace OCA\UserStatus\Connector;
 
+use OC\UserStatus\ISettableProvider;
 use OCA\UserStatus\Service\StatusService;
 use OCP\UserStatus\IProvider;
-use OC\UserStatus\ISettableProvider;
 
 class UserStatusProvider implements IProvider, ISettableProvider {
 
index f1316f02df8409d46fd69a052d65c4fe40865cac..7eb0d7a41e156341b951cb3bf0eba53e45fee035 100644 (file)
@@ -46,7 +46,7 @@ class StatusProvider implements IBulkProvider {
                $statuses = $this->statusService->findByUserIds($uids);
                /** @var array<string, UserStatus> $indexed */
                $indexed = array_combine(
-                       array_map(fn(UserStatus $status) => $status->getUserId(), $statuses),
+                       array_map(fn (UserStatus $status) => $status->getUserId(), $statuses),
                        $statuses
                );
 
index c2b1ed57f015234754ee9f0ccdc3de0e6bbb5901..79e12902495fe5eddf9754457be50bfb108c55df 100644 (file)
@@ -29,8 +29,6 @@ namespace OCA\UserStatus\Controller;
 use OCA\UserStatus\Db\UserStatus;
 use OCA\UserStatus\ResponseDefinitions;
 use OCA\UserStatus\Service\StatusService;
-use OCP\AppFramework\Controller;
-use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCSController;
@@ -59,11 +57,11 @@ class HeartbeatController extends OCSController {
        private $service;
 
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               IEventDispatcher $eventDispatcher,
-                                                               IUserSession $userSession,
-                                                               ITimeFactory $timeFactory,
-                                                               StatusService $service) {
+               IRequest $request,
+               IEventDispatcher $eventDispatcher,
+               IUserSession $userSession,
+               ITimeFactory $timeFactory,
+               StatusService $service) {
                parent::__construct($appName, $request);
                $this->eventDispatcher = $eventDispatcher;
                $this->userSession = $userSession;
index ec78fedbc0b74d454f0d6953080756f6ac4e283f..99acdca9f79eb5831c203379a01b8b466e1ea1cf 100644 (file)
@@ -51,8 +51,8 @@ class PredefinedStatusController extends OCSController {
         * @param PredefinedStatusService $predefinedStatusService
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               PredefinedStatusService $predefinedStatusService) {
+               IRequest $request,
+               PredefinedStatusService $predefinedStatusService) {
                parent::__construct($appName, $request);
                $this->predefinedStatusService = $predefinedStatusService;
        }
index 9e2bea8ff2fd14c777841bbaf98001324adc3167..ff9008d1b708a45c3059aac57a165071816fa6ba 100644 (file)
@@ -54,8 +54,8 @@ class StatusesController extends OCSController {
         * @param StatusService $service
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               StatusService $service) {
+               IRequest $request,
+               StatusService $service) {
                parent::__construct($appName, $request);
                $this->service = $service;
        }
index 5f0647563ca3a0d721c652c24ab8c639302fc6c7..f2b1537e4f7a847a57287aa7b916f8c81e871433 100644 (file)
@@ -115,7 +115,7 @@ class UserStatusController extends OCSController {
         * 200: The message was updated successfully
         */
        public function setPredefinedMessage(string $messageId,
-                                                                                ?int $clearAt): DataResponse {
+               ?int $clearAt): DataResponse {
                try {
                        $status = $this->service->setPredefinedMessage($this->userId, $messageId, $clearAt);
                        $this->service->removeBackupUserStatus($this->userId);
@@ -143,8 +143,8 @@ class UserStatusController extends OCSController {
         * 200: The message was updated successfully
         */
        public function setCustomMessage(?string $statusIcon,
-                                                                        ?string $message,
-                                                                        ?int $clearAt): DataResponse {
+               ?string $message,
+               ?int $clearAt): DataResponse {
                try {
                        if (($message !== null && $message !== '') || ($clearAt !== null && $clearAt !== 0)) {
                                $status = $this->service->setCustomMessage($this->userId, $statusIcon, $message, $clearAt);
index 6c0dd356730d954bad1b762ff5456e6f9d925964..127f95d0a0eca50c96a16f9414638463d02a5867 100644 (file)
@@ -31,7 +31,6 @@ use OCA\UserStatus\Db\UserStatus;
 use OCA\UserStatus\Service\StatusService;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\Dashboard\IAPIWidget;
-use OCP\Dashboard\IButtonWidget;
 use OCP\Dashboard\IAPIWidgetV2;
 use OCP\Dashboard\IIconWidget;
 use OCP\Dashboard\IOptionWidget;
@@ -44,7 +43,6 @@ use OCP\IURLGenerator;
 use OCP\IUserManager;
 use OCP\IUserSession;
 use OCP\UserStatus\IUserStatus;
-use OCP\Util;
 
 /**
  * Class UserStatusWidget
@@ -72,12 +70,12 @@ class UserStatusWidget implements IAPIWidget, IAPIWidgetV2, IIconWidget, IOption
         * @param StatusService $service
         */
        public function __construct(IL10N $l10n,
-                                                               IDateTimeFormatter $dateTimeFormatter,
-                                                               IURLGenerator $urlGenerator,
-                                                               IInitialState $initialStateService,
-                                                               IUserManager $userManager,
-                                                               IUserSession $userSession,
-                                                               StatusService $service) {
+               IDateTimeFormatter $dateTimeFormatter,
+               IURLGenerator $urlGenerator,
+               IInitialState $initialStateService,
+               IUserManager $userManager,
+               IUserSession $userSession,
+               StatusService $service) {
                $this->l10n = $l10n;
                $this->dateTimeFormatter = $dateTimeFormatter;
                $this->urlGenerator = $urlGenerator;
@@ -176,7 +174,7 @@ class UserStatusWidget implements IAPIWidget, IAPIWidgetV2, IIconWidget, IOption
        public function getItems(string $userId, ?string $since = null, int $limit = 7): array {
                $widgetItemsData = $this->getWidgetData($userId, $since, $limit);
 
-               return array_map(function(array $widgetData) {
+               return array_map(function (array $widgetData) {
                        $formattedDate = $this->dateTimeFormatter->formatTimeSpan($widgetData['timestamp']);
                        return new WidgetItem(
                                $widgetData['displayName'],
index c8ffcca5ad90cb39323b76da697707bfef25b04b..febee32c82159fb7e5c9972bcfd05f07f517c00b 100644 (file)
@@ -26,11 +26,11 @@ declare(strict_types=1);
 
 namespace OCA\UserStatus\Db;
 
-use Sabre\CalDAV\Schedule\Plugin;
 use OCP\AppFramework\Db\QBMapper;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
 use OCP\UserStatus\IUserStatus;
+use Sabre\CalDAV\Schedule\Plugin;
 
 /**
  * @template-extends QBMapper<UserStatus>
index 0cacc89971a37f62f4284e44609541e1500a3e50..2840ab0ef3929acd418063c02944e54ec16c3f7b 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
 namespace OCA\UserStatus\Listener;
 
 use OCA\UserStatus\Service\StatusService;
-use OCP\EventDispatcher\IEventListener;
 use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventListener;
 use OCP\User\Events\UserDeletedEvent;
 
 /**
index 687e01fc3a787c4cab59760398e8f35cb6e03b14..0d0e6e3ebf02e601114feaf03cd83795474baa62 100644 (file)
@@ -25,14 +25,14 @@ declare(strict_types=1);
  */
 namespace OCA\UserStatus\Listener;
 
-use OCA\UserStatus\Db\UserStatus;
 use OCA\UserStatus\Connector\UserStatus as ConnectorUserStatus;
+use OCA\UserStatus\Db\UserStatus;
 use OCA\UserStatus\Db\UserStatusMapper;
 use OCA\UserStatus\Service\StatusService;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\EventDispatcher\IEventListener;
 use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventListener;
 use OCP\User\Events\UserLiveStatusEvent;
 use OCP\UserStatus\IUserStatus;
 
@@ -47,8 +47,8 @@ class UserLiveStatusListener implements IEventListener {
        private ITimeFactory $timeFactory;
 
        public function __construct(UserStatusMapper $mapper,
-                                                               StatusService $statusService,
-                                                               ITimeFactory $timeFactory) {
+               StatusService $statusService,
+               ITimeFactory $timeFactory) {
                $this->mapper = $mapper;
                $this->statusService = $statusService;
                $this->timeFactory = $timeFactory;
index 64490cc420761632fa5007627793e39f7952bf36..11e9f8261a4c54eff9115688abddb0d8eb401470 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
  */
 namespace OCA\UserStatus\Migration;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 2c20bd9f126c218874fd526ed30cfd40ada52a2f..f73e5f3b0d9aaaa48a01714e1d69ec1b4566f019 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index c08643ec64fbbb47ee05daeb34cd3b584e50832b..443389b7192d986300fe3fdd4c14cf95f55def0b 100644 (file)
@@ -44,7 +44,7 @@ class JSDataService implements \JsonSerializable {
         * @param StatusService $statusService
         */
        public function __construct(IUserSession $userSession,
-                                                               StatusService $statusService) {
+               StatusService $statusService) {
                $this->userSession = $userSession;
                $this->statusService = $statusService;
        }
index 99fafaa6426474711b9f1c257720854ceb30965c..829c6c58570a3732f16bc22cca6c87824988cc1e 100644 (file)
@@ -38,7 +38,6 @@ use OCA\UserStatus\Exception\InvalidStatusTypeException;
 use OCA\UserStatus\Exception\StatusMessageTooLongException;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\Calendar\ISchedulingInformation;
 use OCP\DB\Exception;
 use OCP\IConfig;
 use OCP\IEmojiHelper;
@@ -86,12 +85,12 @@ class StatusService {
        public const MAXIMUM_MESSAGE_LENGTH = 80;
 
        public function __construct(private UserStatusMapper $mapper,
-                                                               private ITimeFactory $timeFactory,
-                                                               private PredefinedStatusService $predefinedStatusService,
-                                                               private IEmojiHelper $emojiHelper,
-                                                               private IConfig $config,
-                                                               private IUserManager $userManager,
-                                                               private CalendarStatusService $calendarStatusService) {
+               private ITimeFactory $timeFactory,
+               private PredefinedStatusService $predefinedStatusService,
+               private IEmojiHelper $emojiHelper,
+               private IConfig $config,
+               private IUserManager $userManager,
+               private CalendarStatusService $calendarStatusService) {
                $this->shareeEnumeration = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes';
                $this->shareeEnumerationInGroupOnly = $this->shareeEnumeration && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no') === 'yes';
                $this->shareeEnumerationPhone = $this->shareeEnumeration && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_phone', 'no') === 'yes';
@@ -190,9 +189,9 @@ class StatusService {
         * @throws InvalidStatusTypeException
         */
        public function setStatus(string $userId,
-                                                         string $status,
-                                                         ?int $statusTimestamp,
-                                                         bool $isUserDefined): UserStatus {
+               string $status,
+               ?int $statusTimestamp,
+               bool $isUserDefined): UserStatus {
                try {
                        $userStatus = $this->mapper->findByUserId($userId);
                } catch (DoesNotExistException $ex) {
@@ -232,8 +231,8 @@ class StatusService {
         * @throws InvalidClearAtException
         */
        public function setPredefinedMessage(string $userId,
-                                                                                string $messageId,
-                                                                                ?int $clearAt): UserStatus {
+               string $messageId,
+               ?int $clearAt): UserStatus {
                try {
                        $userStatus = $this->mapper->findByUserId($userId);
                } catch (DoesNotExistException $ex) {
@@ -276,10 +275,10 @@ class StatusService {
         * @throws InvalidMessageIdException
         */
        public function setUserStatus(string $userId,
-                                                                       string $status,
-                                                                       string $messageId,
-                                                                       bool $createBackup,
-                                                                       string $customMessage = null): ?UserStatus {
+               string $status,
+               string $messageId,
+               bool $createBackup,
+               string $customMessage = null): ?UserStatus {
                // Check if status-type is valid
                if (!in_array($status, self::PRIORITY_ORDERED_STATUSES, true)) {
                        throw new InvalidStatusTypeException('Status-type "' . $status . '" is not supported');
@@ -339,9 +338,9 @@ class StatusService {
         * @throws StatusMessageTooLongException
         */
        public function setCustomMessage(string $userId,
-                                                                        ?string $statusIcon,
-                                                                        ?string $message,
-                                                                        ?int $clearAt): UserStatus {
+               ?string $statusIcon,
+               ?string $message,
+               ?int $clearAt): UserStatus {
                try {
                        $userStatus = $this->mapper->findByUserId($userId);
                } catch (DoesNotExistException $ex) {
@@ -569,7 +568,7 @@ class StatusService {
                        if (!$userStatus->getIsBackup()
                                && $userStatus->getMessageId() === $messageId) {
                                $statuesToDelete[$userStatus->getUserId()] = $userStatus->getId();
-                       } else if ($userStatus->getIsBackup()) {
+                       } elseif ($userStatus->getIsBackup()) {
                                $backups[$userStatus->getUserId()] = $userStatus->getId();
                        }
                }
index 61b5d3262872455109aaf5a4e0e2504877a36287..4a43aede5c01b62137636c66d3627d9de6abd4ed 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
 namespace OCA\UserStatus\Tests\Connector;
 
 use OCA\UserStatus\Connector\UserStatus;
-use Test\TestCase;
 use OCA\UserStatus\Db;
+use Test\TestCase;
 
 class UserStatusTest extends TestCase {
        public function testUserStatus() {
index b0cd9ef501e19a0e7109dfa8992f5e3c0f4aedcf..cabcc63b291dfea30e38c26530514f4ba3bf578a 100644 (file)
@@ -110,14 +110,14 @@ class UserStatusControllerTest extends TestCase {
         * @dataProvider setStatusDataProvider
         */
        public function testSetStatus(string $statusType,
-                                                                 ?string $statusIcon,
-                                                                 ?string $message,
-                                                                 ?int $clearAt,
-                                                                 bool $expectSuccess,
-                                                                 bool $expectException,
-                                                                 ?Throwable $exception,
-                                                                 bool $expectLogger,
-                                                                 ?string $expectedLogMessage): void {
+               ?string $statusIcon,
+               ?string $message,
+               ?int $clearAt,
+               bool $expectSuccess,
+               bool $expectException,
+               ?Throwable $exception,
+               bool $expectLogger,
+               ?string $expectedLogMessage): void {
                $userStatus = $this->getUserStatus();
 
                if ($expectException) {
@@ -178,12 +178,12 @@ class UserStatusControllerTest extends TestCase {
         * @dataProvider setPredefinedMessageDataProvider
         */
        public function testSetPredefinedMessage(string $messageId,
-                                                                                        ?int $clearAt,
-                                                                                        bool $expectSuccess,
-                                                                                        bool $expectException,
-                                                                                        ?Throwable $exception,
-                                                                                        bool $expectLogger,
-                                                                                        ?string $expectedLogMessage): void {
+               ?int $clearAt,
+               bool $expectSuccess,
+               bool $expectException,
+               ?Throwable $exception,
+               bool $expectLogger,
+               ?string $expectedLogMessage): void {
                $userStatus = $this->getUserStatus();
 
                if ($expectException) {
@@ -248,14 +248,14 @@ class UserStatusControllerTest extends TestCase {
         * @dataProvider setCustomMessageDataProvider
         */
        public function testSetCustomMessage(?string $statusIcon,
-                                                                                string $message,
-                                                                                ?int $clearAt,
-                                                                                bool $expectSuccess,
-                                                                                bool $expectException,
-                                                                                ?Throwable $exception,
-                                                                                bool $expectLogger,
-                                                                                ?string $expectedLogMessage,
-                                                                                bool $expectSuccessAsReset = false): void {
+               string $message,
+               ?int $clearAt,
+               bool $expectSuccess,
+               bool $expectException,
+               ?Throwable $exception,
+               bool $expectLogger,
+               ?string $expectedLogMessage,
+               bool $expectSuccessAsReset = false): void {
                $userStatus = $this->getUserStatus();
 
                if ($expectException) {
index 38913e5f8f5d1837c197a87b0f460fff5552e586..58267aed5f45276888f5fdc8e7235332cbd47fd9 100644 (file)
@@ -302,7 +302,7 @@ class UserStatusMapperTest extends TestCase {
                        $this->assertEquals('_user1', $user1Status->getUserId());
                        $this->assertEquals(true, $user1Status->getIsBackup());
                        $this->assertEquals('Current', $user1Status->getCustomMessage());
-               } else if ($hasBackup) {
+               } elseif ($hasBackup) {
                        $user1Status = $this->mapper->findByUserId('user1', true);
                        $this->assertEquals('_user1', $user1Status->getUserId());
                        $this->assertEquals(true, $user1Status->getIsBackup());
index b2d446d912ebe86daa9d8192336fa1a2c6012d33..5bc60ca71f92029747f2cf92e71671854d8ce60b 100644 (file)
@@ -72,13 +72,13 @@ class UserLiveStatusListenerTest extends TestCase {
         * @dataProvider handleEventWithCorrectEventDataProvider
         */
        public function testHandleWithCorrectEvent(string $userId,
-                                                                                          string $previousStatus,
-                                                                                          int $previousTimestamp,
-                                                                                          bool $previousIsUserDefined,
-                                                                                          string $eventStatus,
-                                                                                          int $eventTimestamp,
-                                                                                          bool $expectExisting,
-                                                                                          bool $expectUpdate): void {
+               string $previousStatus,
+               int $previousTimestamp,
+               bool $previousIsUserDefined,
+               string $eventStatus,
+               int $eventTimestamp,
+               bool $expectExisting,
+               bool $expectUpdate): void {
                $userStatus = new UserStatus();
 
                if ($expectExisting) {
index d0742a105a3619b2fb746d4c37a913952818d216..8789a42562217e6b8175873235a5100f5c1af038 100644 (file)
@@ -43,11 +43,9 @@ use OCA\UserStatus\Service\StatusService;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\DB\Exception;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IConfig;
 use OCP\IEmojiHelper;
 use OCP\IUser;
-use OCP\IUserBackend;
 use OCP\IUserManager;
 use OCP\UserStatus\IUserStatus;
 use PHPUnit\Framework\MockObject\MockObject;
@@ -274,15 +272,15 @@ class StatusServiceTest extends TestCase {
         * @dataProvider setStatusDataProvider
         */
        public function testSetStatus(string $userId,
-                                                                 string $status,
-                                                                 ?int $statusTimestamp,
-                                                                 bool $isUserDefined,
-                                                                 bool $expectExisting,
-                                                                 bool $expectSuccess,
-                                                                 bool $expectTimeFactory,
-                                                                 bool $expectException,
-                                                                 ?string $expectedExceptionClass,
-                                                                 ?string $expectedExceptionMessage): void {
+               string $status,
+               ?int $statusTimestamp,
+               bool $isUserDefined,
+               bool $expectExisting,
+               bool $expectSuccess,
+               bool $expectTimeFactory,
+               bool $expectException,
+               ?string $expectedExceptionClass,
+               ?string $expectedExceptionMessage): void {
                $userStatus = new UserStatus();
 
                if ($expectExisting) {
@@ -405,14 +403,14 @@ class StatusServiceTest extends TestCase {
         * @dataProvider setPredefinedMessageDataProvider
         */
        public function testSetPredefinedMessage(string $userId,
-                                                                                        string $messageId,
-                                                                                        bool $isValidMessageId,
-                                                                                        ?int $clearAt,
-                                                                                        bool $expectExisting,
-                                                                                        bool $expectSuccess,
-                                                                                        bool $expectException,
-                                                                                        ?string $expectedExceptionClass,
-                                                                                        ?string $expectedExceptionMessage): void {
+               string $messageId,
+               bool $isValidMessageId,
+               ?int $clearAt,
+               bool $expectExisting,
+               bool $expectSuccess,
+               bool $expectException,
+               ?string $expectedExceptionClass,
+               ?string $expectedExceptionMessage): void {
                $userStatus = new UserStatus();
 
                if ($expectExisting) {
@@ -503,15 +501,15 @@ class StatusServiceTest extends TestCase {
         * @dataProvider setCustomMessageDataProvider
         */
        public function testSetCustomMessage(string $userId,
-                                                                                ?string $statusIcon,
-                                                                                bool $supportsEmoji,
-                                                                                string $message,
-                                                                                ?int $clearAt,
-                                                                                bool $expectExisting,
-                                                                                bool $expectSuccess,
-                                                                                bool $expectException,
-                                                                                ?string $expectedExceptionClass,
-                                                                                ?string $expectedExceptionMessage): void {
+               ?string $statusIcon,
+               bool $supportsEmoji,
+               string $message,
+               ?int $clearAt,
+               bool $expectExisting,
+               bool $expectSuccess,
+               bool $expectException,
+               ?string $expectedExceptionClass,
+               ?string $expectedExceptionMessage): void {
                $userStatus = new UserStatus();
 
                if ($expectExisting) {
index e6f40321b3c856ca60abe3d1cc5345823c6bab08..e69215148e091f554e9d6280d6f6028d047a2801 100644 (file)
@@ -31,8 +31,8 @@ use OCP\AppFramework\Bootstrap\IBootContext;
 use OCP\AppFramework\Bootstrap\IBootstrap;
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
 use OCP\Dashboard\RegisterWidgetEvent;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Util;
 
 /**
index b7362a886882d213f95888ff03a15555688469f6..af1e92b83b3a3602241537ffc590e46b3fa925c2 100644 (file)
@@ -25,10 +25,10 @@ declare(strict_types=1);
  */
 namespace OCA\WeatherStatus;
 
-use OCP\Capabilities\ICapability;
-
 use OCA\WeatherStatus\AppInfo\Application;
 
+use OCP\Capabilities\ICapability;
+
 /**
  * Class Capabilities
  *
index 08f8049b964835e1d0ba58e5f5ba05c0c7312849..27cc19dafb2114e27b563d67fda7ca3f1dfa6378 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 /**
index ddf6bf30af6f5c5e774edb64820cd56626eeb635..ee57df56a3db8482bb92db1475c6757fd37d4916 100644 (file)
@@ -64,8 +64,8 @@ class Application extends App implements IBootstrap {
        }
 
        private function registerRuleListeners(IEventDispatcher $dispatcher,
-                                                                                  ContainerInterface $container,
-                                                                                  LoggerInterface $logger): void {
+               ContainerInterface $container,
+               LoggerInterface $logger): void {
                /** @var Manager $manager */
                $manager = $container->get(Manager::class);
                $configuredEvents = $manager->getAllConfiguredEvents();
index ee83f4821f15beb08d68eb209e1efc30365326c3..e7fe7d47e96869ce43290330abea7bad3c74e31a 100644 (file)
@@ -23,9 +23,9 @@
  */
 namespace OCA\WorkflowEngine\BackgroundJobs;
 
+use OCA\WorkflowEngine\AppInfo\Application;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\TimedJob;
-use OCA\WorkflowEngine\AppInfo\Application;
 use OCP\Log\RotationTrait;
 
 class Rotate extends TimedJob {
index 351364c5562e8c42d5d728d23e0a8c29edb42039..ecf0c3471e653ff2a23a7599f1f31dad50f59cd8 100644 (file)
@@ -26,6 +26,7 @@
  */
 namespace OCA\WorkflowEngine\Check;
 
+use OC\Files\Storage\Wrapper\Wrapper;
 use OCA\Files_Sharing\SharedStorage;
 use OCA\WorkflowEngine\Entity\File;
 use OCP\Files\Cache\ICache;
@@ -39,7 +40,6 @@ use OCP\SystemTag\ISystemTagObjectMapper;
 use OCP\SystemTag\TagNotFoundException;
 use OCP\WorkflowEngine\ICheck;
 use OCP\WorkflowEngine\IFileCheck;
-use OC\Files\Storage\Wrapper\Wrapper;
 
 class FileSystemTags implements ICheck, IFileCheck {
        use TFileCheck;
index a3806799ff0f3919a14cb75f209c872b1a4bf25b..3973d881ceaaec5c51ac87a2aaf4f9975cec8f91 100644 (file)
@@ -30,9 +30,9 @@ use OCA\WorkflowEngine\AppInfo\Application;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
 use OCP\Template;
+use OCP\Util;
 use function class_exists;
 use function function_exists;
-use OCP\Util;
 
 class LoadAdditionalSettingsScriptsListener implements IEventListener {
        public function handle(Event $event): void {
index d8be5e4f8df32da2787b057ba33a61e7e37bcac5..d232accd90015ed71d8246641a4cf009a34e248d 100644 (file)
@@ -30,7 +30,6 @@
 namespace OCA\WorkflowEngine;
 
 use Doctrine\DBAL\Exception;
-use OCP\Cache\CappedMemoryCache;
 use OCA\WorkflowEngine\AppInfo\Application;
 use OCA\WorkflowEngine\Check\FileMimeType;
 use OCA\WorkflowEngine\Check\FileName;
@@ -46,6 +45,7 @@ use OCA\WorkflowEngine\Helper\ScopeContext;
 use OCA\WorkflowEngine\Service\Logger;
 use OCA\WorkflowEngine\Service\RuleMatcher;
 use OCP\AppFramework\QueryException;
+use OCP\Cache\CappedMemoryCache;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\ICacheFactory;
index 351c1aa3fa5962ffd1f061bd0b6966f2fdaa8efd..ada7046a3d8664b876a4a51399cf51feba87b1fd 100644 (file)
@@ -31,9 +31,9 @@ namespace OCA\WorkflowEngine\Migration;
 
 use Closure;
 use Doctrine\DBAL\Schema\Table;
-use OCP\DB\Types;
 use OCA\WorkflowEngine\Entity\File;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index a0b02e2b64b0a92c82a0b178be6157cfa292ee8a..8ce72e73b828cd75ad7fe921d2e9fb8bb1a7a0a4 100644 (file)
@@ -26,9 +26,9 @@
  *
  */
 use GuzzleHttp\Client;
+use GuzzleHttp\Cookie\CookieJar;
 use GuzzleHttp\Exception\ClientException;
 use GuzzleHttp\Exception\ServerException;
-use GuzzleHttp\Cookie\CookieJar;
 
 require __DIR__ . '/../../vendor/autoload.php';
 
index 989f34692ca42bfeb00bcf0433afc7cb64528963..0eddf972bc1b067cd83ed571514304f1f9285cc7 100644 (file)
@@ -269,7 +269,7 @@ class CommentsContext implements \Behat\Behat\Context\Context {
         * @throws \Exception
         */
        public function theResponseShouldContainAPropertyWithValue($key, $value) {
-//             $keys = $this->response[0]['value'][1]['value'][0]['value'];
+               //              $keys = $this->response[0]['value'][1]['value'][0]['value'];
                $keys = $this->getValueFromNamedEntries('{DAV:}response {DAV:}propstat {DAV:}prop', $this->response);
                $found = false;
                foreach ($keys as $singleKey) {
index 2a6a509d65f7b8d11e16ba6c0f60f91aaafdcf6d..a38ef392e61f0631463cf1b2263bb86b7011a16b 100644 (file)
@@ -270,13 +270,13 @@ trait Sharing {
        }
 
        public function createShare($user,
-                                                               $path = null,
-                                                               $shareType = null,
-                                                               $shareWith = null,
-                                                               $publicUpload = null,
-                                                               $password = null,
-                                                               $permissions = null,
-                                                               $viewOnly = false) {
+               $path = null,
+               $shareType = null,
+               $shareWith = null,
+               $publicUpload = null,
+               $password = null,
+               $permissions = null,
+               $viewOnly = false) {
                $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares";
                $client = new Client();
                $options = [
index 2581e273cb91e7ea10e30b7cc85932cc14563086..f8b864c5864561ff52819f74d57ad7888cb065d4 100644 (file)
@@ -26,8 +26,8 @@
 namespace OC\Core\Command;
 
 use OC\Core\Command\User\ListCommand;
-use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
 use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
+use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\Table;
 use Symfony\Component\Console\Input\InputInterface;
index da450f30ca8c8dfa93559626f96cf5eafc1933d2..22a65d86e7b1db7486b33a9b1d99d255596f7e01 100644 (file)
@@ -68,7 +68,7 @@ class Test extends Command {
                        private $uid;
 
                        public function __construct(string $name,
-                                                                               string $uid) {
+                               string $uid) {
                                parent::__construct();
                                $this->name = $name;
                                $this->uid = $uid;
index 56dbf8ce8d97accf4841ab58f33f64074012ce0b..bd47fea20fe09ed56aee5aec2aa7b8c93b16fe8c 100644 (file)
@@ -38,8 +38,8 @@ use OC\DB\SchemaWrapper;
 use OCP\DB\Events\AddMissingIndicesEvent;
 use OCP\EventDispatcher\IEventDispatcher;
 use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
 
 /**
index e10382c6fbb53bad14a2893a372224b5d4bb748e..d73058767f2bdba6910b6a5181ff05299be40163 100644 (file)
@@ -33,9 +33,9 @@ namespace OC\Core\Command\Db;
 
 use Doctrine\DBAL\Platforms\SqlitePlatform;
 use Doctrine\DBAL\Types\Type;
-use OCP\DB\Types;
 use OC\DB\Connection;
 use OC\DB\SchemaWrapper;
+use OCP\DB\Types;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
index e95a6f47c1ff183307d53d38b1f21fa2ba86aeba..a1bfbd1fd3ea59d6e71e2f3541515bafdb66fff0 100644 (file)
@@ -35,11 +35,11 @@ namespace OC\Core\Command\Db;
 use Doctrine\DBAL\Exception;
 use Doctrine\DBAL\Schema\AbstractAsset;
 use Doctrine\DBAL\Schema\Table;
-use OCP\DB\Types;
 use OC\DB\Connection;
 use OC\DB\ConnectionFactory;
 use OC\DB\MigrationService;
 use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\DB\Types;
 use OCP\IConfig;
 use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
 use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
index 000cb0eb3d67dfdd6e582e9fed020c88113465d6..694f30f78b4704b2ad1e9ce7b32b9ce252d2fc26 100644 (file)
@@ -30,6 +30,7 @@ use OCA\GroupFolders\Mount\GroupMountPoint;
 use OCP\Constants;
 use OCP\Files\Config\IUserMountCache;
 use OCP\Files\FileInfo;
+use OCP\Files\Folder;
 use OCP\Files\IHomeStorage;
 use OCP\Files\IRootFolder;
 use OCP\Files\Mount\IMountPoint;
@@ -38,7 +39,6 @@ use OCP\Files\NotFoundException;
 use OCP\Share\IShare;
 use OCP\Util;
 use Symfony\Component\Console\Output\OutputInterface;
-use OCP\Files\Folder;
 
 class FileUtils {
        public function __construct(
index 6c40ca2820f52f9803cbe76e9c60d9e124fdbb14..021e83e0833558bbf090e84e646283fab35aacc3 100644 (file)
 namespace OC\Core\Command\Maintenance;
 
 use Exception;
-use OCP\App\IAppManager;
-use OCP\EventDispatcher\Event;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IConfig;
 use OC\Repair\Events\RepairAdvanceEvent;
 use OC\Repair\Events\RepairErrorEvent;
 use OC\Repair\Events\RepairFinishEvent;
@@ -40,6 +36,10 @@ use OC\Repair\Events\RepairInfoEvent;
 use OC\Repair\Events\RepairStartEvent;
 use OC\Repair\Events\RepairStepEvent;
 use OC\Repair\Events\RepairWarningEvent;
+use OCP\App\IAppManager;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\IConfig;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\ProgressBar;
 use Symfony\Component\Console\Input\InputInterface;
index e3c8a82c9d6a13b2668eaf18b62649e301175848..a89b9660a8cbaf46cc5ac20be9c15f2cc7478882 100644 (file)
@@ -26,11 +26,11 @@ declare(strict_types=1);
 
 namespace OC\Core\Command\Maintenance;
 
-use Symfony\Component\Console\Command\Command;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
 use OCP\IUser;
 use OCP\IUserManager;
+use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
index 6697afa537c5fc6cb65583747d6fddbbddfa95cd..a885d224fc7e734f18568c7caa5f773b7fa35b3b 100644 (file)
@@ -24,9 +24,9 @@ declare(strict_types=1);
 namespace OC\Core\Command\Preview;
 
 use OCP\Files\Config\IUserMountCache;
+use OCP\Files\File;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
-use OCP\Files\File;
 use OCP\Files\NotFoundException;
 use OCP\IPreview;
 use Symfony\Component\Console\Command\Command;
index e747ff99d592763848b045cebc1795f81206abc5..57b07308afe7b3fa930d450da5bf8b3dee17c7a1 100644 (file)
@@ -26,13 +26,13 @@ declare(strict_types=1);
  */
 namespace OC\Core\Command\TwoFactorAuth;
 
-use function implode;
 use OC\Authentication\TwoFactorAuth\EnforcementState;
 use OC\Authentication\TwoFactorAuth\MandatoryTwoFactor;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
+use function implode;
 
 class Enforce extends Command {
        public function __construct(
index ddae1fe963aa5a7dc87be6e6dfb3952fdfb2a945..5663056b50a4b3ae7c265d432bb9db45e76fe22b 100644 (file)
@@ -92,7 +92,7 @@ class State extends Base {
        }
 
        private function printProviders(string $title, array $providers,
-                                                                       OutputInterface $output) {
+               OutputInterface $output) {
                if (empty($providers)) {
                        // Ignore and don't print anything
                        return;
index 078f994d0516f0af9fcee9ba6d7204944e59a874..30acd8f7d4d7807cdbbffe5c755647bd1b4d950e 100644 (file)
  */
 namespace OC\Core\Command;
 
-use OCP\EventDispatcher\Event;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IConfig;
-use OCP\Util;
 use OC\Console\TimestampFormatter;
 use OC\DB\MigratorExecuteSqlEvent;
 use OC\Installer;
@@ -48,6 +44,10 @@ use OC\Repair\Events\RepairStartEvent;
 use OC\Repair\Events\RepairStepEvent;
 use OC\Repair\Events\RepairWarningEvent;
 use OC\Updater;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\IConfig;
+use OCP\Util;
 use Psr\Log\LoggerInterface;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\ProgressBar;
index 8cd6f2e62052f01ac1b2dcffbf296430f9cd9476..56bfcf787f843697873193299d4d0decc0e53af1 100644 (file)
@@ -23,8 +23,8 @@
 namespace OC\Core\Command\User\AuthTokens;
 
 use DateTimeImmutable;
-use OC\Core\Command\Base;
 use OC\Authentication\Token\IProvider;
+use OC\Core\Command\Base;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Exception\RuntimeException;
 use Symfony\Component\Console\Input\InputArgument;
index bfc4960625922018f3cee9724e3096fd314af680..0bcd2e5522558c240101e5fd5e615528e250a648 100644 (file)
@@ -22,9 +22,9 @@
  */
 namespace OC\Core\Command\User\AuthTokens;
 
-use OC\Core\Command\Base;
 use OC\Authentication\Token\IProvider;
 use OC\Authentication\Token\IToken;
+use OC\Core\Command\Base;
 use OCP\IUserManager;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputInterface;
index 0a073a586e42e7469ca0ce61188e4225b3b13f36..07a78ba368b47cf3034371d92363fa28e93949df 100644 (file)
@@ -181,8 +181,8 @@ class ClientFlowLoginController extends Controller {
         */
        #[UseSession]
        public function grantPage(string $stateToken = '',
-                                 string $clientIdentifier = '',
-                                 int $direct = 0): StandaloneTemplateResponse {
+               string $clientIdentifier = '',
+               int $direct = 0): StandaloneTemplateResponse {
                if (!$this->isValidToken($stateToken)) {
                        return $this->stateTokenForbiddenResponse();
                }
@@ -233,7 +233,7 @@ class ClientFlowLoginController extends Controller {
         */
        #[UseSession]
        public function generateAppPassword(string $stateToken,
-                                                                               string $clientIdentifier = '') {
+               string $clientIdentifier = '') {
                if (!$this->isValidToken($stateToken)) {
                        $this->session->remove(self::STATE_NAME);
                        return $this->stateTokenForbiddenResponse();
index 4f754204132fcce9ed825348c9081d08732e4ab6..db3e8a64d64c45741a5efc3c7f9616649b5d86fc 100644 (file)
@@ -272,11 +272,11 @@ class LoginController extends Controller {
         */
        #[UseSession]
        public function tryLogin(Chain $loginChain,
-                                                        string $user = '',
-                                                        string $password = '',
-                                                        string $redirect_url = null,
-                                                        string $timezone = '',
-                                                        string $timezone_offset = ''): RedirectResponse {
+               string $user = '',
+               string $password = '',
+               string $redirect_url = null,
+               string $timezone = '',
+               string $timezone_offset = ''): RedirectResponse {
                if (!$this->request->passesCSRFCheck()) {
                        if ($this->userSession->isLoggedIn()) {
                                // If the user is already logged in and the CSRF check does not pass then
index 9a1424c4c480125c37e06375731537d5297b0861..56b8b8eadcb87e3258b20e9522ba590df2c6ef4c 100644 (file)
 namespace OC\Core\Controller;
 
 use Exception;
+use OC\Authentication\TwoFactorAuth\Manager;
+use OC\Core\Events\BeforePasswordResetEvent;
+use OC\Core\Events\PasswordResetEvent;
+use OC\Core\Exception\ResetPasswordException;
+use OC\Security\RateLimiting\Exception\RateLimitExceededException;
+use OC\Security\RateLimiting\Limiter;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
 use OCP\AppFramework\Http\JSONResponse;
@@ -54,14 +60,8 @@ use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\Mail\IMailer;
-use OCP\Security\VerificationToken\IVerificationToken;
 use OCP\Security\VerificationToken\InvalidTokenException;
-use OC\Authentication\TwoFactorAuth\Manager;
-use OC\Core\Events\BeforePasswordResetEvent;
-use OC\Core\Events\PasswordResetEvent;
-use OC\Core\Exception\ResetPasswordException;
-use OC\Security\RateLimiting\Exception\RateLimitExceededException;
-use OC\Security\RateLimiting\Limiter;
+use OCP\Security\VerificationToken\IVerificationToken;
 use Psr\Log\LoggerInterface;
 use function array_filter;
 use function count;
index cc91fb7d5761b36d98bd3d6874eb5e43263681fd..193102c20a7f1edb5786edb80ef36d40c6947e15 100644 (file)
@@ -28,6 +28,7 @@ declare(strict_types=1);
 namespace OC\Core\Controller;
 
 use OC\Core\Db\ProfileConfigMapper;
+use OC\Profile\ProfileManager;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCS\OCSBadRequestException;
@@ -37,7 +38,6 @@ use OCP\AppFramework\OCSController;
 use OCP\IRequest;
 use OCP\IUserManager;
 use OCP\IUserSession;
-use OC\Profile\ProfileManager;
 
 class ProfileApiController extends OCSController {
        public function __construct(
index e32f54a8ff7cbe89fef76c5b55730b84838fb611..8ea2ad699c1dc08e7b20cb3e2e113856dda2e823 100644 (file)
@@ -28,19 +28,19 @@ declare(strict_types=1);
 namespace OC\Core\Controller;
 
 use OC\Profile\ProfileManager;
-use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
-use OCP\Profile\BeforeTemplateRenderedEvent;
 use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\INavigationManager;
 use OCP\IRequest;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\IUserSession;
+use OCP\Profile\BeforeTemplateRenderedEvent;
 use OCP\Share\IManager as IShareManager;
 use OCP\UserStatus\IManager as IUserStatusManager;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\INavigationManager;
 
 #[IgnoreOpenAPI]
 class ProfilePageController extends Controller {
index cec2dc90cf5ea59b0a0c29560523fd1d5b35c0ba..8d1ff7f86d29099935c1de4756c046dc88841124 100644 (file)
@@ -25,11 +25,11 @@ declare(strict_types=1);
 
 namespace OC\Core\Controller;
 
-use OCP\Collaboration\Reference\IReferenceManager;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataDownloadResponse;
 use OCP\AppFramework\Http\DataResponse;
+use OCP\Collaboration\Reference\IReferenceManager;
 use OCP\Files\AppData\IAppDataFactory;
 use OCP\Files\NotFoundException;
 use OCP\Files\NotPermittedException;
index a6b85fd46ae84c0f5f0d0096ca9384c661568341..cbba7e976b0d5a45100cd3c6d6d7111480c85c8a 100644 (file)
@@ -38,11 +38,11 @@ use OCP\Common\Exception\NotFoundException;
 use OCP\DB\Exception;
 use OCP\IL10N;
 use OCP\IRequest;
+use OCP\PreConditionNotMetException;
 use OCP\TextProcessing\Exception\TaskFailureException;
+use OCP\TextProcessing\IManager;
 use OCP\TextProcessing\ITaskType;
 use OCP\TextProcessing\Task;
-use OCP\TextProcessing\IManager;
-use OCP\PreConditionNotMetException;
 use Psr\Container\ContainerExceptionInterface;
 use Psr\Container\ContainerInterface;
 use Psr\Container\NotFoundExceptionInterface;
index 13ce4658d59e60d58d1a4961e96893d06017c857..9d97a538750618a621e562f03480b5c5d793a2a5 100644 (file)
@@ -40,11 +40,11 @@ use OCP\DB\Exception;
 use OCP\Files\NotFoundException;
 use OCP\IL10N;
 use OCP\IRequest;
+use OCP\PreConditionNotMetException;
 use OCP\TextToImage\Exception\TaskFailureException;
 use OCP\TextToImage\Exception\TaskNotFoundException;
-use OCP\TextToImage\Task;
 use OCP\TextToImage\IManager;
-use OCP\PreConditionNotMetException;
+use OCP\TextToImage\Task;
 
 /**
  * @psalm-import-type CoreTextToImageTask from ResponseDefinitions
index 5ae99c6a07644baef7586f7a75692a06ffceb056..9754515603c74d1ddcbb4194efb4da3ec53a918e 100644 (file)
@@ -31,6 +31,7 @@ namespace OC\Core\Controller;
 use InvalidArgumentException;
 use OC\Search\SearchComposer;
 use OC\Search\SearchQuery;
+use OC\Search\UnsupportedFilter;
 use OCA\Core\ResponseDefinitions;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
@@ -40,7 +41,6 @@ use OCP\IURLGenerator;
 use OCP\IUserSession;
 use OCP\Route\IRouter;
 use OCP\Search\ISearchQuery;
-use OC\Search\UnsupportedFilter;
 use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 
 /**
index 0cdf132ca9614ed2edc35b22ceedf7d8046eaa59..122adca88d0c66b96247a2d80972e79c53aefc8c 100644 (file)
@@ -26,11 +26,11 @@ declare(strict_types=1);
 
 namespace OC\Core\Db;
 
-use function json_decode;
-use function json_encode;
 use \JsonSerializable;
 use OCP\AppFramework\Db\Entity;
 use OCP\Profile\ParameterDoesNotExistException;
+use function json_decode;
+use function json_encode;
 
 /**
  * @method string getUserId()
index 9436502b4a030a81c02d0ecf638295c3edd4a76c..922e8a93587c216751c4b72c985cef44a2042099 100644 (file)
@@ -25,8 +25,8 @@
  */
 namespace OC\Core\Migrations;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index f0e489922fbc21a7f5de8ea09bfa348c7a6b5fbd..da83b0732d8a5ece0718e0777e849a7bd4858611 100644 (file)
@@ -32,8 +32,8 @@
 namespace OC\Core\Migrations;
 
 use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
@@ -751,7 +751,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
                                'unsigned' => true,
                        ]);
                        $table->setPrimaryKey(['objecttype', 'objectid', 'systemtagid'], 'som_pk');
-//                     $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping');
+                       //                      $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping');
                        $table->addIndex(['systemtagid', 'objecttype'], 'systag_by_tagid');
                }
 
@@ -888,25 +888,25 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
                        ]);
                        $table->addIndex(['object_type', 'object_id'], 'comments_marker_object_index');
                        $table->setPrimaryKey(['user_id', 'object_type', 'object_id'], 'crm_pk');
-//                     $table->addUniqueIndex(['user_id', 'object_type', 'object_id'], 'comments_marker_index');
+                       //                      $table->addUniqueIndex(['user_id', 'object_type', 'object_id'], 'comments_marker_index');
                }
 
-//             if (!$schema->hasTable('credentials')) {
-//                     $table = $schema->createTable('credentials');
-//                     $table->addColumn('user', 'string', [
-//                             'notnull' => false,
-//                             'length' => 64,
-//                     ]);
-//                     $table->addColumn('identifier', 'string', [
-//                             'notnull' => true,
-//                             'length' => 64,
-//                     ]);
-//                     $table->addColumn('credentials', 'text', [
-//                             'notnull' => false,
-//                     ]);
-//                     $table->setPrimaryKey(['user', 'identifier']);
-//                     $table->addIndex(['user'], 'credentials_user');
-//             }
+               //              if (!$schema->hasTable('credentials')) {
+               //                      $table = $schema->createTable('credentials');
+               //                      $table->addColumn('user', 'string', [
+               //                              'notnull' => false,
+               //                              'length' => 64,
+               //                      ]);
+               //                      $table->addColumn('identifier', 'string', [
+               //                              'notnull' => true,
+               //                              'length' => 64,
+               //                      ]);
+               //                      $table->addColumn('credentials', 'text', [
+               //                              'notnull' => false,
+               //                      ]);
+               //                      $table->setPrimaryKey(['user', 'identifier']);
+               //                      $table->addIndex(['user'], 'credentials_user');
+               //              }
 
                if (!$schema->hasTable('admin_sections')) {
                        $table = $schema->createTable('admin_sections');
index 57358eca66218f79fd45e5b121f10d599c5f9745..d12750fa77db1e4ea2055f96ea09c15318faaf19 100644 (file)
@@ -33,7 +33,7 @@ use OCP\Migration\SimpleMigrationStep;
 
 class Version14000Date20180522074438 extends SimpleMigrationStep {
        public function changeSchema(IOutput $output, Closure $schemaClosure,
-                                                                array $options): ISchemaWrapper {
+               array $options): ISchemaWrapper {
                $schema = $schemaClosure();
 
                if (!$schema->hasTable('twofactor_providers')) {
index 30ac28ccb6e2e9242c0ea87370d05fd4a363e69a..d04cc30eadfd1c09cc16f85ce6240be53f9157db 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
  */
 namespace OC\Core\Migrations;
 
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 6dc5a5b1773dc07504df884568293861116e14cb..7729f9203738d6dea50e64c38c8ec4896ccbee07 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
@@ -76,7 +76,7 @@ class Version16000Date20190207141427 extends SimpleMigrationStep {
                        ]);
 
                        $table->setPrimaryKey(['collection_id', 'resource_type', 'resource_id'], 'crr_pk');
-//                     $table->addUniqueIndex(['collection_id', 'resource_type', 'resource_id'], 'collres_unique_res');
+                       //                      $table->addUniqueIndex(['collection_id', 'resource_type', 'resource_id'], 'collres_unique_res');
                }
 
                if (!$schema->hasTable('collres_accesscache')) {
@@ -106,7 +106,7 @@ class Version16000Date20190207141427 extends SimpleMigrationStep {
                        ]);
 
                        $table->setPrimaryKey(['user_id', 'collection_id', 'resource_type', 'resource_id'], 'cra_pk');
-//                     $table->addUniqueIndex(['user_id', 'collection_id', 'resource_type', 'resource_id'], 'collres_unique_user');
+                       //                      $table->addUniqueIndex(['user_id', 'collection_id', 'resource_type', 'resource_id'], 'collres_unique_user');
                        $table->addIndex(['user_id', 'resource_type', 'resource_id'], 'collres_user_res');
                        $table->addIndex(['user_id', 'collection_id'], 'collres_user_coll');
                }
index 00ca7f845920ef333493c441e5f1b273fe683300..a1cda37c3a14d6c64d27c7d6ce3b80e9833f8f10 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 61d5ee0d2fa0e190567193c324681bf3d5343576..5513df828a74aacc1536dd329a56f14f43db2b84 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 6e081f7214d7cd276a12fe206bfb1b5834627958..5e7551fea9102c7a99a5d14954793d8e38d86450 100644 (file)
@@ -30,8 +30,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
@@ -67,7 +67,7 @@ class Version17000Date20190514105811 extends SimpleMigrationStep {
                                'default' => 0,
                        ]);
                        $table->setPrimaryKey(['fileid'], 'fce_pk');
-//                     $table->addUniqueIndex(['fileid'], 'fce_fileid_idx');
+                       //                      $table->addUniqueIndex(['fileid'], 'fce_fileid_idx');
                        $table->addIndex(['creation_time'], 'fce_ctime_idx');
                        $table->addIndex(['upload_time'], 'fce_utime_idx');
                }
index 2d28468fd0bb85d5d165334167988c1f6d1ee79f..8576d6b9873214a5c16a10fd032f31ef670c773a 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index b659977d55f35292a5895bc40f0e2a7fa603ccda..2404f8b79b5dccba70b7278e22434d958ff7ba16 100644 (file)
@@ -29,11 +29,11 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
-use OCP\Migration\SimpleMigrationStep;
 use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
 
 class Version18000Date20191014105105 extends SimpleMigrationStep {
        public function __construct(
index 1c5c623e7be517a5736b014e110a6355499511c0..618fa46b5ab584ed14ca1278e784c115b8e3259a 100644 (file)
@@ -28,8 +28,8 @@ namespace OC\Core\Migrations;
 use Closure;
 use OCP\DB\ISchemaWrapper;
 use OCP\IDBConnection;
-use OCP\Migration\SimpleMigrationStep;
 use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
 
 class Version18000Date20191204114856 extends SimpleMigrationStep {
        public function __construct(
index 6e23c0b4bfd12c222c259e5e170188f03b684629..c99650b783d6a1d9edfbcfc6a886069192273d07 100644 (file)
@@ -43,7 +43,7 @@ class Version20000Date20201109081915 extends SimpleMigrationStep {
 
                $result = $this->ensureColumnIsNullable($schema, 'share', 'password_by_talk');
                $result = $this->ensureColumnIsNullable($schema, 'share', 'hide_download') || $result;
-//             $result = $this->ensureColumnIsNullable($schema, 'credentials', 'user') || $result;
+               //              $result = $this->ensureColumnIsNullable($schema, 'credentials', 'user') || $result;
                $result = $this->ensureColumnIsNullable($schema, 'authtoken', 'password_invalid') || $result;
                $result = $this->ensureColumnIsNullable($schema, 'collres_accesscache', 'access') || $result;
 
index 5c275ed2c3a03e393d5c4cce861dd9071b3fc8ed..d060d7e306a3cd2eaaf767663a548f6011517da7 100644 (file)
@@ -28,8 +28,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\IDBConnection;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index c087447f050227909bfe5786800e9ce80e471f9d..f6473c07715f0de97b917e4b1f66c7ffacda7fd8 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use OCP\DB\Types;
 use OCP\DB\ISchemaWrapper;
+use OCP\DB\Types;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
index 1169ca4039eb95ace88235ea4cf33755b7fc534d..0218ebaaa41092279a5c563b2f2f0a45b5152438 100644 (file)
@@ -26,8 +26,8 @@ namespace OC\Core\Migrations;
 
 use Closure;
 use OCP\DB\ISchemaWrapper;
-use OCP\Migration\SimpleMigrationStep;
 use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
 
 class Version23000Date20210721100600 extends SimpleMigrationStep {
        /**
index d4476a4d36d947b2dd98a23ecec9496303e9ba33..fa52f172ece9fd0e3b3141eb0c67bcfdd181c422 100644 (file)
@@ -23,24 +23,24 @@ class Version23000Date20210906132259 extends SimpleMigrationStep {
                 * Therefore it was dropped with Version24000Date20211213081506
                 * and then recreated with a primary key in Version24000Date20211213081604
                 */
-//             /** @var ISchemaWrapper $schema */
-//             $schema = $schemaClosure();
-//
-//             $hasTable = $schema->hasTable(self::TABLE_NAME);
-//
-//             if (!$hasTable) {
-//                     $table = $schema->createTable(self::TABLE_NAME);
-//                     $table->addColumn('hash', Types::STRING, [
-//                             'notnull' => true,
-//                             'length' => 128,
-//                     ]);
-//                     $table->addColumn('delete_after', Types::DATETIME, [
-//                             'notnull' => true,
-//                     ]);
-//                     $table->addIndex(['hash'], 'ratelimit_hash');
-//                     $table->addIndex(['delete_after'], 'ratelimit_delete_after');
-//                     return $schema;
-//             }
+               //              /** @var ISchemaWrapper $schema */
+               //              $schema = $schemaClosure();
+               //
+               //              $hasTable = $schema->hasTable(self::TABLE_NAME);
+               //
+               //              if (!$hasTable) {
+               //                      $table = $schema->createTable(self::TABLE_NAME);
+               //                      $table->addColumn('hash', Types::STRING, [
+               //                              'notnull' => true,
+               //                              'length' => 128,
+               //                      ]);
+               //                      $table->addColumn('delete_after', Types::DATETIME, [
+               //                              'notnull' => true,
+               //                      ]);
+               //                      $table->addIndex(['hash'], 'ratelimit_hash');
+               //                      $table->addIndex(['delete_after'], 'ratelimit_delete_after');
+               //                      return $schema;
+               //              }
 
                return null;
        }
index bc7d8b67fc6da3b8d5c052f5af3b4880f53b5552..a826b6b7e7a1902f2abb9a1cbc223df91577cb44 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>
  *
  */
-use OCP\EventDispatcher\Event;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IEventSource;
-use OCP\IEventSourceFactory;
-use OCP\IL10N;
-use OCP\ILogger;
 use OC\DB\MigratorExecuteSqlEvent;
 use OC\Repair\Events\RepairAdvanceEvent;
 use OC\Repair\Events\RepairErrorEvent;
@@ -44,6 +38,12 @@ use OC\Repair\Events\RepairInfoEvent;
 use OC\Repair\Events\RepairStartEvent;
 use OC\Repair\Events\RepairStepEvent;
 use OC\Repair\Events\RepairWarningEvent;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\IEventSource;
+use OCP\IEventSourceFactory;
+use OCP\IL10N;
+use OCP\ILogger;
 use OCP\L10N\IFactory;
 
 if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
index c3089a2e143d00fca1b16faeb9101eb9815f9ada..a48bbbbb7b2b56dbbc2e74dd5e928d55f3328ab6 100644 (file)
@@ -1,10 +1,10 @@
 <?php
-       /** @var array $_ */
-       /** @var \OCP\IL10N $l */
-       \OCP\Util::addStyle('core', 'guest');
-       \OCP\Util::addStyle('core', 'publicshareauth');
-       \OCP\Util::addScript('core', 'publicshareauth');
-       ?>
+/** @var array $_ */
+/** @var \OCP\IL10N $l */
+\OCP\Util::addStyle('core', 'guest');
+\OCP\Util::addStyle('core', 'publicshareauth');
+\OCP\Util::addScript('core', 'publicshareauth');
+?>
 
 <div class="guest-box">
        <!-- password prompt form. It should be hidden when we show the email prompt form -->
index 7115927cba0e9957ea034674aa217aca3882d945..ada5df14e4f1fefe42763aa201d5c0ebea058812 100644 (file)
@@ -3,7 +3,7 @@
         'name' => '__root__',
         'pretty_version' => 'dev-master',
         'version' => 'dev-master',
-        'reference' => '41d274cd58f168047eb6a7673a7e43fff69ac07f',
+        'reference' => '559a758533026559cf632ed1b3d74f6b1ebfb481',
         'type' => 'library',
         'install_path' => __DIR__ . '/../../../',
         'aliases' => array(),
@@ -13,7 +13,7 @@
         '__root__' => array(
             'pretty_version' => 'dev-master',
             'version' => 'dev-master',
-            'reference' => '41d274cd58f168047eb6a7673a7e43fff69ac07f',
+            'reference' => '559a758533026559cf632ed1b3d74f6b1ebfb481',
             'type' => 'library',
             'install_path' => __DIR__ . '/../../../',
             'aliases' => array(),
index 3e33e783635fe0aa13d1548806d841c2900749a0..97156a027e61e044d55084f3926613cd48d2816f 100644 (file)
@@ -38,15 +38,15 @@ namespace OC\Accounts;
 use Exception;
 use InvalidArgumentException;
 use OC\Profile\TProfileHelper;
-use OCP\Accounts\UserUpdatedEvent;
-use OCP\Cache\CappedMemoryCache;
 use OCA\Settings\BackgroundJobs\VerifyUserData;
 use OCP\Accounts\IAccount;
 use OCP\Accounts\IAccountManager;
 use OCP\Accounts\IAccountProperty;
 use OCP\Accounts\IAccountPropertyCollection;
 use OCP\Accounts\PropertyDoesNotExistException;
+use OCP\Accounts\UserUpdatedEvent;
 use OCP\BackgroundJob\IJobList;
+use OCP\Cache\CappedMemoryCache;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\Defaults;
 use OCP\EventDispatcher\IEventDispatcher;
index a7d24510d530e3e25a4851d754a830d437efc6f8..14069260c6cfbe39a7fe4c370b64b6bf7a4f70be 100644 (file)
@@ -70,11 +70,11 @@ class Manager implements IManager {
        protected $l10n;
 
        public function __construct(
-                       IRequest $request,
-                       IUserSession $session,
-                       IConfig $config,
-                       IValidator $validator,
-                       IL10N $l10n
+               IRequest $request,
+               IUserSession $session,
+               IConfig $config,
+               IValidator $validator,
+               IL10N $l10n
        ) {
                $this->request = $request;
                $this->session = $session;
index 84bc297143ab8720a201a9298438b4f8b165a9e5..ad5fdc5afedc9b07612ec3bb098385132bf68028 100644 (file)
@@ -48,10 +48,10 @@ use OCP\App\Events\AppDisableEvent;
 use OCP\App\Events\AppEnableEvent;
 use OCP\App\IAppManager;
 use OCP\App\ManagerEvent;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Collaboration\AutoComplete\IManager as IAutoCompleteManager;
 use OCP\Collaboration\Collaborators\ISearch as ICollaboratorSearch;
 use OCP\Diagnostics\IEventLogger;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\ICacheFactory;
 use OCP\IConfig;
 use OCP\IGroup;
@@ -105,12 +105,12 @@ class AppManager implements IAppManager {
        private array $loadedApps = [];
 
        public function __construct(IUserSession $userSession,
-                                                               IConfig $config,
-                                                               AppConfig $appConfig,
-                                                               IGroupManager $groupManager,
-                                                               ICacheFactory $memCacheFactory,
-                                                               IEventDispatcher $dispatcher,
-                                                               LoggerInterface $logger) {
+               IConfig $config,
+               AppConfig $appConfig,
+               IGroupManager $groupManager,
+               ICacheFactory $memCacheFactory,
+               IEventDispatcher $dispatcher,
+               LoggerInterface $logger) {
                $this->userSession = $userSession;
                $this->config = $config;
                $this->appConfig = $appConfig;
index 47bdece372db3a1105a6246e9c81d97703bbba5e..f9fbd05855b8db5efb48e7d8d68ac8e691c6a254 100644 (file)
@@ -49,12 +49,12 @@ class AppFetcher extends Fetcher {
        private $ignoreMaxVersion;
 
        public function __construct(Factory $appDataFactory,
-                                                               IClientService $clientService,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config,
-                                                               CompareVersion $compareVersion,
-                                                               LoggerInterface $logger,
-                                                               IRegistry $registry) {
+               IClientService $clientService,
+               ITimeFactory $timeFactory,
+               IConfig $config,
+               CompareVersion $compareVersion,
+               LoggerInterface $logger,
+               IRegistry $registry) {
                parent::__construct(
                        $appDataFactory,
                        $clientService,
index afe051e6281a08f138a1374209a8267b0db7c6f3..d1bbe4f7b043420ba0d50c59bb0fa4004b67d61f 100644 (file)
@@ -35,11 +35,11 @@ use Psr\Log\LoggerInterface;
 
 class CategoryFetcher extends Fetcher {
        public function __construct(Factory $appDataFactory,
-                                                               IClientService $clientService,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config,
-                                                               LoggerInterface $logger,
-                                                               IRegistry $registry) {
+               IClientService $clientService,
+               ITimeFactory $timeFactory,
+               IConfig $config,
+               LoggerInterface $logger,
+               IRegistry $registry) {
                parent::__construct(
                        $appDataFactory,
                        $clientService,
index 095b026cb44887bb61fbd09c861ba4b1bb50d900..3e76ab2d5dae7dbbccffa3e70564c05dfef3ff59 100644 (file)
@@ -68,11 +68,11 @@ abstract class Fetcher {
        protected $channel = null;
 
        public function __construct(Factory $appDataFactory,
-                                                               IClientService $clientService,
-                                                               ITimeFactory $timeFactory,
-                                                               IConfig $config,
-                                                               LoggerInterface $logger,
-                                                               IRegistry $registry) {
+               IClientService $clientService,
+               ITimeFactory $timeFactory,
+               IConfig $config,
+               LoggerInterface $logger,
+               IRegistry $registry) {
                $this->appData = $appDataFactory->get('appstore');
                $this->clientService = $clientService;
                $this->timeFactory = $timeFactory;
index 1cab740bebbadbe1366954c2c0a3cf8ca6a7fc19..daff247d1bd7d101cf8a8bb07422b579b59a3729 100644 (file)
@@ -25,8 +25,8 @@
  */
 namespace OC\App;
 
-use OCP\IConfig;
 use OCP\IBinaryFinder;
+use OCP\IConfig;
 
 /**
  * Class Platform
index ffd77da888ed5a4f3a5b1da55cebcc906469bcd9..b18c95a2f0db66073df18904efc51bed559c20a6 100644 (file)
@@ -34,16 +34,16 @@ namespace OC\AppFramework;
 use OC\AppFramework\DependencyInjection\DIContainer;
 use OC\AppFramework\Http\Dispatcher;
 use OC\AppFramework\Http\Request;
-use OCP\App\IAppManager;
-use OCP\Profiler\IProfiler;
 use OC\Profiler\RoutingDataCollector;
-use OCP\AppFramework\QueryException;
+use OCP\App\IAppManager;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\ICallbackResponse;
 use OCP\AppFramework\Http\IOutput;
+use OCP\AppFramework\QueryException;
 use OCP\Diagnostics\IEventLogger;
 use OCP\HintException;
 use OCP\IRequest;
+use OCP\Profiler\IProfiler;
 
 /**
  * Entry point for every request in your app. You can consider this as your
@@ -257,7 +257,7 @@ class App {
         * @param DIContainer $container an instance of a pimple container.
         */
        public static function part(string $controllerName, string $methodName, array $urlParams,
-                                                               DIContainer $container) {
+               DIContainer $container) {
                $container['urlParams'] = $urlParams;
                $controller = $container[$controllerName];
 
index f41b734a25bcad5e70c9821434829f1c0b15ab23..8526a3dc1a1eec070312788775c7e1dfdb899145 100644 (file)
@@ -30,20 +30,20 @@ declare(strict_types=1);
 
 namespace OC\AppFramework\Bootstrap;
 
-use OCP\Diagnostics\IEventLogger;
-use function class_exists;
-use function class_implements;
-use function in_array;
-use OC_App;
 use OC\Support\CrashReport\Registry;
+use OC_App;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IBootstrap;
 use OCP\AppFramework\QueryException;
 use OCP\Dashboard\IManager;
+use OCP\Diagnostics\IEventLogger;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IServerContainer;
 use Psr\Log\LoggerInterface;
 use Throwable;
+use function class_exists;
+use function class_implements;
+use function in_array;
 
 class Coordinator {
        /** @var IServerContainer */
index 2ad410be26f05b956dc358b58751326ab5490df7..12801e62763350f20442e5264a67d65934a81c86 100644 (file)
@@ -37,9 +37,9 @@ class EventListenerRegistration extends ServiceRegistration {
        private $priority;
 
        public function __construct(string $appId,
-                                                               string $event,
-                                                               string $service,
-                                                               int $priority) {
+               string $event,
+               string $service,
+               int $priority) {
                parent::__construct($appId, $service);
                $this->event = $event;
                $this->priority = $priority;
index b501a757abdceba921dbc1f32beecf60a88726bd..958f24cb6003674b6422747f9ef1ee48a6e6f074 100644 (file)
@@ -36,8 +36,8 @@ final class ParameterRegistration extends ARegistration {
        private $value;
 
        public function __construct(string $appId,
-                                                               string $name,
-                                                               $value) {
+               string $name,
+               $value) {
                parent::__construct($appId);
                $this->name = $name;
                $this->value = $value;
index 36c5cae7db37d8f607c98e054a22d2e026693c36..e4d75f75bc8cfca8848e779e9852e5cff45a0847 100644 (file)
@@ -34,8 +34,8 @@ class PreviewProviderRegistration extends ServiceRegistration {
        private $mimeTypeRegex;
 
        public function __construct(string $appId,
-                                                               string $service,
-                                                               string $mimeTypeRegex) {
+               string $service,
+               string $mimeTypeRegex) {
                parent::__construct($appId, $service);
                $this->mimeTypeRegex = $mimeTypeRegex;
        }
index 5ff2dcd7969432ce5bcde372591b02d03133d91c..120ee7ea9fae832a4b9eef9ed21309310527c290 100644 (file)
@@ -30,15 +30,6 @@ declare(strict_types=1);
 namespace OC\AppFramework\Bootstrap;
 
 use Closure;
-use OCP\Calendar\Resource\IBackend as IResourceBackend;
-use OCP\Calendar\Room\IBackend as IRoomBackend;
-use OCP\Collaboration\Reference\IReferenceProvider;
-use OCP\TextProcessing\IProvider as ITextProcessingProvider;
-use OCP\SpeechToText\ISpeechToTextProvider;
-use OCP\Talk\ITalkBackend;
-use OCP\Translation\ITranslationProvider;
-use RuntimeException;
-use function array_shift;
 use OC\Support\CrashReport\Registry;
 use OCP\AppFramework\App;
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
@@ -46,7 +37,10 @@ use OCP\AppFramework\Middleware;
 use OCP\AppFramework\Services\InitialStateProvider;
 use OCP\Authentication\IAlternativeLogin;
 use OCP\Calendar\ICalendarProvider;
+use OCP\Calendar\Resource\IBackend as IResourceBackend;
+use OCP\Calendar\Room\IBackend as IRoomBackend;
 use OCP\Capabilities\ICapability;
+use OCP\Collaboration\Reference\IReferenceProvider;
 use OCP\Dashboard\IManager;
 use OCP\Dashboard\IWidget;
 use OCP\EventDispatcher\IEventDispatcher;
@@ -57,10 +51,16 @@ use OCP\Profile\ILinkAction;
 use OCP\Search\IProvider;
 use OCP\SetupCheck\ISetupCheck;
 use OCP\Share\IPublicShareTemplateProvider;
+use OCP\SpeechToText\ISpeechToTextProvider;
 use OCP\Support\CrashReport\IReporter;
+use OCP\Talk\ITalkBackend;
+use OCP\TextProcessing\IProvider as ITextProcessingProvider;
+use OCP\Translation\ITranslationProvider;
 use OCP\UserMigration\IMigrator as IUserMigrator;
 use Psr\Log\LoggerInterface;
+use RuntimeException;
 use Throwable;
+use function array_shift;
 
 class RegistrationContext {
        /** @var ServiceRegistration<ICapability>[] */
index e2b115e0353b25080e0f19544bf20a5dc20dac90..62c7169a7ee1be2f98b045b11c24911be1aa1fe3 100644 (file)
@@ -46,8 +46,8 @@ class ServiceAliasRegistration extends ARegistration {
         * @paslm-param string|class-string $target
         */
        public function __construct(string $appId,
-                                                               string $alias,
-                                                               string $target) {
+               string $alias,
+               string $target) {
                parent::__construct($appId);
                $this->alias = $alias;
                $this->target = $target;
index b6658e552396a45d2a7958b594dae177dd81db5a..9d166526d945daa80684fdccb8fea158c9a03df2 100644 (file)
@@ -45,9 +45,9 @@ class ServiceFactoryRegistration extends ARegistration {
        private $shared;
 
        public function __construct(string $appId,
-                                                               string $alias,
-                                                               callable $target,
-                                                               bool $shared) {
+               string $alias,
+               callable $target,
+               bool $shared) {
                parent::__construct($appId);
                $this->name = $alias;
                $this->factory = $target;
index 13b391eb28741b8569ec444c2a17c951f22ce5d9..7ff7f7a9cc044ec4a560bd4135868a03d1a1f00f 100644 (file)
@@ -88,14 +88,14 @@ class Dispatcher {
         * @param IEventLogger $eventLogger
         */
        public function __construct(Http $protocol,
-                                                               MiddlewareDispatcher $middlewareDispatcher,
-                                                               ControllerMethodReflector $reflector,
-                                                               IRequest $request,
-                                                               IConfig $config,
-                                                               ConnectionAdapter $connection,
-                                                               LoggerInterface $logger,
-                                                               IEventLogger $eventLogger,
-                                                               ContainerInterface $appContainer) {
+               MiddlewareDispatcher $middlewareDispatcher,
+               ControllerMethodReflector $reflector,
+               IRequest $request,
+               IConfig $config,
+               ConnectionAdapter $connection,
+               LoggerInterface $logger,
+               IEventLogger $eventLogger,
+               ContainerInterface $appContainer) {
                $this->protocol = $protocol;
                $this->middlewareDispatcher = $middlewareDispatcher;
                $this->reflector = $reflector;
index 1186753ac73110406b5709a68ddb4de754025411..b09737a6fc67be49bbf74a41e883a104ac463f24 100644 (file)
@@ -118,10 +118,10 @@ class Request implements \ArrayAccess, \Countable, IRequest {
         * @see https://www.php.net/manual/en/reserved.variables.php
         */
        public function __construct(array $vars,
-                                                               IRequestId $requestId,
-                                                               IConfig $config,
-                                                               CsrfTokenManager $csrfTokenManager = null,
-                                                               string $stream = 'php://input') {
+               IRequestId $requestId,
+               IConfig $config,
+               CsrfTokenManager $csrfTokenManager = null,
+               string $stream = 'php://input') {
                $this->inputStream = $stream;
                $this->items['params'] = [];
                $this->requestId = $requestId;
index 70032873a757b373d967ebda202012c3a49b8f28..a6b24c0a2ff7526dc7cc9b49ea7fd47089921dd8 100644 (file)
@@ -31,7 +31,7 @@ class RequestId implements IRequestId {
        protected string $requestId;
 
        public function __construct(string $uniqueId,
-                                                               ISecureRandom $secureRandom) {
+               ISecureRandom $secureRandom) {
                $this->requestId = $uniqueId;
                $this->secureRandom = $secureRandom;
        }
index f0d6ece8a93fb1207963eb7a76fcb9c284be3634..fef9632487ec8b3ce18144883110928522301c49 100644 (file)
@@ -59,9 +59,9 @@ class CORSMiddleware extends Middleware {
        private $throttler;
 
        public function __construct(IRequest $request,
-                                                               ControllerMethodReflector $reflector,
-                                                               Session $session,
-                                                               IThrottler $throttler) {
+               ControllerMethodReflector $reflector,
+               Session $session,
+               IThrottler $throttler) {
                $this->request = $request;
                $this->reflector = $reflector;
                $this->session = $session;
index ae0dc1f134e633c3fc26d33927481d0ebb1d90d4..60a7cef8fa1d26622ef6e093016b381d9616ab84 100644 (file)
@@ -44,8 +44,8 @@ class CSPMiddleware extends Middleware {
        private $csrfTokenManager;
 
        public function __construct(ContentSecurityPolicyManager $policyManager,
-                                                               ContentSecurityPolicyNonceManager $cspNonceManager,
-                                                               CsrfTokenManager $csrfTokenManager) {
+               ContentSecurityPolicyNonceManager $cspNonceManager,
+               CsrfTokenManager $csrfTokenManager) {
                $this->contentSecurityPolicyManager = $policyManager;
                $this->cspNonceManager = $cspNonceManager;
                $this->csrfTokenManager = $csrfTokenManager;
index a72a7a4001623cc30e6e66333558e8131df23791..351f47ea924590d0e4873e7b556fda305c6b92ff 100644 (file)
@@ -55,9 +55,9 @@ class PasswordConfirmationMiddleware extends Middleware {
         * @param ITimeFactory $timeFactory
         */
        public function __construct(ControllerMethodReflector $reflector,
-                                                               ISession $session,
-                                                               IUserSession $userSession,
-                                                               ITimeFactory $timeFactory) {
+               ISession $session,
+               IUserSession $userSession,
+               ITimeFactory $timeFactory) {
                $this->reflector = $reflector;
                $this->session = $session;
                $this->userSession = $userSession;
index e6d35dc66f2745ad41f19eee7d1c94c5369ceb5c..870efdd44faf629afef67901a2ab7a453f434782 100644 (file)
@@ -38,7 +38,7 @@ class SameSiteCookieMiddleware extends Middleware {
        private $reflector;
 
        public function __construct(Request $request,
-                                                               ControllerMethodReflector $reflector) {
+               ControllerMethodReflector $reflector) {
                $this->request = $request;
                $this->reflector = $reflector;
        }
index db6c7a02c777756a6661168037e4dac21fb7135a..a97876fd9ab221a0808949aa4a2f6c81f75dcfc4 100644 (file)
@@ -104,18 +104,18 @@ class SecurityMiddleware extends Middleware {
        private $userSession;
 
        public function __construct(IRequest $request,
-                                                               ControllerMethodReflector $reflector,
-                                                               INavigationManager $navigationManager,
-                                                               IURLGenerator $urlGenerator,
-                                                               LoggerInterface $logger,
-                                                               string $appName,
-                                                               bool $isLoggedIn,
-                                                               bool $isAdminUser,
-                                                               bool $isSubAdmin,
-                                                               IAppManager $appManager,
-                                                               IL10N $l10n,
-                                                               AuthorizedGroupMapper $mapper,
-                                                               IUserSession $userSession
+               ControllerMethodReflector $reflector,
+               INavigationManager $navigationManager,
+               IURLGenerator $urlGenerator,
+               LoggerInterface $logger,
+               string $appName,
+               bool $isLoggedIn,
+               bool $isAdminUser,
+               bool $isSubAdmin,
+               IAppManager $appManager,
+               IL10N $l10n,
+               AuthorizedGroupMapper $mapper,
+               IUserSession $userSession
        ) {
                $this->navigationManager = $navigationManager;
                $this->request = $request;
index 39f85915901d669f58085890b5137db51811e270..0acdcf8b7ef02ae6782e6ea27e42953f66195dc9 100644 (file)
@@ -44,7 +44,7 @@ class SessionMiddleware extends Middleware {
        private $session;
 
        public function __construct(ControllerMethodReflector $reflector,
-                                                               ISession $session) {
+               ISession $session) {
                $this->reflector = $reflector;
                $this->session = $session;
        }
index 123b73d302c6fef4b84530adcfc4b421d32d75dc..3cfe8177ae78a1a995dd4f32d8787487eb682828 100644 (file)
@@ -64,10 +64,10 @@ abstract class BaseResponse extends Response {
         * @param int|null $itemsPerPage
         */
        public function __construct(DataResponse $dataResponse,
-                                                               $format = 'xml',
-                                                               $statusMessage = null,
-                                                               $itemsCount = null,
-                                                               $itemsPerPage = null) {
+               $format = 'xml',
+               $statusMessage = null,
+               $itemsCount = null,
+               $itemsPerPage = null) {
                parent::__construct();
 
                $this->format = $format;
index 4ed91cdb6c02f3acba0b5a548912fc35b9111d1f..1cb58da11ef27df985db0dffc75c8717545ed3aa 100644 (file)
@@ -37,7 +37,7 @@ class ScopedPsrLogger implements LoggerInterface {
        private $appId;
 
        public function __construct(LoggerInterface $inner,
-                                                               string $appId) {
+               string $appId) {
                $this->inner = $inner;
                $this->appId = $appId;
        }
index ecd8485cd7b663d365ae270a80a9d013555f2cf3..83aed4381b3421ca1e22a08e72f32de7c30b7fbd 100644 (file)
@@ -37,8 +37,8 @@ use Pimple\Container;
 use Psr\Container\ContainerInterface;
 use ReflectionClass;
 use ReflectionException;
-use ReflectionParameter;
 use ReflectionNamedType;
+use ReflectionParameter;
 use function class_exists;
 
 /**
index c42d02d485d8d15e482787c6e5f2545d65bf46c2..2e36034d04fb85d407a5e17df1fdd5ad79a391ba 100644 (file)
@@ -46,10 +46,10 @@ class AppScriptSort {
         * @param array $sortedScriptDeps
         */
        private function topSortVisit(
-                       AppScriptDependency $app,
-                       array &$parents,
-                       array &$scriptDeps,
-                       array &$sortedScriptDeps): void {
+               AppScriptDependency $app,
+               array &$parents,
+               array &$scriptDeps,
+               array &$sortedScriptDeps): void {
                // Detect and log circular dependencies
                if (isset($parents[$app->getId()])) {
                        $this->logger->error('Circular dependency in app scripts at app ' . $app->getId());
index edebb2a2641a981bf4310677c0c9b54417e5a7cc..3e8348f075a4c6929d8bfa22370ade695612dcb2 100644 (file)
@@ -46,7 +46,7 @@ class RemoteWipeActivityListener implements IEventListener {
        private $logger;
 
        public function __construct(IActvityManager $activityManager,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->activityManager = $activityManager;
                $this->logger = $logger;
        }
index cba2b183589848329be55121d0da129da75424f8..fb3f771d1e42fecc0264cc5b3c808b5c24c775e0 100644 (file)
@@ -57,9 +57,9 @@ class RemoteWipeEmailListener implements IEventListener {
        private $logger;
 
        public function __construct(IMailer $mailer,
-                                                               IUserManager $userManager,
-                                                               IL10nFactory $l10nFactory,
-                                                               LoggerInterface $logger) {
+               IUserManager $userManager,
+               IL10nFactory $l10nFactory,
+               LoggerInterface $logger) {
                $this->mailer = $mailer;
                $this->userManager = $userManager;
                $this->l10n = $l10nFactory->get('core');
index 81feab32746f03a7d825c8eed9b352e5b1d8d5a0..37732ecf5f254a2b169c317d8536b5e8eecf45e8 100644 (file)
@@ -45,7 +45,7 @@ class RemoteWipeNotificationsListener implements IEventListener {
        private $timeFactory;
 
        public function __construct(INotificationManager $notificationManager,
-                                                               ITimeFactory $timeFactory) {
+               ITimeFactory $timeFactory) {
                $this->notificationManager = $notificationManager;
                $this->timeFactory = $timeFactory;
        }
index a09a08568d545bc27fa049522d36277723e36983..f4f08a50add8a5a315c8771c6d8d876431fd1a4c 100644 (file)
@@ -44,7 +44,7 @@ class UserDeletedTokenCleanupListener implements IEventListener {
        private $logger;
 
        public function __construct(Manager $manager,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->manager = $manager;
                $this->logger = $logger;
        }
index 3c3179472c4f487e1cf602d2f9396bdab24bef86..60ecd004388fb26733981dcc332002052f3a5909 100644 (file)
@@ -63,17 +63,17 @@ class Chain {
        private $finishRememberedLoginCommand;
 
        public function __construct(PreLoginHookCommand $preLoginHookCommand,
-                                                               UserDisabledCheckCommand $userDisabledCheckCommand,
-                                                               UidLoginCommand $uidLoginCommand,
-                                                               EmailLoginCommand $emailLoginCommand,
-                                                               LoggedInCheckCommand $loggedInCheckCommand,
-                                                               CompleteLoginCommand $completeLoginCommand,
-                                                               CreateSessionTokenCommand $createSessionTokenCommand,
-                                                               ClearLostPasswordTokensCommand $clearLostPasswordTokensCommand,
-                                                               UpdateLastPasswordConfirmCommand $updateLastPasswordConfirmCommand,
-                                                               SetUserTimezoneCommand $setUserTimezoneCommand,
-                                                               TwoFactorCommand $twoFactorCommand,
-                                                               FinishRememberedLoginCommand $finishRememberedLoginCommand
+               UserDisabledCheckCommand $userDisabledCheckCommand,
+               UidLoginCommand $uidLoginCommand,
+               EmailLoginCommand $emailLoginCommand,
+               LoggedInCheckCommand $loggedInCheckCommand,
+               CompleteLoginCommand $completeLoginCommand,
+               CreateSessionTokenCommand $createSessionTokenCommand,
+               ClearLostPasswordTokensCommand $clearLostPasswordTokensCommand,
+               UpdateLastPasswordConfirmCommand $updateLastPasswordConfirmCommand,
+               SetUserTimezoneCommand $setUserTimezoneCommand,
+               TwoFactorCommand $twoFactorCommand,
+               FinishRememberedLoginCommand $finishRememberedLoginCommand
        ) {
                $this->preLoginHookCommand = $preLoginHookCommand;
                $this->userDisabledCheckCommand = $userDisabledCheckCommand;
index ba237dfbf205c8ec77a49cc463aaeb23bd5cfa62..41616e6dad3df9b6ae107f64f1600daaabb9cfda 100644 (file)
@@ -39,7 +39,7 @@ class CreateSessionTokenCommand extends ALoginCommand {
        private $userSession;
 
        public function __construct(IConfig $config,
-                                                               Session $userSession) {
+               Session $userSession) {
                $this->config = $config;
                $this->userSession = $userSession;
        }
index dc1a4d2d88328ae50f91b9fc319fa80a9c2c1660..6b241d7974691ae9dd572c12d2948180fec356a2 100644 (file)
@@ -39,7 +39,7 @@ class LoggedInCheckCommand extends ALoginCommand {
        private $dispatcher;
 
        public function __construct(LoggerInterface $logger,
-                                                               IEventDispatcher $dispatcher) {
+               IEventDispatcher $dispatcher) {
                $this->logger = $logger;
                $this->dispatcher = $dispatcher;
        }
index 240a1dc647612f0ae61fa064b70e2ba9307c2ce8..0ce11cf70fcea88e7923c591242181db96d256b0 100644 (file)
@@ -55,11 +55,11 @@ class LoginData {
        private $rememberLogin = true;
 
        public function __construct(IRequest $request,
-                                                               string $username,
-                                                               ?string $password,
-                                                               string $redirectUrl = null,
-                                                               string $timeZone = '',
-                                                               string $timeZoneOffset = '') {
+               string $username,
+               ?string $password,
+               string $redirectUrl = null,
+               string $timeZone = '',
+               string $timeZoneOffset = '') {
                $this->request = $request;
                $this->username = $username;
                $this->password = $password;
index f68fce1771e26d1b181c453774286a05fff421e2..881e1c451a9bacebc23ee8b8d033045fc6fc11c8 100644 (file)
@@ -36,7 +36,7 @@ class SetUserTimezoneCommand extends ALoginCommand {
        private $session;
 
        public function __construct(IConfig $config,
-                                                               ISession $session) {
+               ISession $session) {
                $this->config = $config;
                $this->session = $session;
        }
index 256d88ffa811be8c6cce5496808abf39c6b6580c..aa5a2ff96f4834cf08ae5bd3c4c09242b8e6e6f7 100644 (file)
@@ -26,12 +26,12 @@ declare(strict_types=1);
  */
 namespace OC\Authentication\Login;
 
-use function array_pop;
-use function count;
 use OC\Authentication\TwoFactorAuth\Manager;
 use OC\Authentication\TwoFactorAuth\MandatoryTwoFactor;
 use OCP\Authentication\TwoFactorAuth\IProvider;
 use OCP\IURLGenerator;
+use function array_pop;
+use function count;
 
 class TwoFactorCommand extends ALoginCommand {
        /** @var Manager */
@@ -44,8 +44,8 @@ class TwoFactorCommand extends ALoginCommand {
        private $urlGenerator;
 
        public function __construct(Manager $twoFactorManager,
-                                                               MandatoryTwoFactor $mandatoryTwoFactor,
-                                                               IURLGenerator $urlGenerator) {
+               MandatoryTwoFactor $mandatoryTwoFactor,
+               IURLGenerator $urlGenerator) {
                $this->twoFactorManager = $twoFactorManager;
                $this->mandatoryTwoFactor = $mandatoryTwoFactor;
                $this->urlGenerator = $urlGenerator;
index 7cf4c7235ec19ba4558577ae492e2f848130124b..8354457b56a2bb18c0a874f8e58e7adfc4dd53f8 100644 (file)
@@ -38,7 +38,7 @@ class UserDisabledCheckCommand extends ALoginCommand {
        private $logger;
 
        public function __construct(IUserManager $userManager,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->userManager = $userManager;
                $this->logger = $logger;
        }
index f3ebc313a443fc6f47fd20090b0a436e410a4505..d0fcf691d4659ac4018905f39604a61a630c6541 100644 (file)
@@ -57,15 +57,15 @@ class WebAuthnChain {
        private $webAuthnLoginCommand;
 
        public function __construct(UserDisabledCheckCommand $userDisabledCheckCommand,
-                                                               WebAuthnLoginCommand $webAuthnLoginCommand,
-                                                               LoggedInCheckCommand $loggedInCheckCommand,
-                                                               CompleteLoginCommand $completeLoginCommand,
-                                                               CreateSessionTokenCommand $createSessionTokenCommand,
-                                                               ClearLostPasswordTokensCommand $clearLostPasswordTokensCommand,
-                                                               UpdateLastPasswordConfirmCommand $updateLastPasswordConfirmCommand,
-                                                               SetUserTimezoneCommand $setUserTimezoneCommand,
-                                                               TwoFactorCommand $twoFactorCommand,
-                                                               FinishRememberedLoginCommand $finishRememberedLoginCommand
+               WebAuthnLoginCommand $webAuthnLoginCommand,
+               LoggedInCheckCommand $loggedInCheckCommand,
+               CompleteLoginCommand $completeLoginCommand,
+               CreateSessionTokenCommand $createSessionTokenCommand,
+               ClearLostPasswordTokensCommand $clearLostPasswordTokensCommand,
+               UpdateLastPasswordConfirmCommand $updateLastPasswordConfirmCommand,
+               SetUserTimezoneCommand $setUserTimezoneCommand,
+               TwoFactorCommand $twoFactorCommand,
+               FinishRememberedLoginCommand $finishRememberedLoginCommand
        ) {
                $this->userDisabledCheckCommand = $userDisabledCheckCommand;
                $this->webAuthnLoginCommand = $webAuthnLoginCommand;
index 3a09e983ee8e68e84ba481d47fca6bf54587c32c..e1e29946446194e8732d5b6438b0df430ee00442 100644 (file)
@@ -48,8 +48,8 @@ class Store implements IStore {
        private $tokenProvider;
 
        public function __construct(ISession $session,
-                                                               LoggerInterface $logger,
-                                                               IProvider $tokenProvider = null) {
+               LoggerInterface $logger,
+               IProvider $tokenProvider = null) {
                $this->session = $session;
                $this->logger = $logger;
                $this->tokenProvider = $tokenProvider;
index a12d3ba34d993fa391886651ac85d180cd147190..4af5e2b25c34343e33e54df9692178d8895d6e24 100644 (file)
@@ -49,12 +49,12 @@ interface IProvider {
         * @throws \RuntimeException when OpenSSL reports a problem
         */
        public function generateToken(string $token,
-                                                                 string $uid,
-                                                                 string $loginName,
-                                                                 ?string $password,
-                                                                 string $name,
-                                                                 int $type = IToken::TEMPORARY_TOKEN,
-                                                                 int $remember = IToken::DO_NOT_REMEMBER): IToken;
+               string $uid,
+               string $loginName,
+               ?string $password,
+               string $name,
+               int $type = IToken::TEMPORARY_TOKEN,
+               int $remember = IToken::DO_NOT_REMEMBER): IToken;
 
        /**
         * Get a token by token id
index 6a1c7d4c1e7a5063ac0a25b828f44f391e4277d1..18ec687cac29a8f2580f1f0c917933a4776d675b 100644 (file)
@@ -55,12 +55,12 @@ class Manager implements IProvider, OCPIProvider {
         * @return IToken
         */
        public function generateToken(string $token,
-                                                                 string $uid,
-                                                                 string $loginName,
-                                                                 $password,
-                                                                 string $name,
-                                                                 int $type = IToken::TEMPORARY_TOKEN,
-                                                                 int $remember = IToken::DO_NOT_REMEMBER): IToken {
+               string $uid,
+               string $loginName,
+               $password,
+               string $name,
+               int $type = IToken::TEMPORARY_TOKEN,
+               int $remember = IToken::DO_NOT_REMEMBER): IToken {
                if (mb_strlen($name) > 128) {
                        $name = mb_substr($name, 0, 120) . '…';
                }
index 3fb1161107608431971f429a0f876451502b7021..a88194726ae7805d823bcbd3596a41f319e7c10a 100644 (file)
@@ -31,13 +31,13 @@ namespace OC\Authentication\Token;
 
 use OC\Authentication\Exceptions\ExpiredTokenException;
 use OC\Authentication\Exceptions\InvalidTokenException;
-use OC\Authentication\Exceptions\TokenPasswordExpiredException;
 use OC\Authentication\Exceptions\PasswordlessTokenException;
+use OC\Authentication\Exceptions\TokenPasswordExpiredException;
 use OC\Authentication\Exceptions\WipeTokenException;
-use OCP\AppFramework\Db\TTransactional;
-use OCP\Cache\CappedMemoryCache;
 use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\AppFramework\Db\TTransactional;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\Cache\CappedMemoryCache;
 use OCP\IConfig;
 use OCP\IDBConnection;
 use OCP\IUserManager;
@@ -73,12 +73,12 @@ class PublicKeyTokenProvider implements IProvider {
        private IHasher $hasher;
 
        public function __construct(PublicKeyTokenMapper $mapper,
-                                                               ICrypto $crypto,
-                                                               IConfig $config,
-                                                               IDBConnection $db,
-                                                               LoggerInterface $logger,
-                                                               ITimeFactory $time,
-                                                               IHasher $hasher) {
+               ICrypto $crypto,
+               IConfig $config,
+               IDBConnection $db,
+               LoggerInterface $logger,
+               ITimeFactory $time,
+               IHasher $hasher) {
                $this->mapper = $mapper;
                $this->crypto = $crypto;
                $this->config = $config;
@@ -94,12 +94,12 @@ class PublicKeyTokenProvider implements IProvider {
         * {@inheritDoc}
         */
        public function generateToken(string $token,
-                                                                 string $uid,
-                                                                 string $loginName,
-                                                                 ?string $password,
-                                                                 string $name,
-                                                                 int $type = IToken::TEMPORARY_TOKEN,
-                                                                 int $remember = IToken::DO_NOT_REMEMBER): IToken {
+               string $uid,
+               string $loginName,
+               ?string $password,
+               string $name,
+               int $type = IToken::TEMPORARY_TOKEN,
+               int $remember = IToken::DO_NOT_REMEMBER): IToken {
                if (strlen($token) < self::TOKEN_MIN_LENGTH) {
                        $exception = new InvalidTokenException('Token is too short, minimum of ' . self::TOKEN_MIN_LENGTH . ' characters is required, ' . strlen($token) . ' characters given');
                        $this->logger->error('Invalid token provided when generating new token', ['exception' => $exception]);
@@ -425,12 +425,12 @@ class PublicKeyTokenProvider implements IProvider {
         * @throws \RuntimeException when OpenSSL reports a problem
         */
        private function newToken(string $token,
-                                                         string $uid,
-                                                         string $loginName,
-                                                         $password,
-                                                         string $name,
-                                                         int $type,
-                                                         int $remember): PublicKeyToken {
+               string $uid,
+               string $loginName,
+               $password,
+               string $name,
+               int $type,
+               int $remember): PublicKeyToken {
                $dbToken = new PublicKeyToken();
                $dbToken->setUid($uid);
                $dbToken->setLoginName($loginName);
index 5fd01cfbe879cd2860dc298c17b89654e6663c64..e4882f678d9795a6b212cdc5cbba6a27c3ae9930 100644 (file)
@@ -27,14 +27,14 @@ declare(strict_types=1);
  */
 namespace OC\Authentication\Token;
 
-use Psr\Log\LoggerInterface;
-use function array_filter;
 use OC\Authentication\Events\RemoteWipeFinished;
 use OC\Authentication\Events\RemoteWipeStarted;
 use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Exceptions\WipeTokenException;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IUser;
+use Psr\Log\LoggerInterface;
+use function array_filter;
 
 class RemoteWipe {
        /** @var IProvider */
@@ -47,8 +47,8 @@ class RemoteWipe {
        private $logger;
 
        public function __construct(IProvider $tokenProvider,
-                                                               IEventDispatcher $eventDispatcher,
-                                                               LoggerInterface $logger) {
+               IEventDispatcher $eventDispatcher,
+               LoggerInterface $logger) {
                $this->tokenProvider = $tokenProvider;
                $this->eventDispatcher = $eventDispatcher;
                $this->logger = $logger;
index b95128c1e0fe28f5458edd0d5a72cebdfd3ddaad..91f133d6ad02ed8d183fdf4f4f0297fbefc6c884 100644 (file)
@@ -45,8 +45,8 @@ class EnforcementState implements JsonSerializable {
         * @param string[] $excludedGroups
         */
        public function __construct(bool $enforced,
-                                                               array $enforcedGroups = [],
-                                                               array $excludedGroups = []) {
+               array $enforcedGroups = [],
+               array $excludedGroups = []) {
                $this->enforced = $enforced;
                $this->enforcedGroups = $enforcedGroups;
                $this->excludedGroups = $excludedGroups;
index ff0c33445a2ad4a968b96d7400411259fc4417f7..b0bb73c3115b51609e8335812545f25e1e5e8544 100644 (file)
@@ -89,15 +89,15 @@ class Manager {
        private $userIsTwoFactorAuthenticated = [];
 
        public function __construct(ProviderLoader $providerLoader,
-                                                               IRegistry $providerRegistry,
-                                                               MandatoryTwoFactor $mandatoryTwoFactor,
-                                                               ISession $session,
-                                                               IConfig $config,
-                                                               IManager $activityManager,
-                                                               LoggerInterface $logger,
-                                                               TokenProvider $tokenProvider,
-                                                               ITimeFactory $timeFactory,
-                                                               IEventDispatcher $eventDispatcher) {
+               IRegistry $providerRegistry,
+               MandatoryTwoFactor $mandatoryTwoFactor,
+               ISession $session,
+               IConfig $config,
+               IManager $activityManager,
+               LoggerInterface $logger,
+               TokenProvider $tokenProvider,
+               ITimeFactory $timeFactory,
+               IEventDispatcher $eventDispatcher) {
                $this->providerLoader = $providerLoader;
                $this->providerRegistry = $providerRegistry;
                $this->mandatoryTwoFactor = $mandatoryTwoFactor;
index af270fb83c8b93fe36e625818cfdc6dfaa5a967d..4d39fd82bc690d735c8798d184146b6b005d8e43 100644 (file)
@@ -25,9 +25,9 @@ declare(strict_types=1);
  */
 namespace OC\Authentication\TwoFactorAuth;
 
-use function array_filter;
 use OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider;
 use OCP\Authentication\TwoFactorAuth\IProvider;
+use function array_filter;
 
 /**
  * Contains all two-factor provider information for the two-factor login challenge
index 482c025e14415754f8b98c404ddb1437e3562fa0..db7722655836f3c5e878317e873fec380effdbae 100644 (file)
@@ -45,7 +45,7 @@ class Registry implements IRegistry {
        private $dispatcher;
 
        public function __construct(ProviderUserAssignmentDao $assignmentDao,
-                                                               IEventDispatcher $dispatcher) {
+               IEventDispatcher $dispatcher) {
                $this->assignmentDao = $assignmentDao;
                $this->dispatcher = $dispatcher;
        }
index 744a3fa354acf1dfa17d392970f04dc7e0dbf59d..5a97a573b99453bb644724c697c235fadd0dc4a3 100644 (file)
@@ -91,7 +91,7 @@ class Manager {
                        $user->getUID(),                              //Name
                        $user->getUID(),                              //ID
                        $user->getDisplayName()                      //Display name
-//            'https://foo.example.co/avatar/123e4567-e89b-12d3-a456-426655440000' //Icon
+                       //            'https://foo.example.co/avatar/123e4567-e89b-12d3-a456-426655440000' //Icon
                );
 
                $challenge = random_bytes(32);
index 26614cf6cfafe2c1ed0f50c4bec2433cac041991..106e159d192e55b51323cb74e7f7a1d0d8c18459 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
  */
 namespace OC\Avatar;
 
-use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\InMemoryFile;
+use OCP\Files\SimpleFS\ISimpleFile;
 use Psr\Log\LoggerInterface;
 
 /**
index a7ef55237dba019e4778462118b176db07cf19f9..17427e9261932b0a3359a7d8354d304f0f80446c 100644 (file)
@@ -22,9 +22,9 @@ declare(strict_types = 1);
 
 namespace OC;
 
+use OCP\IBinaryFinder;
 use OCP\ICache;
 use OCP\ICacheFactory;
-use OCP\IBinaryFinder;
 use Symfony\Component\Process\ExecutableFinder;
 
 /**
index 7885a98869d6faff9d8a29b9f674d61faecf81d5..6b34b50cb98638485ee441c3edd20404c743a181 100644 (file)
@@ -30,8 +30,8 @@ namespace OC;
 
 use OCP\AppFramework\QueryException;
 use OCP\Capabilities\ICapability;
-use OCP\Capabilities\IPublicCapability;
 use OCP\Capabilities\IInitialStateExcludedCapability;
+use OCP\Capabilities\IPublicCapability;
 use Psr\Log\LoggerInterface;
 
 class CapabilitiesManager {
index cbdd84efbb368a4bcd670d6117253f19456d0be8..37ebf2fb129a0cdae248367282020e3b3c26c324 100644 (file)
@@ -37,8 +37,8 @@ use OCP\IConfig;
 use OCP\IGroupManager;
 use OCP\IUser;
 use OCP\IUserSession;
-use OCP\Share\IShare;
 use OCP\Mail\IMailer;
+use OCP\Share\IShare;
 
 class MailPlugin implements ISearchPlugin {
        protected bool $shareWithGroupOnly;
index 7216bcc762aed888679b9d4258cdbb77671d0f47..f7b0ee1a3d3fc252861a627a20a8a56ed2767640 100644 (file)
@@ -22,8 +22,8 @@
  */
 namespace OC\Command;
 
-use OC\BackgroundJob\QueuedJob;
 use Laravel\SerializableClosure\SerializableClosure as LaravelClosure;
+use OC\BackgroundJob\QueuedJob;
 
 class ClosureJob extends QueuedJob {
        protected function run($argument) {
index 8749ad0bff598ef55ebcd13adc83897f757574d1..42ff458a95c357a6e215904adb5c2665c1e41d0a 100644 (file)
@@ -25,8 +25,8 @@
  */
 namespace OC\Command;
 
-use OCP\Command\ICommand;
 use Laravel\SerializableClosure\SerializableClosure;
+use OCP\Command\ICommand;
 
 class CronBus extends AsyncBus {
        /**
index 725febef85d0d484cd4e267228023f5b6a56fd18..e92cfddc60b473fd5cbae64d4e36874575eae1fc 100644 (file)
@@ -40,8 +40,8 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IConfig;
 use OCP\IDBConnection;
 use OCP\IEmojiHelper;
-use OCP\IUser;
 use OCP\IInitialStateService;
+use OCP\IUser;
 use OCP\PreConditionNotMetException;
 use OCP\Util;
 use Psr\Log\LoggerInterface;
@@ -66,11 +66,11 @@ class Manager implements ICommentsManager {
        protected array $displayNameResolvers = [];
 
        public function __construct(IDBConnection $dbConn,
-                                                               LoggerInterface $logger,
-                                                               IConfig $config,
-                                                               ITimeFactory $timeFactory,
-                                                               IEmojiHelper $emojiHelper,
-                                                               IInitialStateService $initialStateService) {
+               LoggerInterface $logger,
+               IConfig $config,
+               ITimeFactory $timeFactory,
+               IEmojiHelper $emojiHelper,
+               IInitialStateService $initialStateService) {
                $this->dbConn = $dbConn;
                $this->logger = $logger;
                $this->config = $config;
@@ -536,8 +536,8 @@ class Manager implements ICommentsManager {
         * @param int $id the comment to look for
         */
        protected function getLastKnownComment(string $objectType,
-                                                                                  string $objectId,
-                                                                                  int $id): ?IComment {
+               string $objectId,
+               int $id): ?IComment {
                $query = $this->dbConn->getQueryBuilder();
                $query->select('*')
                        ->from('comments')
index a0306c9798cccfa243429b21418f4e7e792f6f15..900b2c57f413f1ad87b0a0e23c51c61270c1446b 100644 (file)
@@ -55,10 +55,10 @@ class Application {
        private MemoryInfo $memoryInfo;
 
        public function __construct(IConfig $config,
-                                                               IEventDispatcher $dispatcher,
-                                                               IRequest $request,
-                                                               LoggerInterface $logger,
-                                                               MemoryInfo $memoryInfo) {
+               IEventDispatcher $dispatcher,
+               IRequest $request,
+               LoggerInterface $logger,
+               MemoryInfo $memoryInfo) {
                $defaults = \OC::$server->getThemingDefaults();
                $this->config = $config;
                $this->application = new SymfonyApplication($defaults->getName(), \OC_Util::getVersionString());
index df35e0b5e0dc38bb3e57dce9cf9b54679ed9d8f1..6e2724ca5abc12aa0cedf5f4239a146c71df87f6 100644 (file)
@@ -46,13 +46,13 @@ use Doctrine\DBAL\Platforms\SqlitePlatform;
 use Doctrine\DBAL\Result;
 use Doctrine\DBAL\Schema\Schema;
 use Doctrine\DBAL\Statement;
+use OC\DB\QueryBuilder\QueryBuilder;
+use OC\SystemConfig;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\Diagnostics\IEventLogger;
 use OCP\IRequestId;
 use OCP\PreConditionNotMetException;
 use OCP\Profiler\IProfiler;
-use OC\DB\QueryBuilder\QueryBuilder;
-use OC\SystemConfig;
 use Psr\Log\LoggerInterface;
 
 class Connection extends \Doctrine\DBAL\Connection {
index 1d960e72dc52f8fc11b5cf4b5b233fd5c59eb941..7cf95b040004cc284b7e78da31c27c9675616f7c 100644 (file)
@@ -35,9 +35,9 @@ use Doctrine\DBAL\Schema\Schema;
 use Doctrine\DBAL\Schema\SchemaDiff;
 use Doctrine\DBAL\Types\StringType;
 use Doctrine\DBAL\Types\Type;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IConfig;
 use function preg_match;
-use OCP\EventDispatcher\IEventDispatcher;
 
 class Migrator {
        /** @var Connection */
@@ -52,8 +52,8 @@ class Migrator {
        private $noEmit = false;
 
        public function __construct(Connection $connection,
-                                                               IConfig $config,
-                                                               ?IEventDispatcher $dispatcher = null) {
+               IConfig $config,
+               ?IEventDispatcher $dispatcher = null) {
                $this->connection = $connection;
                $this->config = $config;
                $this->dispatcher = $dispatcher;
index afe28872e694639c6285ee728281f2379fd88d70..5a7e4f3c6dce4ac9f866093be150e38d8ed07116 100644 (file)
@@ -33,8 +33,8 @@ use OCP\Dashboard\IManager;
 use OCP\Dashboard\IWidget;
 use Psr\Container\ContainerExceptionInterface;
 use Psr\Container\ContainerInterface;
-use Throwable;
 use Psr\Log\LoggerInterface;
+use Throwable;
 
 class Manager implements IManager {
        /** @var array */
index 2dd2abe54085b852e745c1689981443af8ce4ccb..d1be1f50330c91b56c34df381f51a47bdca80379 100644 (file)
@@ -25,8 +25,9 @@
  */
 namespace OC\DirectEditing;
 
-use Doctrine\DBAL\FetchMode;
+use \OCP\DirectEditing\IManager;
 use \OCP\Files\Folder;
+use Doctrine\DBAL\FetchMode;
 use OCP\AppFramework\Http\NotFoundResponse;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Http\TemplateResponse;
@@ -34,7 +35,6 @@ use OCP\Constants;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\DirectEditing\ACreateFromTemplate;
 use OCP\DirectEditing\IEditor;
-use \OCP\DirectEditing\IManager;
 use OCP\DirectEditing\IToken;
 use OCP\Encryption\IManager as EncryptionManager;
 use OCP\Files\File;
index e58b36565932cd36a7fa23df7aa684909fb56a21..a6bc72ef18f8e6961aa948b0df69233f7e424fda 100644 (file)
@@ -53,8 +53,8 @@ class EncryptionWrapper {
         * EncryptionWrapper constructor.
         */
        public function __construct(ArrayCache $arrayCache,
-                                                               Manager $manager,
-                                                               LoggerInterface $logger
+               Manager $manager,
+               LoggerInterface $logger
        ) {
                $this->arrayCache = $arrayCache;
                $this->manager = $manager;
index daab097ce7c6b8d9624e8c81e4d7abb64f6461d8..f2b1de232347225629fdccc9917a5835322e2dd7 100644 (file)
@@ -27,9 +27,9 @@
  */
 namespace OC\Encryption;
 
-use OCP\Cache\CappedMemoryCache;
 use OCA\Files_External\Service\GlobalStoragesService;
 use OCP\App\IAppManager;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Files\IRootFolder;
 use OCP\Files\NotFoundException;
 use OCP\Share\IManager;
@@ -47,8 +47,8 @@ class File implements \OCP\Encryption\IFile {
        private ?IAppManager $appManager = null;
 
        public function __construct(Util $util,
-                                                               IRootFolder $rootFolder,
-                                                               IManager $shareManager) {
+               IRootFolder $rootFolder,
+               IManager $shareManager) {
                $this->util = $util;
                $this->cache = new CappedMemoryCache();
                $this->rootFolder = $rootFolder;
index 5081bcccf948db4f343568eb1b74e14e2def0608..afcb7ce376316e1d0196fa607dd23143a16fe4ae 100644 (file)
@@ -24,8 +24,8 @@
 namespace OC\Encryption;
 
 use OC\Files\Filesystem;
-use OC\Files\View;
 use OC\Files\SetupManager;
+use OC\Files\View;
 use Psr\Log\LoggerInterface;
 
 class HookManager {
index 2e390177baf33e9b561e356f0ac4d9925ca5b688..1d9ec8510d047b39a311d97d127daf5f1c9d3fb9 100644 (file)
@@ -62,14 +62,14 @@ class Update {
         * @param string $uid
         */
        public function __construct(
-                       View $view,
-                       Util $util,
-                       Mount\Manager $mountManager,
-                       Manager $encryptionManager,
-                       File $file,
-                       LoggerInterface $logger,
-                       $uid
-               ) {
+               View $view,
+               Util $util,
+               Mount\Manager $mountManager,
+               Manager $encryptionManager,
+               File $file,
+               LoggerInterface $logger,
+               $uid
+       ) {
                $this->view = $view;
                $this->util = $util;
                $this->mountManager = $mountManager;
index 88c6b2cf32c9b1793cbe4bedf00683a9501a3f01..14c13d516c0e2e0cd00a8f8a111c4f48654da29d 100644 (file)
@@ -27,17 +27,17 @@ declare(strict_types=1);
  */
 namespace OC\EventDispatcher;
 
-use OC\Log;
-use Psr\Log\LoggerInterface;
-use function get_class;
 use OC\Broadcast\Events\BroadcastEvent;
+use OC\Log;
 use OCP\Broadcast\Events\IBroadcastEvent;
 use OCP\EventDispatcher\ABroadcastedEvent;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IContainer;
 use OCP\IServerContainer;
+use Psr\Log\LoggerInterface;
 use Symfony\Component\EventDispatcher\EventDispatcher as SymfonyDispatcher;
+use function get_class;
 
 class EventDispatcher implements IEventDispatcher {
        /** @var SymfonyDispatcher */
@@ -50,8 +50,8 @@ class EventDispatcher implements IEventDispatcher {
        private $logger;
 
        public function __construct(SymfonyDispatcher $dispatcher,
-                                                               IServerContainer $container,
-                                                               LoggerInterface $logger) {
+               IServerContainer $container,
+               LoggerInterface $logger) {
                $this->dispatcher = $dispatcher;
                $this->container = $container;
                $this->logger = $logger;
@@ -64,19 +64,19 @@ class EventDispatcher implements IEventDispatcher {
        }
 
        public function addListener(string $eventName,
-                                                               callable $listener,
-                                                               int $priority = 0): void {
+               callable $listener,
+               int $priority = 0): void {
                $this->dispatcher->addListener($eventName, $listener, $priority);
        }
 
        public function removeListener(string $eventName,
-                                                                  callable $listener): void {
+               callable $listener): void {
                $this->dispatcher->removeListener($eventName, $listener);
        }
 
        public function addServiceListener(string $eventName,
-                                                                          string $className,
-                                                                          int $priority = 0): void {
+               string $className,
+               int $priority = 0): void {
                $listener = new ServiceEventListener(
                        $this->container,
                        $className,
@@ -90,7 +90,7 @@ class EventDispatcher implements IEventDispatcher {
         * @deprecated
         */
        public function dispatch(string $eventName,
-                                                        Event $event): void {
+               Event $event): void {
                $this->dispatcher->dispatch($event, $eventName);
 
                if ($event instanceof ABroadcastedEvent && !$event->isPropagationStopped()) {
index 21cdf7f8cc21e1aac923a33ce1aee441b98b8de5..a7bbbcd82aa983a5006b2ea4bb536c80168c7dd5 100644 (file)
@@ -54,8 +54,8 @@ final class ServiceEventListener {
        private $service;
 
        public function __construct(IServerContainer $container,
-                                                               string $class,
-                                                               LoggerInterface $logger) {
+               string $class,
+               LoggerInterface $logger) {
                $this->container = $container;
                $this->class = $class;
                $this->logger = $logger;
index 0f79ba521eab65f09e3dee03c143892f985411b7..4b741b28bee0aa76bcbfdbe823a5f46dd0c1d99d 100644 (file)
@@ -57,16 +57,16 @@ class CloudFederationShare implements ICloudFederationShare {
         * @param string $sharedSecret
         */
        public function __construct($shareWith = '',
-                                                               $name = '',
-                                                               $description = '',
-                                                               $providerId = '',
-                                                               $owner = '',
-                                                               $ownerDisplayName = '',
-                                                               $sharedBy = '',
-                                                               $sharedByDisplayName = '',
-                                                               $shareType = '',
-                                                               $resourceType = '',
-                                                               $sharedSecret = ''
+               $name = '',
+               $description = '',
+               $providerId = '',
+               $owner = '',
+               $ownerDisplayName = '',
+               $sharedBy = '',
+               $sharedByDisplayName = '',
+               $shareType = '',
+               $resourceType = '',
+               $sharedSecret = ''
        ) {
                $this->setShareWith($shareWith);
                $this->setResourceName($name);
index 237fcb42e0376dac441e2286cabe1d186fb99ade..1c632c3062f7c4d53d4e28c09adeee9edab87e83 100644 (file)
@@ -26,9 +26,9 @@ declare(strict_types=1);
  */
 namespace OC\Files\AppData;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\SimpleFS\SimpleFolder;
 use OC\SystemConfig;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Files\Folder;
 use OCP\Files\IAppData;
 use OCP\Files\IRootFolder;
@@ -53,8 +53,8 @@ class AppData implements IAppData {
         * @param string $appId
         */
        public function __construct(IRootFolder $rootFolder,
-                                                               SystemConfig $systemConfig,
-                                                               string $appId) {
+               SystemConfig $systemConfig,
+               string $appId) {
                $this->rootFolder = $rootFolder;
                $this->config = $systemConfig;
                $this->appId = $appId;
index 03f8fdedcbd729dff5d0447cf909f60df959888f..a16c3df327dc8082e2b46ba0d157df038d45c579 100644 (file)
@@ -39,7 +39,7 @@ class Factory implements IAppDataFactory {
        private array $folders = [];
 
        public function __construct(IRootFolder $rootFolder,
-                                                               SystemConfig $systemConfig) {
+               SystemConfig $systemConfig) {
                $this->rootFolder = $rootFolder;
                $this->config = $systemConfig;
        }
index 46228af565b1539202c49af0862ad86a36a5b0b6..c09087b43aee2cbfdc7f6c29c42c7925d12cf94d 100644 (file)
@@ -47,9 +47,9 @@ use OC\Files\Storage\Wrapper\Encryption;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Cache\CacheEntryInsertedEvent;
+use OCP\Files\Cache\CacheEntryRemovedEvent;
 use OCP\Files\Cache\CacheEntryUpdatedEvent;
 use OCP\Files\Cache\CacheInsertEvent;
-use OCP\Files\Cache\CacheEntryRemovedEvent;
 use OCP\Files\Cache\CacheUpdateEvent;
 use OCP\Files\Cache\ICache;
 use OCP\Files\Cache\ICacheEntry;
index 074e88e76391fb37aa19053f1c6cbe0b211f56a9..2711fc8ad19cd38f746b35eeafb20c97a870a1f6 100644 (file)
@@ -37,14 +37,14 @@ namespace OC\Files\Cache;
 
 use Doctrine\DBAL\Exception;
 use OC\Files\Storage\Wrapper\Encryption;
+use OC\Files\Storage\Wrapper\Jail;
+use OC\Hooks\BasicEmitter;
 use OCP\Files\Cache\IScanner;
 use OCP\Files\ForbiddenException;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage\IReliableEtagStorage;
 use OCP\IDBConnection;
 use OCP\Lock\ILockingProvider;
-use OC\Files\Storage\Wrapper\Jail;
-use OC\Hooks\BasicEmitter;
 use Psr\Log\LoggerInterface;
 
 /**
index 5f7c0c403db6fcf32d8efa64144e9138ac76337c..9f0d89052be7024c007300c1463e8899d31d6f34 100644 (file)
@@ -37,9 +37,9 @@
  */
 namespace OC\Files;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Mount\MountPoint;
 use OC\User\NoUserException;
+use OCP\Cache\CappedMemoryCache;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Events\Node\FilesystemTornDownEvent;
 use OCP\Files\Mount\IMountManager;
index 94304ff4838890f98dc7848ac0e083815b9ec8cd..2b2de1fbff10fae0e34e167fddee235df0c0ec09 100644 (file)
@@ -30,10 +30,10 @@ declare(strict_types=1);
 
 namespace OC\Files\Mount;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Filesystem;
 use OC\Files\SetupManager;
 use OC\Files\SetupManagerFactory;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Files\Config\ICachedMountInfo;
 use OCP\Files\Mount\IMountManager;
 use OCP\Files\Mount\IMountPoint;
index 393b3bbeb06807454a5358041a74c6a4620aefcc..e30cfea693ec1e3db2c40ff7f4003a7d61f40ccc 100644 (file)
@@ -29,8 +29,8 @@ namespace OC\Files\Node;
 
 use OC\Files\Filesystem;
 use OC\Files\Utils\PathHelper;
-use OCP\Files\Folder;
 use OCP\Constants;
+use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\Files\Mount\IMountPoint;
 use OCP\Files\NotPermittedException;
index 503b0af89214e0e5e04375e02f72db11d076e8f9..917ab80f3666f60a91084312d51f82d931a25c0d 100644 (file)
@@ -23,13 +23,13 @@ declare(strict_types=1);
 
 namespace OC\Files\Node;
 
-use OCP\Files\FileInfo;
 use OCP\Constants;
+use OCP\Files\File;
+use OCP\Files\FileInfo;
+use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\Files\Mount\IMountManager;
 use OCP\Files\NotFoundException;
-use OCP\Files\Folder;
-use OCP\Files\File;
 use OCP\IUser;
 use Psr\Log\LoggerInterface;
 
index 1195b6440838287aab444b581e501eac710b8dcd..ee344f9be8b414b403ed8a617d2c1b80652ee5f6 100644 (file)
@@ -32,7 +32,6 @@
 
 namespace OC\Files\Node;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\FileInfo;
 use OC\Files\Mount\Manager;
 use OC\Files\Mount\MountPoint;
@@ -40,6 +39,7 @@ use OC\Files\Utils\PathHelper;
 use OC\Files\View;
 use OC\Hooks\PublicEmitter;
 use OC\User\NoUserException;
+use OCP\Cache\CappedMemoryCache;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Cache\ICacheEntry;
 use OCP\Files\Config\IUserMountCache;
index 4d24aa138c13cd9cbdb80fb632a66c8983d92977..2c1f23f8e44f9836174b050a94abe129fa92ca10 100644 (file)
@@ -28,8 +28,8 @@ use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\Node;
 use OCP\Files\NotFoundException;
-use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\Files\SimpleFS\ISimpleFile;
+use OCP\Files\SimpleFS\ISimpleFolder;
 
 class SimpleFolder implements ISimpleFolder {
        /** @var Folder */
index 2d2bb52635be15e249635f2059606a12e64059dc..35add2c606b42454010694b45be8c5cbd0982331 100644 (file)
@@ -55,11 +55,11 @@ use OCP\ICertificateManager;
 use OCP\IConfig;
 use OCP\Util;
 use Psr\Http\Message\ResponseInterface;
+use Psr\Log\LoggerInterface;
 use Sabre\DAV\Client;
 use Sabre\DAV\Xml\Property\ResourceType;
 use Sabre\HTTP\ClientException;
 use Sabre\HTTP\ClientHttpException;
-use Psr\Log\LoggerInterface;
 use Sabre\HTTP\RequestInterface;
 
 /**
index 6633cbf41e34024dd8c648a4a5ed416c97d1ed95..1bdb0e39f14331b797737c144c976fea2cb260a7 100644 (file)
@@ -28,8 +28,8 @@
  */
 namespace OC\Files\Storage\Wrapper;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Filesystem;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Files\Storage\IStorage;
 use OCP\ICache;
 
index bcf0a10740b87ddd63088f76e5ec503be88dc003..c57991f35a900fae8a327368a05be7e2cff05194 100644 (file)
@@ -153,18 +153,18 @@ class Encryption extends Wrapper {
         * @throws \BadMethodCallException
         */
        public static function wrap($source, $internalPath, $fullPath, array $header,
-                                                               $uid,
-                                                               \OCP\Encryption\IEncryptionModule $encryptionModule,
-                                                               \OC\Files\Storage\Storage $storage,
-                                                               \OC\Files\Storage\Wrapper\Encryption $encStorage,
-                                                               \OC\Encryption\Util $util,
-                                                               \OC\Encryption\File $file,
-                                                               $mode,
-                                                               $size,
-                                                               $unencryptedSize,
-                                                               $headerSize,
-                                                               $signed,
-                                                               $wrapper = Encryption::class) {
+               $uid,
+               \OCP\Encryption\IEncryptionModule $encryptionModule,
+               \OC\Files\Storage\Storage $storage,
+               \OC\Files\Storage\Wrapper\Encryption $encStorage,
+               \OC\Encryption\Util $util,
+               \OC\Encryption\File $file,
+               $mode,
+               $size,
+               $unencryptedSize,
+               $headerSize,
+               $signed,
+               $wrapper = Encryption::class) {
                $context = stream_context_create([
                        'ocencryption' => [
                                'source' => $source,
index 878680caa4eadb093e6da3d4bb596f74c10428d6..28e9e4f69e8788c13a739f31ba2f24d338700f03 100644 (file)
@@ -31,8 +31,8 @@ use OC\AppFramework\Bootstrap\Coordinator;
 use OC\Files\Cache\Scanner;
 use OC\Files\Filesystem;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Files\Folder;
 use OCP\Files\File;
+use OCP\Files\Folder;
 use OCP\Files\GenericFileException;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
index 9a61aa93b958063c4c8087d1356a6fa68e727d91..71b8cb986d71aed6f92c5a35d6760ee1f2848444 100644 (file)
@@ -75,9 +75,9 @@ class Detection implements IMimeTypeDetector {
        private $defaultConfigDir;
 
        public function __construct(IURLGenerator $urlGenerator,
-                                                               LoggerInterface $logger,
-                                                               string $customConfigDir,
-                                                               string $defaultConfigDir) {
+               LoggerInterface $logger,
+               string $customConfigDir,
+               string $defaultConfigDir) {
                $this->urlGenerator = $urlGenerator;
                $this->logger = $logger;
                $this->customConfigDir = $customConfigDir;
@@ -96,8 +96,8 @@ class Detection implements IMimeTypeDetector {
         * @param string|null $secureMimeType
         */
        public function registerType(string $extension,
-                                                                string $mimetype,
-                                                                ?string $secureMimeType = null): void {
+               string $mimetype,
+               ?string $secureMimeType = null): void {
                $this->mimetypes[$extension] = [$mimetype, $secureMimeType];
                $this->secureMimeTypes[$mimetype] = $secureMimeType ?: $mimetype;
        }
index b7f6972ee10820692456c0336db224df63847154..226e5462b3409e6f98aa89ee81d8128adfed0771 100644 (file)
@@ -41,11 +41,11 @@ use OCA\Files_Sharing\SharedStorage;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Events\BeforeFileScannedEvent;
 use OCP\Files\Events\BeforeFolderScannedEvent;
-use OCP\Files\Events\NodeAddedToCache;
 use OCP\Files\Events\FileCacheUpdated;
-use OCP\Files\Events\NodeRemovedFromCache;
 use OCP\Files\Events\FileScannedEvent;
 use OCP\Files\Events\FolderScannedEvent;
+use OCP\Files\Events\NodeAddedToCache;
+use OCP\Files\Events\NodeRemovedFromCache;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage\IStorage;
 use OCP\Files\StorageNotAvailableException;
index ec0d037af061c2a8188f6a42f2c77cae1ac6d8ab..6eefb093795ddd5eb77ef0e4f0bbd70ee41fc203 100644 (file)
@@ -49,10 +49,10 @@ namespace OC\Files;
 use Icewind\Streams\CallbackWrapper;
 use OC\Files\Mount\MoveableMount;
 use OC\Files\Storage\Storage;
-use OC\User\LazyUser;
 use OC\Share\Share;
-use OC\User\User;
+use OC\User\LazyUser;
 use OC\User\Manager as UserManager;
+use OC\User\User;
 use OCA\Files_Sharing\SharedMount;
 use OCP\Constants;
 use OCP\Files\Cache\ICacheEntry;
index 55792ce1dff19b7075a99edf55dfb574ffc99919..13837eef55294cf96fc2e6ded8a921a53cb84bb9 100644 (file)
@@ -30,6 +30,7 @@
 namespace OC\Group;
 
 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
+use OC\User\LazyUser;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\Group\Backend\ABackend;
 use OCP\Group\Backend\IAddToGroupBackend;
@@ -40,13 +41,12 @@ use OCP\Group\Backend\ICreateGroupBackend;
 use OCP\Group\Backend\IDeleteGroupBackend;
 use OCP\Group\Backend\IGetDisplayNameBackend;
 use OCP\Group\Backend\IGroupDetailsBackend;
+use OCP\Group\Backend\INamedBackend;
 use OCP\Group\Backend\IRemoveFromGroupBackend;
 use OCP\Group\Backend\ISearchableGroupBackend;
 use OCP\Group\Backend\ISetDisplayNameBackend;
-use OCP\Group\Backend\INamedBackend;
 use OCP\IDBConnection;
 use OCP\IUserManager;
-use OC\User\LazyUser;
 
 /**
  * Class for group management in a SQL Database (e.g. MySQL, SQLite)
index 97521d54ba645da03dba8c812e1a7264c974849e..d8d1a73762ded38daa1caa907914cb3231bcde7d 100644 (file)
@@ -35,13 +35,6 @@ namespace OC\Group;
 use OC\Hooks\PublicEmitter;
 use OC\User\LazyUser;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Group\Events\BeforeGroupDeletedEvent;
-use OCP\Group\Events\BeforeUserAddedEvent;
-use OCP\Group\Events\BeforeUserRemovedEvent;
-use OCP\Group\Events\GroupDeletedEvent;
-use OCP\Group\Events\UserAddedEvent;
-use OCP\Group\Events\UserRemovedEvent;
-use OCP\GroupInterface;
 use OCP\Group\Backend\ICountDisabledInGroup;
 use OCP\Group\Backend\IGetDisplayNameBackend;
 use OCP\Group\Backend\IHideFromCollaborationBackend;
@@ -49,7 +42,14 @@ use OCP\Group\Backend\INamedBackend;
 use OCP\Group\Backend\ISearchableGroupBackend;
 use OCP\Group\Backend\ISetDisplayNameBackend;
 use OCP\Group\Events\BeforeGroupChangedEvent;
+use OCP\Group\Events\BeforeGroupDeletedEvent;
+use OCP\Group\Events\BeforeUserAddedEvent;
+use OCP\Group\Events\BeforeUserRemovedEvent;
 use OCP\Group\Events\GroupChangedEvent;
+use OCP\Group\Events\GroupDeletedEvent;
+use OCP\Group\Events\UserAddedEvent;
+use OCP\Group\Events\UserRemovedEvent;
+use OCP\GroupInterface;
 use OCP\IGroup;
 use OCP\IUser;
 use OCP\IUserManager;
index da99187f130e9e40833a54165dc4eaa7af540ea4..eb9daebb22277462c0da84c2f9e1d1a2511ad056 100644 (file)
@@ -89,9 +89,9 @@ class Manager extends PublicEmitter implements IGroupManager {
        private DisplayNameCache $displayNameCache;
 
        public function __construct(\OC\User\Manager $userManager,
-                                                               IEventDispatcher $dispatcher,
-                                                               LoggerInterface $logger,
-                                                               ICacheFactory $cacheFactory) {
+               IEventDispatcher $dispatcher,
+               LoggerInterface $logger,
+               ICacheFactory $cacheFactory) {
                $this->userManager = $userManager;
                $this->dispatcher = $dispatcher;
                $this->logger = $logger;
index a58d7e78bfcdc32a3b01157ceee706c1ad11a284..973db13472874a8c66d0c9b60fbcc9f1bdde8cea 100644 (file)
@@ -57,11 +57,11 @@ class MetaData {
         * @param bool $isAdmin whether the current users is an admin
         */
        public function __construct(
-                       string $user,
-                       bool $isAdmin,
-                       IGroupManager $groupManager,
-                       IUserSession $userSession
-                       ) {
+               string $user,
+               bool $isAdmin,
+               IGroupManager $groupManager,
+               IUserSession $userSession
+       ) {
                $this->user = $user;
                $this->isAdmin = $isAdmin;
                $this->groupManager = $groupManager;
index 720a1e9185d5ec9572493dbb37cb2d6cc955435d..eedb6e05c39aa23ffcbe79cb96921a89ba69a900 100644 (file)
@@ -33,13 +33,13 @@ class CookieHelper {
        public const SAMESITE_STRICT = 2;
 
        public static function setCookie(string $name,
-                                                                        string $value = '',
-                                                                        int $maxAge = 0,
-                                                                        string $path = '',
-                                                                        string $domain = '',
-                                                                        bool $secure = false,
-                                                                        bool $httponly = false,
-                                                                        int $samesite = self::SAMESITE_NONE) {
+               string $value = '',
+               int $maxAge = 0,
+               string $path = '',
+               string $domain = '',
+               bool $secure = false,
+               bool $httponly = false,
+               int $samesite = self::SAMESITE_NONE) {
                $header = sprintf(
                        'Set-Cookie: %s=%s',
                        $name,
index b83ff2ada509141335bb81a0f1430edf9817b526..783b04c0f5d2eaf84c743ede3a44931ba3c0ac17 100644 (file)
@@ -49,8 +49,8 @@ class RequestManager {
        private $logger;
 
        public function __construct(Coordinator $coordinator,
-                                                               IServerContainer $container,
-                                                               LoggerInterface $logger) {
+               IServerContainer $container,
+               LoggerInterface $logger) {
                $this->coordinator = $coordinator;
                $this->container = $container;
                $this->logger = $logger;
index a2ff62e40707021916283c1618ca76cfbb57d2b2..a5dec637bdba8743fc37e654ef6601346103f679 100644 (file)
@@ -83,12 +83,12 @@ class Checker {
         * @param IMimeTypeDetector $mimeTypeDetector
         */
        public function __construct(EnvironmentHelper $environmentHelper,
-                                                               FileAccessHelper $fileAccessHelper,
-                                                               AppLocator $appLocator,
-                                                               ?IConfig $config,
-                                                               ICacheFactory $cacheFactory,
-                                                               ?IAppManager $appManager,
-                                                               IMimeTypeDetector $mimeTypeDetector) {
+               FileAccessHelper $fileAccessHelper,
+               AppLocator $appLocator,
+               ?IConfig $config,
+               ICacheFactory $cacheFactory,
+               ?IAppManager $appManager,
+               IMimeTypeDetector $mimeTypeDetector) {
                $this->environmentHelper = $environmentHelper;
                $this->fileAccessHelper = $fileAccessHelper;
                $this->appLocator = $appLocator;
@@ -161,7 +161,7 @@ class Checker {
         * @return array Array of hashes.
         */
        private function generateHashes(\RecursiveIteratorIterator $iterator,
-                                                                       string $path): array {
+               string $path): array {
                $hashes = [];
 
                $baseDirectoryLength = \strlen($path);
@@ -223,8 +223,8 @@ class Checker {
         * @return array
         */
        private function createSignatureData(array $hashes,
-                                                                                X509 $certificate,
-                                                                                RSA $privateKey): array {
+               X509 $certificate,
+               RSA $privateKey): array {
                ksort($hashes);
 
                $privateKey->setSignatureMode(RSA::SIGNATURE_PSS);
@@ -249,8 +249,8 @@ class Checker {
         * @throws \Exception
         */
        public function writeAppSignature($path,
-                                                                         X509 $certificate,
-                                                                         RSA $privateKey) {
+               X509 $certificate,
+               RSA $privateKey) {
                $appInfoDir = $path . '/appinfo';
                try {
                        $this->fileAccessHelper->assertDirectoryExists($appInfoDir);
@@ -279,8 +279,8 @@ class Checker {
         * @throws \Exception
         */
        public function writeCoreSignature(X509 $certificate,
-                                                                          RSA $rsa,
-                                                                          $path) {
+               RSA $rsa,
+               $path) {
                $coreDir = $path . '/core';
                try {
                        $this->fileAccessHelper->assertDirectoryExists($coreDir);
index 1784114911f46209fbdc87494f40a8cd7dc4b13c..9975696ff067992bcd4bc590a7573baed8ae8bc7 100644 (file)
@@ -38,6 +38,8 @@ namespace OC;
 
 use Exception;
 use Nextcloud\LogNormalizer\Normalizer;
+use OC\AppFramework\Bootstrap\Coordinator;
+use OC\Log\ExceptionSerializer;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\ILogger;
 use OCP\IUserSession;
@@ -46,8 +48,6 @@ use OCP\Log\IDataLogger;
 use OCP\Log\IFileBased;
 use OCP\Log\IWriter;
 use OCP\Support\CrashReport\IRegistry;
-use OC\AppFramework\Bootstrap\Coordinator;
-use OC\Log\ExceptionSerializer;
 use Throwable;
 use function array_merge;
 use function strtr;
index 16d6ae32f72a04bb226229690a5a2904a83c3973..ab8fcea4e6a377ac4a6c659fb05e4e40f742bc23 100644 (file)
 namespace OC\Memcache;
 
 use OCP\Cache\CappedMemoryCache;
-use OCP\Profiler\IProfiler;
 use OCP\ICache;
 use OCP\ICacheFactory;
 use OCP\IMemcache;
+use OCP\Profiler\IProfiler;
 use Psr\Log\LoggerInterface;
 
 class Factory implements ICacheFactory {
index f48a62131bdc44dd4bc682c5d3043ed01a5974bc..dd1b15c7492fd0dadad6dfb3b91449a1e287b25f 100644 (file)
  */
 namespace OC\Migration;
 
+use OC\NeedsUpdateException;
+use OC\Repair;
+use OC_App;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\BackgroundJob\IJobList;
 use OCP\BackgroundJob\TimedJob;
 use OCP\EventDispatcher\IEventDispatcher;
-use OC\NeedsUpdateException;
-use OC\Repair;
-use OC_App;
 use Psr\Log\LoggerInterface;
 
 /**
index d323b7c1e43b204e4cb4c74c8667cff28cd99097..27963b8a45d9136020a3340d4742e1d1e549e9b7 100644 (file)
@@ -71,11 +71,11 @@ class NavigationManager implements INavigationManager {
        private array $customAppOrder;
 
        public function __construct(IAppManager $appManager,
-                                                IURLGenerator $urlGenerator,
-                                                IFactory $l10nFac,
-                                                IUserSession $userSession,
-                                                IGroupManager $groupManager,
-                                                IConfig $config) {
+               IURLGenerator $urlGenerator,
+               IFactory $l10nFac,
+               IUserSession $userSession,
+               IGroupManager $groupManager,
+               IConfig $config) {
                $this->appManager = $appManager;
                $this->urlGenerator = $urlGenerator;
                $this->l10nFac = $l10nFac;
index 3d77f643d935f2c6b11c752e40fa6f5fd5cf549e..e81b6c4fa35637c2cf67ebf91cb12041385d3f6e 100644 (file)
@@ -74,11 +74,11 @@ class Manager implements IManager {
        private $parsedRegistrationContext;
 
        public function __construct(IValidator $validator,
-                                                               IUserManager $userManager,
-                                                               ICacheFactory $cacheFactory,
-                                                               IRegistry $subscription,
-                                                               LoggerInterface $logger,
-                                                               Coordinator $coordinator) {
+               IUserManager $userManager,
+               ICacheFactory $cacheFactory,
+               IRegistry $subscription,
+               LoggerInterface $logger,
+               Coordinator $coordinator) {
                $this->validator = $validator;
                $this->userManager = $userManager;
                $this->cache = $cacheFactory->createDistributed('notifications');
index 8f98ff7d5aeb7aae913643d3dcb25ea5d1fe0f40..f53d39465e8fc4ba3e07430cc5dcad30281c81e7 100644 (file)
@@ -47,7 +47,7 @@ class DiscoveryService implements IDiscoveryService {
         * @param IClientService $clientService
         */
        public function __construct(ICacheFactory $cacheFactory,
-                                                               IClientService $clientService
+               IClientService $clientService
        ) {
                $this->cache = $cacheFactory->createDistributed('ocs-discovery');
                $this->client = $clientService->newClient();
index 5e7a86a134118c111ac27cf2ccd5a52b557f3202..83219c018f8d1f0060bdae29d4c2ec105cb1c0d4 100644 (file)
@@ -34,8 +34,8 @@ class Provider extends \OCP\AppFramework\Controller {
         * @param \OCP\App\IAppManager $appManager
         */
        public function __construct($appName,
-                                                               \OCP\IRequest $request,
-                                                               \OCP\App\IAppManager $appManager) {
+               \OCP\IRequest $request,
+               \OCP\App\IAppManager $appManager) {
                parent::__construct($appName, $request);
                $this->appManager = $appManager;
        }
index 4eba96d1a827dc4eca2c75441821ba46d2d87dfc..4376cc06eca277073771fc845c4b921c0dd755d6 100644 (file)
@@ -48,10 +48,10 @@ class BackgroundCleanupJob extends TimedJob {
        private $mimeTypeLoader;
 
        public function __construct(ITimeFactory $timeFactory,
-                                                               IDBConnection $connection,
-                                                               Root $previewFolder,
-                                                               IMimeTypeLoader $mimeTypeLoader,
-                                                               bool $isCLI) {
+               IDBConnection $connection,
+               Root $previewFolder,
+               IMimeTypeLoader $mimeTypeLoader,
+               bool $isCLI) {
                parent::__construct($timeFactory);
                // Run at most once an hour
                $this->setInterval(3600);
index ae2752dd91c55f6994e677c09c26750dd01e7f06..faf84696e17b69a5f9fc7a564043b89ddf2eda47 100644 (file)
 
 namespace OC\Preview;
 
+use OC\StreamImage;
 use OCP\Files\File;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\IImage;
-use OCP\Image;
 
-use OC\StreamImage;
+use OCP\Image;
 use Psr\Log\LoggerInterface;
 
 class Imaginary extends ProviderV2 {
index ffbdf825211f1a02539963d0411d0a3448fe0436..b11a6ab86daf7af19d7243b09f9bc512b565d52d 100644 (file)
@@ -43,7 +43,7 @@ class WatcherConnector {
         * @param SystemConfig $config
         */
        public function __construct(IRootFolder $root,
-                                                               SystemConfig $config) {
+               SystemConfig $config) {
                $this->root = $root;
                $this->config = $config;
        }
index f96d2c07de4dae8b3624a9a9bbf8d925d9a5cb19..4c73f785dd0c2e3cd46999faac174594de1e985f 100644 (file)
@@ -26,12 +26,12 @@ declare(strict_types=1);
 
 namespace OC\Profile\Actions;
 
-use function substr;
 use OCP\Accounts\IAccountManager;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory;
 use OCP\Profile\ILinkAction;
+use function substr;
 
 class FediverseAction implements ILinkAction {
        private string $value = '';
index d63c2d3ee083931f789e015d204633fc462040ec..f7f57d4c6d1d306b2b0aa37b9677be1af6e4f59f 100644 (file)
@@ -26,12 +26,12 @@ declare(strict_types=1);
 
 namespace OC\Profile\Actions;
 
-use function substr;
 use OCP\Accounts\IAccountManager;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory;
 use OCP\Profile\ILinkAction;
+use function substr;
 
 class TwitterAction implements ILinkAction {
        private string $value = '';
index 39c51ea0e779568703cc597588515cf2ec8f54e2..c8fb780bbe89269b513559b77a454fd68bf568f6 100644 (file)
@@ -26,29 +26,29 @@ declare(strict_types=1);
 
 namespace OC\Profile;
 
-use OCP\Profile\IProfileManager;
-use function array_flip;
-use function usort;
 use OC\AppFramework\Bootstrap\Coordinator;
 use OC\Core\Db\ProfileConfig;
 use OC\Core\Db\ProfileConfigMapper;
 use OC\KnownUser\KnownUserService;
 use OC\Profile\Actions\EmailAction;
+use OC\Profile\Actions\FediverseAction;
 use OC\Profile\Actions\PhoneAction;
 use OC\Profile\Actions\TwitterAction;
-use OC\Profile\Actions\FediverseAction;
 use OC\Profile\Actions\WebsiteAction;
 use OCP\Accounts\IAccountManager;
 use OCP\Accounts\PropertyDoesNotExistException;
 use OCP\App\IAppManager;
 use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\Cache\CappedMemoryCache;
 use OCP\IConfig;
 use OCP\IUser;
 use OCP\L10N\IFactory;
 use OCP\Profile\ILinkAction;
-use OCP\Cache\CappedMemoryCache;
+use OCP\Profile\IProfileManager;
 use Psr\Container\ContainerInterface;
 use Psr\Log\LoggerInterface;
+use function array_flip;
+use function usort;
 
 class ProfileManager implements IProfileManager {
        /** @var ILinkAction[] */
index 40050b7bf43885aa8bbf7d7b9ff385426ee8cf85..d6749c55e3c20c6015cb11b42378204e87c7b63a 100644 (file)
@@ -27,11 +27,11 @@ declare(strict_types = 1);
 namespace OC\Profiler;
 
 use OC\AppFramework\Http\Request;
+use OC\SystemConfig;
 use OCP\AppFramework\Http\Response;
 use OCP\DataCollector\IDataCollector;
-use OCP\Profiler\IProfiler;
 use OCP\Profiler\IProfile;
-use OC\SystemConfig;
+use OCP\Profiler\IProfiler;
 
 class Profiler implements IProfiler {
        /** @var array<string, IDataCollector> */
@@ -95,7 +95,7 @@ class Profiler implements IProfiler {
         * @return array[]
         */
        public function find(?string $url, ?int $limit, ?string $method, ?int $start, ?int $end,
-                                                string $statusCode = null): array {
+               string $statusCode = null): array {
                if ($this->storage) {
                        return $this->storage->find($url, $limit, $method, $start, $end, $statusCode);
                } else {
index a12e00f071c7e4758ac1923c86c951c34931e1a4..21caed3e39fbddb6b0e126c20c185958c607064d 100644 (file)
  */
 namespace OC;
 
-use OC\Repair\AddRemoveOldTasksBackgroundJob;
-use OC\Repair\CleanUpAbandonedApps;
-use OCP\AppFramework\QueryException;
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\Collaboration\Resources\IManager;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Migration\IOutput;
-use OCP\Migration\IRepairStep;
 use OC\DB\Connection;
 use OC\DB\ConnectionAdapter;
 use OC\Repair\AddBruteForceCleanupJob;
 use OC\Repair\AddCleanupUpdaterBackupsJob;
 use OC\Repair\AddMetadataGenerationJob;
+use OC\Repair\AddRemoveOldTasksBackgroundJob;
 use OC\Repair\CleanTags;
+use OC\Repair\CleanUpAbandonedApps;
 use OC\Repair\ClearFrontendCaches;
 use OC\Repair\ClearGeneratedAvatarCache;
 use OC\Repair\Collation;
@@ -86,6 +80,12 @@ use OC\Repair\RepairDavShares;
 use OC\Repair\RepairInvalidShares;
 use OC\Repair\RepairMimeTypes;
 use OC\Template\JSCombiner;
+use OCP\AppFramework\QueryException;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\Collaboration\Resources\IManager;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
 use Psr\Log\LoggerInterface;
 use Throwable;
 
index bf94e5bfbffae18d660746c3a42b5eb6b1d36b8f..3661560c5f6badbfe387159d0b3420b54f290ee2 100644 (file)
@@ -37,7 +37,7 @@ class ClearFrontendCaches implements IRepairStep {
        protected $jsCombiner;
 
        public function __construct(ICacheFactory $cacheFactory,
-                                                               JSCombiner $JSCombiner) {
+               JSCombiner $JSCombiner) {
                $this->cacheFactory = $cacheFactory;
                $this->jsCombiner = $JSCombiner;
        }
index fb3b42847dcc6cf193ced79c866ae52f18c3c361..88b2b07ead5544462132b687b4b773f38bc1796b 100644 (file)
@@ -25,8 +25,8 @@
 namespace OC\Repair;
 
 use OC\Avatar\AvatarManager;
-use OCP\IConfig;
 use OCP\BackgroundJob\IJobList;
+use OCP\IConfig;
 use OCP\Migration\IOutput;
 use OCP\Migration\IRepairStep;
 
index e8513e7a933d710e1caaa9545f3ad6d64adbcc43..5caa74638e5a79d7e1a3250b2ff36b57dcd878e2 100644 (file)
@@ -20,9 +20,9 @@
  */
 namespace OC\Repair;
 
-use OCP\BackgroundJob\QueuedJob;
-use OCP\AppFramework\Utility\ITimeFactory;
 use OC\Avatar\AvatarManager;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\QueuedJob;
 
 class ClearGeneratedAvatarCacheJob extends QueuedJob {
        protected AvatarManager $avatarManager;
index d5ae1d7ab63a97ed101d6a2021d0039f834e1722..185ff3be1be99eec436362f6f6d52c206c940a41 100644 (file)
@@ -37,7 +37,7 @@ class ResetGeneratedAvatarFlag implements IRepairStep {
        private $connection;
 
        public function __construct(IConfig $config,
-                                                               IDBConnection $connection) {
+               IDBConnection $connection) {
                $this->config = $config;
                $this->connection = $connection;
        }
index a7d008e87beda6426cbddcfcda78837480aca392..42a8778662b18b35d071d66e395a1b1ff261519a 100644 (file)
@@ -38,7 +38,7 @@ class EncryptionLegacyCipher implements IRepairStep {
        private $manager;
 
        public function __construct(IConfig $config,
-                                                               IManager $manager) {
+               IManager $manager) {
                $this->config = $config;
                $this->manager = $manager;
        }
index 239a62c27180627329c3278e50f8712e2145982b..dea51b1b57eaf67d14b61cec294e50ab540b720e 100644 (file)
@@ -38,7 +38,7 @@ class EncryptionMigration implements IRepairStep {
        private $manager;
 
        public function __construct(IConfig $config,
-                                                               IManager $manager) {
+               IManager $manager) {
                $this->config = $config;
                $this->manager = $manager;
        }
index b3534dbeae8d473d33ea41c9d10c982298291f33..51120c9d1399d9d4d62feb602e4114997fe1c6de 100644 (file)
@@ -42,8 +42,8 @@ class ValidatePhoneNumber implements IRepairStep {
        private $accountManager;
 
        public function __construct(IUserManager $userManager,
-                                                               IAccountManager $accountManager,
-                                                               IConfig $config) {
+               IAccountManager $accountManager,
+               IConfig $config) {
                $this->config = $config;
                $this->userManager = $userManager;
                $this->accountManager = $accountManager;
index 853a94c8adccf49dab4b4777400bcdccff88ca88..2020ae8bfc11d80c224ba97fe55b8e069fc950c0 100644 (file)
@@ -47,8 +47,8 @@ class CleanPreviews implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IJobList $jobList,
-                                                               IUserManager $userManager,
-                                                               IConfig $config) {
+               IUserManager $userManager,
+               IConfig $config) {
                $this->jobList = $jobList;
                $this->userManager = $userManager;
                $this->config = $config;
index 7f4bbc35c175ad57c5676b13ac7f7dbb14c8a7ec..4ba9ad083e3d9a59b7bbcffea28245deeb945671 100644 (file)
@@ -51,10 +51,10 @@ class CleanPreviewsBackgroundJob extends QueuedJob {
         * CleanPreviewsBackgroundJob constructor.
         */
        public function __construct(IRootFolder $rootFolder,
-                                                               LoggerInterface $logger,
-                                                               IJobList $jobList,
-                                                               ITimeFactory $timeFactory,
-                                                               IUserManager $userManager) {
+               LoggerInterface $logger,
+               IJobList $jobList,
+               ITimeFactory $timeFactory,
+               IUserManager $userManager) {
                $this->rootFolder = $rootFolder;
                $this->logger = $logger;
                $this->jobList = $jobList;
index 5bf0816d8deb1199b7de455323544ef30256d82a..ae2b46e19496c06e3a86d26b2aee594cbfdd4c53 100644 (file)
  */
 namespace OC\Repair\Owncloud;
 
-use OCP\Migration\IOutput;
-use OCP\Migration\IRepairStep;
 use OC\DB\Connection;
 use OC\DB\SchemaWrapper;
 use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
 
 class MigrateOauthTables implements IRepairStep {
        /** @var Connection */
index 44ba9b7643b11839484c9d6c846293909cc20f9a..1ec08710b3a4858d2c0dc993a7877b3cf4e3c214 100644 (file)
@@ -41,7 +41,7 @@ class MoveAvatars implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IJobList $jobList,
-                                                               IConfig $config) {
+               IConfig $config) {
                $this->jobList = $jobList;
                $this->config = $config;
        }
index e08a0b55a9a849c9105b4717d4d6f38704ab00d8..ae8e8bb07437ac1944676c2d2d979e375edee2fa 100644 (file)
@@ -40,7 +40,7 @@ class UpdateLanguageCodes implements IRepairStep {
         * @param IConfig $config
         */
        public function __construct(IDBConnection $connection,
-                                                               IConfig $config) {
+               IConfig $config) {
                $this->connection = $connection;
                $this->config = $config;
        }
index b45a1d83a56c08f2d267c973917418e2c8a0e713..3e47e3233a2dd8dcbc4591c4762350a97612f182 100644 (file)
@@ -54,10 +54,10 @@ class RemoveLinkShares implements IRepairStep {
        private $timeFactory;
 
        public function __construct(IDBConnection $connection,
-                                                               IConfig $config,
-                                                               IGroupManager $groupManager,
-                                                               IManager $notificationManager,
-                                                               ITimeFactory $timeFactory) {
+               IConfig $config,
+               IGroupManager $groupManager,
+               IManager $notificationManager,
+               ITimeFactory $timeFactory) {
                $this->connection = $connection;
                $this->config = $config;
                $this->groupManager = $groupManager;
index cab8d8ca02a34c3d7562073c176dbf4d93d03c82..f951c3b916df6dd9cb77e079b5c9204df96d300d 100644 (file)
@@ -49,7 +49,7 @@ class RepairMimeTypes implements IRepairStep {
        protected $folderMimeTypeId;
 
        public function __construct(IConfig $config,
-                                                               IDBConnection $connection) {
+               IDBConnection $connection) {
                $this->config = $config;
                $this->connection = $connection;
        }
index 5ce6c7c5c8f4952fb5e0414399c8dd49467e3b17..65bbf602be0d66c9b0596f2106b49967598c966f 100644 (file)
@@ -230,9 +230,9 @@ class Router implements IRouter {
         * @return \OC\Route\Route
         */
        public function create($name,
-                                                  $pattern,
-                                                  array $defaults = [],
-                                                  array $requirements = []) {
+               $pattern,
+               array $defaults = [],
+               array $requirements = []) {
                $route = new Route($pattern, $defaults, $requirements);
                $this->collection->add($name, $route);
                return $route;
@@ -354,8 +354,8 @@ class Router implements IRouter {
         * @return string
         */
        public function generate($name,
-                                                        $parameters = [],
-                                                        $absolute = false) {
+               $parameters = [],
+               $absolute = false) {
                $referenceType = UrlGenerator::ABSOLUTE_URL;
                if ($absolute === false) {
                        $referenceType = UrlGenerator::ABSOLUTE_PATH;
index 8c23cc7c1106960ef24f9f9dde82d1b0dd45ad87..15d6695dcac177814956a6768cb75b77978a5271 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
 namespace OC\Search;
 
 use Generator;
-use OCP\Search\IFilterCollection;
 use OCP\Search\IFilter;
+use OCP\Search\IFilterCollection;
 
 /**
  * Interface for search filters
index 2e96dfb7960566a4c0234e7ffbb7507fb5af85d0..3f4388f405c97ea9a10cc2a4a1a1cab035b4cfca 100644 (file)
@@ -25,10 +25,10 @@ declare(strict_types=1);
  */
 namespace OC\Search;
 
-use OCP\Search\FilterDefinition;
-use OCP\Search\IFilter;
 use OCP\IGroupManager;
 use OCP\IUserManager;
+use OCP\Search\FilterDefinition;
+use OCP\Search\IFilter;
 use RuntimeException;
 
 final class FilterFactory {
index 22da362bf40b5b85489fe6397b47ce6aa4804f2a..03e84a079feb1a5957848003248e564297f961cf 100644 (file)
@@ -28,13 +28,13 @@ declare(strict_types=1);
 namespace OC\Search;
 
 use InvalidArgumentException;
+use OC\AppFramework\Bootstrap\Coordinator;
 use OCP\IURLGenerator;
+use OCP\IUser;
 use OCP\Search\FilterDefinition;
+use OCP\Search\IFilter;
 use OCP\Search\IFilteringProvider;
 use OCP\Search\IInAppSearch;
-use OC\AppFramework\Bootstrap\Coordinator;
-use OCP\IUser;
-use OCP\Search\IFilter;
 use OCP\Search\IProvider;
 use OCP\Search\ISearchQuery;
 use OCP\Search\SearchResult;
index aae2044bcd65ae7801133b7797faac5f02de42f3..e4295c4ab764e3635ae19a82b496376a4eda4cd5 100644 (file)
@@ -27,8 +27,8 @@ declare(strict_types=1);
  */
 namespace OC\Search;
 
-use OCP\Search\IFilterCollection;
 use OCP\Search\IFilter;
+use OCP\Search\IFilterCollection;
 use OCP\Search\ISearchQuery;
 
 class SearchQuery implements ISearchQuery {
index b50eea0b7af8ed348b013b496994ad13f22bd26d..add2bb8d8b51753581fd7b7e3f0c4f968e4474bb 100644 (file)
@@ -29,8 +29,8 @@ declare(strict_types=1);
  */
 namespace OC\Security\Bruteforce;
 
-use OCP\Capabilities\IPublicCapability;
 use OCP\Capabilities\IInitialStateExcludedCapability;
+use OCP\Capabilities\IPublicCapability;
 use OCP\IRequest;
 use OCP\Security\Bruteforce\IThrottler;
 
index 5316071f25cfc457dd553a047efff4fc8e3d8495..7e5f1daa28cbd48965a4f3aa97e7c1e56e70cf00 100644 (file)
@@ -72,8 +72,8 @@ class Throttler implements IThrottler {
         * {@inheritDoc}
         */
        public function registerAttempt(string $action,
-                                                                       string $ip,
-                                                                       array $metadata = []): void {
+               string $ip,
+               array $metadata = []): void {
                // No need to log if the bruteforce protection is disabled
                if (!$this->config->getSystemValueBool('auth.bruteforce.protection.enabled', true)) {
                        return;
index 1f4af04645176e77585b748c22dda4ccd59ca619..9c1b27d344d2204dab8756d57666f3d1dea5752b 100644 (file)
@@ -27,10 +27,10 @@ declare(strict_types=1);
 namespace OC\Security\VerificationToken;
 
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\IConfig;
-use OCP\IUserManager;
 use OCP\BackgroundJob\IJobList;
 use OCP\BackgroundJob\Job;
+use OCP\IConfig;
+use OCP\IUserManager;
 use OCP\Security\VerificationToken\InvalidTokenException;
 use OCP\Security\VerificationToken\IVerificationToken;
 
index 2dd97412ebae880faa35a134036228f983af523e..cf4262e2d504343531b462aaaa4040c285914bf6 100644 (file)
@@ -110,8 +110,8 @@ use OC\IntegrityCheck\Checker;
 use OC\IntegrityCheck\Helpers\AppLocator;
 use OC\IntegrityCheck\Helpers\EnvironmentHelper;
 use OC\IntegrityCheck\Helpers\FileAccessHelper;
-use OC\LDAP\NullLDAPProviderFactory;
 use OC\KnownUser\KnownUserService;
+use OC\LDAP\NullLDAPProviderFactory;
 use OC\Lock\DBLockingProvider;
 use OC\Lock\MemcacheLockingProvider;
 use OC\Lock\NoopLockingProvider;
@@ -129,6 +129,7 @@ use OC\Preview\GeneratorHelper;
 use OC\Preview\IMagickSupport;
 use OC\Preview\MimeIconProvider;
 use OC\Profile\ProfileManager;
+use OC\Profiler\Profiler;
 use OC\Remote\Api\ApiFactory;
 use OC\Remote\InstanceFactory;
 use OC\RichObjectStrings\Validator;
@@ -163,6 +164,10 @@ use OC\User\DisplayNameCache;
 use OC\User\Listeners\BeforeUserDeletedListener;
 use OC\User\Listeners\UserChangedListener;
 use OC\User\Session;
+use OCA\Files_External\Service\BackendService;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\UserGlobalStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
 use OCA\Theming\ImageManager;
 use OCA\Theming\ThemingDefaults;
 use OCA\Theming\Util;
@@ -202,10 +207,10 @@ use OCP\Group\ISubAdmin;
 use OCP\Http\Client\IClientService;
 use OCP\IAppConfig;
 use OCP\IAvatarManager;
+use OCP\IBinaryFinder;
 use OCP\ICache;
 use OCP\ICacheFactory;
 use OCP\ICertificateManager;
-use OCP\IBinaryFinder;
 use OCP\IDateTimeFormatter;
 use OCP\IDateTimeZone;
 use OCP\IDBConnection;
@@ -236,7 +241,9 @@ use OCP\Log\ILogFactory;
 use OCP\Mail\IMailer;
 use OCP\OCM\IOCMDiscoveryService;
 use OCP\OCM\IOCMProvider;
+use OCP\Preview\IMimeIconProvider;
 use OCP\Profile\IProfileManager;
+use OCP\Profiler\IProfiler;
 use OCP\Remote\Api\IApiFactory;
 use OCP\Remote\IInstanceFactory;
 use OCP\RichObjectStrings\IValidator;
@@ -270,13 +277,6 @@ use OCP\User\IAvailabilityCoordinator;
 use Psr\Container\ContainerExceptionInterface;
 use Psr\Container\ContainerInterface;
 use Psr\Log\LoggerInterface;
-use OCA\Files_External\Service\UserStoragesService;
-use OCA\Files_External\Service\UserGlobalStoragesService;
-use OCA\Files_External\Service\GlobalStoragesService;
-use OCA\Files_External\Service\BackendService;
-use OCP\Profiler\IProfiler;
-use OC\Profiler\Profiler;
-use OCP\Preview\IMimeIconProvider;
 
 /**
  * Class Server
index ae4b80209d54485288566cbdea286881baed097a..22d2aba0405e96d47da23afa5c401cff3862636a 100644 (file)
@@ -59,8 +59,8 @@ class CryptoSessionData implements \ArrayAccess, ISession {
         * @param string $passphrase
         */
        public function __construct(ISession $session,
-                                                               ICrypto $crypto,
-                                                               string $passphrase) {
+               ICrypto $crypto,
+               string $passphrase) {
                $this->crypto = $crypto;
                $this->session = $session;
                $this->passphrase = $passphrase;
index e98aac3b8bf21e4fe012b7fb013e53cde84e73ef..5004ebf82cf4a901eb53d77ff8aac03195981c07 100644 (file)
@@ -68,9 +68,9 @@ class CryptoWrapper {
         * @param IRequest $request
         */
        public function __construct(IConfig $config,
-                                                               ICrypto $crypto,
-                                                               ISecureRandom $random,
-                                                               IRequest $request) {
+               ICrypto $crypto,
+               ISecureRandom $random,
+               IRequest $request) {
                $this->crypto = $crypto;
                $this->config = $config;
                $this->random = $random;
index 4fea5d72591f0844dd1a043b182e35e6aedf7bcb..ec86a844334949fd47f7ceb126093734d7a1d837 100644 (file)
@@ -53,9 +53,9 @@ use Exception;
 use InvalidArgumentException;
 use OC\Authentication\Token\PublicKeyTokenProvider;
 use OC\Authentication\Token\TokenCleanupJob;
-use OC\TextProcessing\RemoveOldTasksBackgroundJob;
 use OC\Log\Rotate;
 use OC\Preview\BackgroundCleanupJob;
+use OC\TextProcessing\RemoveOldTasksBackgroundJob;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Defaults;
 use OCP\IGroup;
index 50f566728a95740dd9d73c5ced8ab85a10410fee..0d672f324eb7541fca4f339aa0706fd52430a1c1 100644 (file)
  */
 namespace OC\Setup;
 
+use Doctrine\DBAL\Platforms\MySQL80Platform;
 use OC\DB\ConnectionAdapter;
 use OC\DB\MySqlTools;
 use OCP\IDBConnection;
-use Doctrine\DBAL\Platforms\MySQL80Platform;
 use OCP\Security\ISecureRandom;
 
 class MySQL extends AbstractDatabase {
index 8d14f293e5a1ee52723017d176c582c84bd19604..3aa01b3cf299ff9a4db8f62a8fdf1dc40a47a906 100644 (file)
@@ -243,7 +243,7 @@ class Share extends Constants {
         *   * defacto $parameters and $format is always the default and therefore is removed in the subsequent call
         */
        public static function getItemShared($itemType, $itemSource, $format = self::FORMAT_NONE,
-                                                                                $parameters = null, $includeCollections = false) {
+               $parameters = null, $includeCollections = false) {
                return self::getItems($itemType, $itemSource, null, null, \OC_User::getUser(), self::FORMAT_NONE,
                        null, -1, $includeCollections);
        }
@@ -349,8 +349,8 @@ class Share extends Constants {
         *   * defacto $limit, $itemsShareWithBySource, $checkExpireDate, $parameters and $format is always the default and therefore is removed in the subsequent call
         */
        public static function getItems($itemType, ?string $item = null, ?int $shareType = null, $shareWith = null,
-                                                                       $uidOwner = null, $format = self::FORMAT_NONE, $parameters = null, $limit = -1,
-                                                                       $includeCollections = false, $itemShareWithBySource = false, $checkExpireDate = true) {
+               $uidOwner = null, $format = self::FORMAT_NONE, $parameters = null, $limit = -1,
+               $includeCollections = false, $itemShareWithBySource = false, $checkExpireDate = true) {
                if (\OC::$server->getConfig()->getAppValue('core', 'shareapi_enabled', 'yes') != 'yes') {
                        return [];
                }
index 4606101b7e681ca769a899004fd196893c87312c..0188c0897d9d3dabd1876ca8be90e4edf2352660 100644 (file)
@@ -880,12 +880,12 @@ class Manager implements IManager {
         * @param \DateTime|null $expiration
         */
        protected function sendMailNotification(IL10N $l,
-                                                                                       $filename,
-                                                                                       $link,
-                                                                                       $initiator,
-                                                                                       $shareWith,
-                                                                                       \DateTime $expiration = null,
-                                                                                       $note = '') {
+               $filename,
+               $link,
+               $initiator,
+               $shareWith,
+               \DateTime $expiration = null,
+               $note = '') {
                $initiatorUser = $this->userManager->get($initiator);
                $initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
 
index 222f327496ac021f625e74a80e7e551955b5d45f..0e9642c306ea146e8e16cad42e257fb1b6350c6f 100644 (file)
@@ -27,9 +27,9 @@ use Exception;
 use OC\AppFramework\Bootstrap\Coordinator;
 use OCA\Files_Sharing\DefaultPublicShareTemplateProvider;
 use OCP\Server;
-use OCP\Share\IShare;
 use OCP\Share\IPublicShareTemplateFactory;
 use OCP\Share\IPublicShareTemplateProvider;
+use OCP\Share\IShare;
 
 class PublicShareTemplateFactory implements IPublicShareTemplateFactory {
        public function __construct(
index 0a50fa0ccfb52080a5db0223aa46ca70e59b41b6..c80d332e9dba24968610073b4625d99bf49e9f55 100644 (file)
@@ -29,8 +29,8 @@
  */
 namespace OC\Share20;
 
-use OCP\Files\File;
 use OCP\Files\Cache\ICacheEntry;
+use OCP\Files\File;
 use OCP\Files\FileInfo;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
index 33078310d279e37e3b48ef47a55fe7879e3a28b0..e2f854bc2336dd1f414785fc933015822856d976 100644 (file)
@@ -23,8 +23,8 @@
 
 namespace OC;
 
-use OCP\IStreamImage;
 use OCP\IImage;
+use OCP\IStreamImage;
 
 /**
  * Only useful when dealing with transferring streamed previews from an external
index 54f14b8ab88707555453561202a11a784ee422c9..9f079d30e0467aab4f1fd3f361f3b8dd7334494f 100644 (file)
@@ -60,9 +60,9 @@ class SubAdmin extends PublicEmitter implements ISubAdmin {
         * @param IDBConnection $dbConn
         */
        public function __construct(IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               IDBConnection $dbConn,
-                                                               IEventDispatcher $eventDispatcher) {
+               IGroupManager $groupManager,
+               IDBConnection $dbConn,
+               IEventDispatcher $eventDispatcher) {
                $this->userManager = $userManager;
                $this->groupManager = $groupManager;
                $this->dbConn = $dbConn;
index eba76ca103eadf46e6d485bcc2df457428e62a36..008cded5dd327b4f6464c7b4ee03a0252811b712 100644 (file)
@@ -62,10 +62,10 @@ class Registry implements IRegistry {
        private $logger;
 
        public function __construct(IConfig $config,
-                                                               IServerContainer $container,
-                                                               IUserManager $userManager,
-                                                               IGroupManager $groupManager,
-                                                               LoggerInterface $logger) {
+               IServerContainer $container,
+               IUserManager $userManager,
+               IGroupManager $groupManager,
+               LoggerInterface $logger) {
                $this->config = $config;
                $this->container = $container;
                $this->userManager = $userManager;
index 82c4dd2188d8d01afcb26991c8bea1491f2c6a30..552113f89dc0dc9abfc512ccc003c28e30c54002 100644 (file)
@@ -27,6 +27,7 @@
 namespace OC;
 
 use OC\Tagging\TagMapper;
+use OCP\Db\Exception as DBException;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
@@ -35,7 +36,6 @@ use OCP\ITagManager;
 use OCP\ITags;
 use OCP\IUserSession;
 use OCP\User\Events\UserDeletedEvent;
-use OCP\Db\Exception as DBException;
 use Psr\Log\LoggerInterface;
 
 /**
index 1ee9c33acf7f7880cfaa6db7877db7db5e248ba2..ab227de5f7fc999bda409b73db7e9373194d19e1 100644 (file)
@@ -27,8 +27,8 @@ namespace OC\Tagging;
 
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Db\QBMapper;
-use OCP\IDBConnection;
 use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\IDBConnection;
 
 /**
  * Mapper for Tag entity
index 12e6c5fb34b6c53b69efa18099407612f2328dda..451e7822790229e48a0094200630c0a9515fc534 100644 (file)
@@ -48,8 +48,8 @@ class Broker implements IBroker {
        private ?ITalkBackend $backend = null;
 
        public function __construct(Coordinator $coordinator,
-                                                               IServerContainer $container,
-                                                               LoggerInterface $logger) {
+               IServerContainer $container,
+               LoggerInterface $logger) {
                $this->coordinator = $coordinator;
                $this->container = $container;
                $this->logger = $logger;
@@ -94,8 +94,8 @@ class Broker implements IBroker {
        }
 
        public function createConversation(string $name,
-                                                                          array $moderators,
-                                                                          IConversationOptions $options = null): IConversation {
+               array $moderators,
+               IConversationOptions $options = null): IConversation {
                if (!$this->hasBackend()) {
                        throw new NoBackendException("The Talk broker has no registered backend");
                }
index b87829360d50873f57b6bf935cbf3ec4563bb2f5..fad69a76ae0527163a06a4554aa821772d7ced5e 100644 (file)
@@ -55,10 +55,10 @@ class JSCombiner {
        private $cacheFactory;
 
        public function __construct(IAppData $appData,
-                                                               IURLGenerator $urlGenerator,
-                                                               ICacheFactory $cacheFactory,
-                                                               SystemConfig $config,
-                                                               LoggerInterface $logger) {
+               IURLGenerator $urlGenerator,
+               ICacheFactory $cacheFactory,
+               SystemConfig $config,
+               LoggerInterface $logger) {
                $this->appData = $appData;
                $this->urlGenerator = $urlGenerator;
                $this->cacheFactory = $cacheFactory;
index 7b6d0a6a3464842da2569b7d8046ddfa3a783bfb..057caaaf2fea4a39e07897d3f025bbe1dde36b02 100644 (file)
@@ -45,9 +45,9 @@ use OCP\IConfig;
 use OCP\IGroupManager;
 use OCP\IInitialStateService;
 use OCP\IL10N;
+use OCP\ILogger;
 use OCP\ISession;
 use OCP\IURLGenerator;
-use OCP\ILogger;
 use OCP\IUser;
 use OCP\User\Backend\IPasswordConfirmationBackend;
 use OCP\Util;
@@ -69,16 +69,16 @@ class JSConfigHelper {
        private $excludedUserBackEnds = ['user_saml' => true, 'user_globalsiteselector' => true];
 
        public function __construct(IL10N $l,
-                                                               Defaults $defaults,
-                                                               IAppManager $appManager,
-                                                               ISession $session,
-                                                               ?IUser $currentUser,
-                                                               IConfig $config,
-                                                               IGroupManager $groupManager,
-                                                               IniGetWrapper $iniWrapper,
-                                                               IURLGenerator $urlGenerator,
-                                                               CapabilitiesManager $capabilitiesManager,
-                                                               IInitialStateService $initialStateService) {
+               Defaults $defaults,
+               IAppManager $appManager,
+               ISession $session,
+               ?IUser $currentUser,
+               IConfig $config,
+               IGroupManager $groupManager,
+               IniGetWrapper $iniWrapper,
+               IURLGenerator $urlGenerator,
+               CapabilitiesManager $capabilitiesManager,
+               IInitialStateService $initialStateService) {
                $this->l = $l;
                $this->defaults = $defaults;
                $this->appManager = $appManager;
index c98ff89314371aa2be99e54c704f9b743a738285..6ffd05879276f0b36a8c92b5c131cc23a00114c2 100644 (file)
@@ -27,21 +27,21 @@ namespace OC\TextProcessing;
 
 use OC\AppFramework\Bootstrap\Coordinator;
 use OC\TextProcessing\Db\Task as DbTask;
-use OCP\IConfig;
-use OCP\TextProcessing\Exception\TaskFailureException;
-use OCP\TextProcessing\IProviderWithExpectedRuntime;
-use OCP\TextProcessing\Task;
-use OCP\TextProcessing\Task as OCPTask;
 use OC\TextProcessing\Db\TaskMapper;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\AppFramework\Db\MultipleObjectsReturnedException;
 use OCP\BackgroundJob\IJobList;
 use OCP\Common\Exception\NotFoundException;
 use OCP\DB\Exception;
+use OCP\IConfig;
 use OCP\IServerContainer;
+use OCP\PreConditionNotMetException;
+use OCP\TextProcessing\Exception\TaskFailureException;
 use OCP\TextProcessing\IManager;
 use OCP\TextProcessing\IProvider;
-use OCP\PreConditionNotMetException;
+use OCP\TextProcessing\IProviderWithExpectedRuntime;
+use OCP\TextProcessing\Task;
+use OCP\TextProcessing\Task as OCPTask;
 use Psr\Log\LoggerInterface;
 use RuntimeException;
 use Throwable;
index f68f657277fbce3e971bf2ce7c1994f62f9f9cfc..86212709c4200b5085b96baf3cc83b53efa4fa89 100644 (file)
@@ -27,23 +27,23 @@ namespace OC\TextToImage;
 
 use OC\AppFramework\Bootstrap\Coordinator;
 use OC\TextToImage\Db\Task as DbTask;
+use OC\TextToImage\Db\TaskMapper;
+use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\AppFramework\Db\MultipleObjectsReturnedException;
+use OCP\BackgroundJob\IJobList;
+use OCP\DB\Exception;
 use OCP\Files\AppData\IAppDataFactory;
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
 use OCP\Files\NotPermittedException;
 use OCP\IConfig;
+use OCP\IServerContainer;
+use OCP\PreConditionNotMetException;
 use OCP\TextToImage\Exception\TaskFailureException;
 use OCP\TextToImage\Exception\TaskNotFoundException;
 use OCP\TextToImage\IManager;
-use OCP\TextToImage\Task;
-use OC\TextToImage\Db\TaskMapper;
-use OCP\AppFramework\Db\DoesNotExistException;
-use OCP\AppFramework\Db\MultipleObjectsReturnedException;
-use OCP\BackgroundJob\IJobList;
-use OCP\DB\Exception;
-use OCP\IServerContainer;
 use OCP\TextToImage\IProvider;
-use OCP\PreConditionNotMetException;
+use OCP\TextToImage\Task;
 use Psr\Log\LoggerInterface;
 use RuntimeException;
 use Throwable;
index 4e9a23b3eae75de4d0e1c685a463e7c2238e71a0..3d384de58424af66dce19f5d8cd954e509b60946 100644 (file)
@@ -70,10 +70,10 @@ class URLGenerator implements IURLGenerator {
        private ?IAppManager $appManager = null;
 
        public function __construct(IConfig $config,
-                                                               IUserSession $userSession,
-                                                               ICacheFactory $cacheFactory,
-                                                               IRequest $request,
-                                                               Router $router
+               IUserSession $userSession,
+               ICacheFactory $cacheFactory,
+               IRequest $request,
+               Router $router
        ) {
                $this->config = $config;
                $this->userSession = $userSession;
index 5a14bb17507795b94808cdc5556a606a78310fbd..018e4797232ac6a9172546d586b99a04b0bcd756 100644 (file)
@@ -40,13 +40,6 @@ declare(strict_types=1);
  */
 namespace OC;
 
-use OCP\App\IAppManager;
-use OCP\EventDispatcher\Event;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\HintException;
-use OCP\IConfig;
-use OCP\ILogger;
-use OCP\Util;
 use OC\App\AppManager;
 use OC\DB\Connection;
 use OC\DB\MigrationService;
@@ -61,6 +54,13 @@ use OC\Repair\Events\RepairStartEvent;
 use OC\Repair\Events\RepairStepEvent;
 use OC\Repair\Events\RepairWarningEvent;
 use OC_App;
+use OCP\App\IAppManager;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\HintException;
+use OCP\IConfig;
+use OCP\ILogger;
+use OCP\Util;
 use Psr\Log\LoggerInterface;
 
 /**
@@ -94,9 +94,9 @@ class Updater extends BasicEmitter {
        ];
 
        public function __construct(IConfig $config,
-                                                               Checker $checker,
-                                                               ?LoggerInterface $log,
-                                                               Installer $installer) {
+               Checker $checker,
+               ?LoggerInterface $log,
+               Installer $installer) {
                $this->log = $log;
                $this->config = $config;
                $this->checker = $checker;
index ec1f80c5413a8610e2620adb108818474bfdfa87..8978c341a13f6cdfe0c2d71a2524853852876af8 100644 (file)
@@ -25,9 +25,9 @@ namespace OC\User\Listeners;
 
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
-use OCP\User\Events\BeforeUserDeletedEvent;
 use OCP\Files\NotFoundException;
 use OCP\IAvatarManager;
+use OCP\User\Events\BeforeUserDeletedEvent;
 use Psr\Log\LoggerInterface;
 
 /**
index a561db2423dcc72cfad090e5e5cca48e83260be8..0fa5ceeb0ed8cb1e1cabf60126dc299f8be91a04 100644 (file)
@@ -25,9 +25,9 @@ namespace OC\User\Listeners;
 
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
-use OCP\User\Events\UserChangedEvent;
 use OCP\Files\NotFoundException;
 use OCP\IAvatarManager;
+use OCP\User\Events\UserChangedEvent;
 
 /**
  * @template-implements IEventListener<UserChangedEvent>
index 8ec8ef0c4bec995ac5a62cd74f5553681a1882b9..5013c9bed7af0916d8de0c30f262072928dac951 100644 (file)
@@ -48,11 +48,11 @@ use OCP\IUserManager;
 use OCP\L10N\IFactory;
 use OCP\Server;
 use OCP\Support\Subscription\IAssertion;
-use OCP\User\Backend\IGetRealUIDBackend;
-use OCP\User\Backend\ISearchKnownUsersBackend;
 use OCP\User\Backend\ICheckPasswordBackend;
 use OCP\User\Backend\ICountUsersBackend;
+use OCP\User\Backend\IGetRealUIDBackend;
 use OCP\User\Backend\IProvideEnabledStateBackend;
+use OCP\User\Backend\ISearchKnownUsersBackend;
 use OCP\User\Events\BeforeUserCreatedEvent;
 use OCP\User\Events\UserCreatedEvent;
 use OCP\UserInterface;
@@ -97,8 +97,8 @@ class Manager extends PublicEmitter implements IUserManager {
        private DisplayNameCache $displayNameCache;
 
        public function __construct(IConfig $config,
-                                                               ICacheFactory $cacheFactory,
-                                                               IEventDispatcher $eventDispatcher) {
+               ICacheFactory $cacheFactory,
+               IEventDispatcher $eventDispatcher) {
                $this->config = $config;
                $this->cache = new WithLocalCache($cacheFactory->createDistributed('user_backend_map'));
                $cachedUsers = &$this->cachedUsers;
index f8578ee616c32c1a47452c6ef21949081f770490..f3282009a4dfe8b265dac8e828aad46f68604ce4 100644 (file)
@@ -120,14 +120,14 @@ class Session implements IUserSession, Emitter {
        private $dispatcher;
 
        public function __construct(Manager $manager,
-                                                               ISession $session,
-                                                               ITimeFactory $timeFactory,
-                                                               ?IProvider $tokenProvider,
-                                                               IConfig $config,
-                                                               ISecureRandom $random,
-                                                               ILockdownManager $lockdownManager,
-                                                               LoggerInterface $logger,
-                                                               IEventDispatcher $dispatcher
+               ISession $session,
+               ITimeFactory $timeFactory,
+               ?IProvider $tokenProvider,
+               IConfig $config,
+               ISecureRandom $random,
+               ILockdownManager $lockdownManager,
+               LoggerInterface $logger,
+               IEventDispatcher $dispatcher
        ) {
                $this->manager = $manager;
                $this->session = $session;
@@ -425,9 +425,9 @@ class Session implements IUserSession, Emitter {
         * @return boolean
         */
        public function logClientIn($user,
-                                                               $password,
-                                                               IRequest $request,
-                                                               IThrottler $throttler) {
+               $password,
+               IRequest $request,
+               IThrottler $throttler) {
                $remoteAddress = $request->getRemoteAddress();
                $currentDelay = $throttler->sleepDelayOrThrowOnMax($remoteAddress, 'login');
 
@@ -576,7 +576,7 @@ class Session implements IUserSession, Emitter {
         * @return boolean if the login was successful
         */
        public function tryBasicAuthLogin(IRequest $request,
-                                                                         IThrottler $throttler) {
+               IThrottler $throttler) {
                if (!empty($request->server['PHP_AUTH_USER']) && !empty($request->server['PHP_AUTH_PW'])) {
                        try {
                                if ($this->logClientIn($request->server['PHP_AUTH_USER'], $request->server['PHP_AUTH_PW'], $request, $throttler)) {
index c62d14d9450921c15eddce149bba2e460b99f94f..580c590e6eb5496ac9df29120d034d4236d77c21 100644 (file)
@@ -49,17 +49,17 @@ use OCP\IImage;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserBackend;
+use OCP\User\Backend\IGetHomeBackend;
+use OCP\User\Backend\IProvideAvatarBackend;
+use OCP\User\Backend\IProvideEnabledStateBackend;
+use OCP\User\Backend\ISetDisplayNameBackend;
+use OCP\User\Backend\ISetPasswordBackend;
 use OCP\User\Events\BeforePasswordUpdatedEvent;
 use OCP\User\Events\BeforeUserDeletedEvent;
 use OCP\User\Events\PasswordUpdatedEvent;
 use OCP\User\Events\UserChangedEvent;
 use OCP\User\Events\UserDeletedEvent;
 use OCP\User\GetQuotaEvent;
-use OCP\User\Backend\ISetDisplayNameBackend;
-use OCP\User\Backend\ISetPasswordBackend;
-use OCP\User\Backend\IProvideAvatarBackend;
-use OCP\User\Backend\IProvideEnabledStateBackend;
-use OCP\User\Backend\IGetHomeBackend;
 use OCP\UserInterface;
 use function json_decode;
 use function json_encode;
index 89a1bb455c7ccc30a01415618110f5534ccde6df..e255e24c70e17ef98cc7f24eb5bc8176a2a84622 100644 (file)
@@ -51,7 +51,7 @@ class Manager implements IManager {
         * @param LoggerInterface $logger
         */
        public function __construct(IServerContainer $container,
-                                                               LoggerInterface $logger) {
+               LoggerInterface $logger) {
                $this->container = $container;
                $this->logger = $logger;
        }
index 579c38b2d7c989ca5f3840846772ebca1c84ead3..395c1f44c033ed8f4a543791c7c418991c603f5d 100644 (file)
@@ -51,18 +51,18 @@ declare(strict_types=1);
  *
  */
 
-use OCP\App\Events\AppUpdateEvent;
-use OCP\App\IAppManager;
-use OCP\App\ManagerEvent;
-use OCP\Authentication\IAlternativeLogin;
-use OCP\EventDispatcher\IEventDispatcher;
-use OC\AppFramework\Bootstrap\Coordinator;
 use OC\App\DependencyAnalyzer;
 use OC\App\Platform;
+use OC\AppFramework\Bootstrap\Coordinator;
 use OC\DB\MigrationService;
 use OC\Installer;
 use OC\Repair;
 use OC\Repair\Events\RepairErrorEvent;
+use OCP\App\Events\AppUpdateEvent;
+use OCP\App\IAppManager;
+use OCP\App\ManagerEvent;
+use OCP\Authentication\IAlternativeLogin;
+use OCP\EventDispatcher\IEventDispatcher;
 use Psr\Container\ContainerExceptionInterface;
 use Psr\Log\LoggerInterface;
 
@@ -251,7 +251,7 @@ class OC_App {
         * This function set an app as enabled in appconfig.
         */
        public function enable(string $appId,
-                                                  array $groups = []) {
+               array $groups = []) {
                // Check if app is already downloaded
                /** @var Installer $installer */
                $installer = \OCP\Server::get(Installer::class);
index ac0a2bbd0e9f3c389c13d150f6e997b997d6bb9b..a2f47639e65a9e35a18663e5dba49db303ac9bcb 100644 (file)
 use bantu\IniGetWrapper\IniGetWrapper;
 use OC\Files\View;
 use OC\Streamer;
-use OCP\Lock\ILockingProvider;
-use OCP\Files\Events\BeforeZipCreatedEvent;
-use OCP\Files\Events\BeforeDirectFileDownloadEvent;
 use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Files\Events\BeforeDirectFileDownloadEvent;
+use OCP\Files\Events\BeforeZipCreatedEvent;
+use OCP\Lock\ILockingProvider;
 
 /**
  * Class for file server access
index cf39d045ae900a02fb5d85d3d7e5be81020e18cc..37fbf7f5f8fa0395d9f5ac3664ec635e459c5287 100644 (file)
@@ -46,8 +46,8 @@
 use bantu\IniGetWrapper\IniGetWrapper;
 use OC\Files\Filesystem;
 use OCP\Files\Mount\IMountPoint;
-use OCP\ICacheFactory;
 use OCP\IBinaryFinder;
+use OCP\ICacheFactory;
 use OCP\IUser;
 use OCP\Util;
 use Psr\Log\LoggerInterface;
index 66c278e62d844c2b6eae30fa81ce4eb98b954ef9..9505af0b2e2da397d63d37dde01098850ae82e64 100644 (file)
@@ -52,10 +52,10 @@ abstract class ApiController extends Controller {
         * @since 7.0.0
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               $corsMethods = 'PUT, POST, GET, DELETE, PATCH',
-                                                               $corsAllowedHeaders = 'Authorization, Content-Type, Accept',
-                                                               $corsMaxAge = 1728000) {
+               IRequest $request,
+               $corsMethods = 'PUT, POST, GET, DELETE, PATCH',
+               $corsAllowedHeaders = 'Authorization, Content-Type, Accept',
+               $corsMaxAge = 1728000) {
                parent::__construct($appName, $request);
                $this->corsMethods = $corsMethods;
                $this->corsAllowedHeaders = $corsAllowedHeaders;
index 78dd45551ed9cac19f32a3caebbea92646f4f4ad..847f1823db8852344b40969969a8ea6240057322 100644 (file)
@@ -57,9 +57,9 @@ abstract class AuthPublicShareController extends PublicShareController {
         * @since 14.0.0
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               ISession $session,
-                                                               IURLGenerator $urlGenerator) {
+               IRequest $request,
+               ISession $session,
+               IURLGenerator $urlGenerator) {
                parent::__construct($appName, $request, $session);
 
                $this->urlGenerator = $urlGenerator;
index 3153b556a5c871f29d9e5fcffa6151fcf5fe1eee..b39c8591a7ef0c0d47037992084b42b7b9138f70 100644 (file)
@@ -37,11 +37,11 @@ use OCP\Collaboration\Reference\IReferenceProvider;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Template\ICustomTemplateProvider;
 use OCP\IContainer;
-use OCP\TextProcessing\IProvider as ITextProcessingProvider;
-use OCP\TextToImage\IProvider as ITextToImageProvider;
 use OCP\Notification\INotifier;
 use OCP\Preview\IProviderV2;
 use OCP\SpeechToText\ISpeechToTextProvider;
+use OCP\TextProcessing\IProvider as ITextProcessingProvider;
+use OCP\TextToImage\IProvider as ITextToImageProvider;
 use OCP\Translation\ITranslationProvider;
 
 /**
index e8500d5ae1af8cc7bb6adeac46000385dd029a0e..12e1c31626b643fc363722b90b18d744e89c7846 100644 (file)
@@ -65,7 +65,7 @@ abstract class Controller {
         * @since 6.0.0 - parameter $appName was added in 7.0.0 - parameter $app was removed in 7.0.0
         */
        public function __construct($appName,
-                                                               IRequest $request) {
+               IRequest $request) {
                $this->appName = $appName;
                $this->request = $request;
 
index 043ae0161e95706712683c49a1fe7c203a1f1abc..688fb6cc38539a16ea49f7840ff2d67a2aa55924 100644 (file)
@@ -26,8 +26,8 @@ declare(strict_types=1);
  */
 namespace OCP\AppFramework\Http;
 
-use OCP\Template;
 use OCP\AppFramework\Http;
+use OCP\Template;
 
 /**
  * A generic 429 response showing an 404 error page as well to the end-user
index 51c71ad4e64eba9f9056fab8174ce534ea006238..68c88915b1cd84aba4015539c57858cac8acfe50 100644 (file)
@@ -59,10 +59,10 @@ abstract class OCSController extends ApiController {
         * @since 8.1.0
         */
        public function __construct($appName,
-                                                               IRequest $request,
-                                                               $corsMethods = 'PUT, POST, GET, DELETE, PATCH',
-                                                               $corsAllowedHeaders = 'Authorization, Content-Type, Accept, OCS-APIRequest',
-                                                               $corsMaxAge = 1728000) {
+               IRequest $request,
+               $corsMethods = 'PUT, POST, GET, DELETE, PATCH',
+               $corsAllowedHeaders = 'Authorization, Content-Type, Accept, OCS-APIRequest',
+               $corsMaxAge = 1728000) {
                parent::__construct($appName, $request, $corsMethods,
                        $corsAllowedHeaders, $corsMaxAge);
                $this->registerResponder('json', function ($data) {
index 52acbe841b420834fb667bc1621a9f3ec9bac416..7c3725c9290a427586347ddc046e1416394ea9dd 100644 (file)
@@ -53,8 +53,8 @@ abstract class PublicShareController extends Controller {
         * @since 14.0.0
         */
        public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               ISession $session) {
+               IRequest $request,
+               ISession $session) {
                parent::__construct($appName, $request);
 
                $this->session = $session;
index 8d7ffd164b3af958d0f4598ca9d102b9d29db9c2..152c8deeaf37d875ad5e1d8026c8cf2be5e9b5f0 100644 (file)
@@ -114,11 +114,11 @@ interface ICommentsManager {
         * @since 9.0.0
         */
        public function getForObject(
-                       $objectType,
-                       $objectId,
-                       $limit = 0,
-                       $offset = 0,
-                       \DateTime $notOlderThan = null
+               $objectType,
+               $objectId,
+               $limit = 0,
+               $offset = 0,
+               \DateTime $notOlderThan = null
        );
 
        /**
index 1c54d2bd426fbf67676fe7047360f2090c391a5d..22235053b5d222e5ddc718928626e1d2866ac3a5 100644 (file)
@@ -70,11 +70,11 @@ final class WidgetItem implements JsonSerializable {
         * @since 22.0.0
         */
        public function __construct(string $title = '',
-                                                               string $subtitle = '',
-                                                               string $link = '',
-                                                               string $iconUrl = '',
-                                                               string $sinceId = '',
-                                                               string $overlayIconUrl = '') {
+               string $subtitle = '',
+               string $link = '',
+               string $iconUrl = '',
+               string $sinceId = '',
+               string $overlayIconUrl = '') {
                $this->title = $title;
                $this->subtitle = $subtitle;
                $this->iconUrl = $iconUrl;
index 18d6318f2f4938ecb39d930f9c50bb7e8c28b496..2669c51088e854fbd49c6a020430338380feec46 100644 (file)
@@ -44,7 +44,7 @@ class FileCacheUpdated extends Event {
         * @since 18.0.0
         */
        public function __construct(IStorage $storage,
-                                                               string $path) {
+               string $path) {
                parent::__construct();
                $this->storage = $storage;
                $this->path = $path;
index 6986b4b59899d4254703621a1691ca6384089ade..3a1947e7a1611c39b038d1664f1d86cf6f2f5c58 100644 (file)
@@ -44,7 +44,7 @@ class NodeAddedToCache extends Event {
         * @since 18.0.0
         */
        public function __construct(IStorage $storage,
-                                                               string $path) {
+               string $path) {
                parent::__construct();
                $this->storage = $storage;
                $this->path = $path;
index 9f67cb71371e96b0b9002c2ee92bae9bab90bacb..83c4bd1653111bad1bfa3b270d15031b1868ee4c 100644 (file)
@@ -44,7 +44,7 @@ class NodeRemovedFromCache extends Event {
         * @since 18.0.0
         */
        public function __construct(IStorage $storage,
-                                                               string $path) {
+               string $path) {
                parent::__construct();
                $this->storage = $storage;
                $this->path = $path;
index b49b4a0f83d83a6f589e283396cf5571d02e6f6c..ecf1427fa1a164fd1ff5874e8a9b8d1f93fee451 100644 (file)
@@ -30,8 +30,8 @@
 
 namespace OCP\Files;
 
-use OCP\Lock\LockedException;
 use OCP\Files\Storage\IStorage;
+use OCP\Lock\LockedException;
 
 /**
  * Interface Node
index 7a25f8fe0c3c46d6b4ab2c0cc4e6ae71582ef8c9..077b58dc1d9dbad439b1179b65fb8fa8001fe1b4 100644 (file)
@@ -127,10 +127,10 @@ final class JrdResponse implements IResponse {
         * @since 21.0.0
         */
        public function addLink(string $rel,
-                                                       ?string $type,
-                                                       ?string $href,
-                                                       ?array $titles = [],
-                                                       ?array $properties = []): self {
+               ?string $type,
+               ?string $href,
+               ?array $titles = [],
+               ?array $properties = []): self {
                $this->links[] = array_filter([
                        'rel' => $rel,
                        'type' => $type,
index 79c67e5b8bd8f82149205f6cecd367d8660d4aa2..45786a5c980f70e525b34c22c3a7ffafb7790f81 100644 (file)
@@ -49,8 +49,8 @@ class CriticalActionPerformedEvent extends Event {
         * @since 22.0.0
         */
        public function __construct(string $logMessage,
-                                                               array $parameters = [],
-                                                               bool $obfuscateParameters = false) {
+               array $parameters = [],
+               bool $obfuscateParameters = false) {
                parent::__construct();
                $this->logMessage = $logMessage;
                $this->parameters = $parameters;
index 9ac8b28fb8ba7790dd6b43cfff7d101a1923dce1..892c60777b3678865a5585d38279f347461a88c7 100644 (file)
@@ -54,9 +54,9 @@ final class SearchResult implements JsonSerializable {
         * @since 20.0.0
         */
        private function __construct(string $name,
-                                                                bool $isPaginated,
-                                                                array $entries,
-                                                                $cursor = null) {
+               bool $isPaginated,
+               array $entries,
+               $cursor = null) {
                $this->name = $name;
                $this->isPaginated = $isPaginated;
                $this->entries = $entries;
@@ -87,8 +87,8 @@ final class SearchResult implements JsonSerializable {
         * @since 20.0.0
         */
        public static function paginated(string $name,
-                                                                       array $entries,
-                                                                        $cursor): self {
+               array $entries,
+               $cursor): self {
                return new self(
                        $name,
                        true,
index 86a3f08cfe6e607acfbe64c2d7099942de57ecca..f4ff1ec2a5c14a023b34bf524d9278f08696469b 100644 (file)
@@ -98,11 +98,11 @@ class SearchResultEntry implements JsonSerializable {
         * @since 20.0.0
         */
        public function __construct(string $thumbnailUrl,
-                                                               string $title,
-                                                               string $subline,
-                                                               string $resourceUrl,
-                                                               string $icon = '',
-                                                               bool $rounded = false) {
+               string $title,
+               string $subline,
+               string $resourceUrl,
+               string $icon = '',
+               bool $rounded = false) {
                $this->thumbnailUrl = $thumbnailUrl;
                $this->title = $title;
                $this->subline = $subline;
index 3634ebf99f7f0986927ce88d207b9a7a7ce73c9f..48013b2cca7e834dee55694baef39de382b3f8f1 100644 (file)
@@ -64,5 +64,5 @@ interface ISecureRandom {
         * @since 8.0.0
         */
        public function generate(int $length,
-                                                        string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;
+               string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;
 }
index 275746b0b491a79edcafaf9fcb18e5a9f74d6c54..cfc7387664d48921ca28843c6cbabfdfd55425d7 100644 (file)
@@ -50,9 +50,9 @@ interface ILimiter {
         *
         */
        public function registerAnonRequest(string $identifier,
-                                                                               int    $anonLimit,
-                                                                               int    $anonPeriod,
-                                                                               string $ip): void;
+               int    $anonLimit,
+               int    $anonPeriod,
+               string $ip): void;
 
        /**
         * Registers attempt for an authenticated request
@@ -66,7 +66,7 @@ interface ILimiter {
         *
         */
        public function registerUserRequest(string $identifier,
-                                                                               int    $userLimit,
-                                                                               int    $userPeriod,
-                                                                               IUser  $user): void;
+               int    $userLimit,
+               int    $userPeriod,
+               IUser  $user): void;
 }
index 9499cdb14b6903315ca6c6b54d656fe991aa2079..225f252c2a98080dbeaf032eac55ac01b63ca4a6 100644 (file)
@@ -116,7 +116,7 @@ class Share extends \OC\Share\Constants {
         *   * defacto $parameters and $format is always the default and therefore is removed in the subsequent call
         */
        public static function getItemShared($itemType, $itemSource, $format = self::FORMAT_NONE,
-                                                                                $parameters = null, $includeCollections = false) {
+               $parameters = null, $includeCollections = false) {
                return \OC\Share\Share::getItemShared($itemType, $itemSource, self::FORMAT_NONE, null, $includeCollections);
        }
 
index 650f4ad224500ae486a8c65433dbb617a80358e2..af71314930b10033b2f8c8a230203cf431be57e0 100644 (file)
@@ -44,8 +44,8 @@ class VerifyMountPointEvent extends Event {
         * @since 19.0.0
         */
        public function __construct(IShare $share,
-                                                               View $view,
-                                                               string $parent) {
+               View $view,
+               string $parent) {
                parent::__construct();
 
                $this->share = $share;
index b6e0c4ba38bf99c6993287ca2d403f295e50d721..2a37508d4490ae350d63152db96912862c296ef7 100644 (file)
@@ -70,7 +70,7 @@ interface IShareProvider {
         * @return IShare The share object
         * @since 17.0.0
         */
-//     public function acceptShare(IShare $share, string $recipient): IShare;
+       //      public function acceptShare(IShare $share, string $recipient): IShare;
 
        /**
         * Delete a share
index d3b6e1429e6122d542e8351a090d3daab3318006..f2b512ea4a8ee846683cad3f56d674c9cb470af5 100644 (file)
@@ -68,8 +68,8 @@ interface IBroker {
         * @since 24.0.0
         */
        public function createConversation(string $name,
-                                                                          array $moderators,
-                                                                          IConversationOptions $options = null): IConversation;
+               array $moderators,
+               IConversationOptions $options = null): IConversation;
 
        /**
         * Delete a conversation by id
index 3ee995576a4ecdca4a98a586a53f5088993789e1..a2f4d9620192be1d149affb453067f886e53942c 100644 (file)
@@ -46,8 +46,8 @@ interface ITalkBackend {
         * @since 24.0.0
         */
        public function createConversation(string $name,
-                                                                          array $moderators,
-                                                                          IConversationOptions $options): IConversation;
+               array $moderators,
+               IConversationOptions $options): IConversation;
 
        /**
         * Delete a conversation by id
index 11eb5ad9dd048ba04da53320b7eabad6a07093c5..ee228ae01e75fc9ad164f555fb8d66d9f9066915 100644 (file)
@@ -51,8 +51,8 @@ class BeforePasswordUpdatedEvent extends Event {
         * @since 18.0.0
         */
        public function __construct(IUser $user,
-                                                               string $password,
-                                                               string $recoveryPassword = null) {
+               string $password,
+               string $recoveryPassword = null) {
                parent::__construct();
                $this->user = $user;
                $this->password = $password;
index 67e9177b34dfd143b3b2a637eaf3e6cfa2a25b4d..ee33239a12c2a0c00c85e1298997227e3336d7a6 100644 (file)
@@ -44,7 +44,7 @@ class BeforeUserCreatedEvent extends Event {
         * @since 18.0.0
         */
        public function __construct(string $uid,
-                                                               string $password) {
+               string $password) {
                parent::__construct();
                $this->uid = $uid;
                $this->password = $password;
index 41d510553b5be7a35523fa1dd767d8a8ff11a409..782d6d270ead3f09eaf76fb1f6362d1af4c965aa 100644 (file)
@@ -51,8 +51,8 @@ class PasswordUpdatedEvent extends Event {
         * @since 18.0.0
         */
        public function __construct(IUser $user,
-                                                               string $password,
-                                                               string $recoveryPassword = null) {
+               string $password,
+               string $recoveryPassword = null) {
                parent::__construct();
                $this->user = $user;
                $this->password = $password;
index f48dd3914e69e3a5a80c6adeef3fea428fe88858..870b0326920aa194da911af674751320ed3bd5e2 100644 (file)
@@ -43,9 +43,9 @@ class UserChangedEvent extends Event {
         * @since 18.0.0
         */
        public function __construct(IUser $user,
-                                                               string $feature,
-                                                               $value,
-                                                               $oldValue = null) {
+               string $feature,
+               $value,
+               $oldValue = null) {
                parent::__construct();
                $this->user = $user;
                $this->feature = $feature;
index 7d343bfd5b8cd044e8181b990bf0d94d49d917b0..b0a734be0cb2ff60d5bf020cf450ea74a285817b 100644 (file)
@@ -45,7 +45,7 @@ class UserCreatedEvent extends Event {
         * @since 18.0.0
         */
        public function __construct(IUser $user,
-                                                               string $password) {
+               string $password) {
                parent::__construct();
                $this->user = $user;
                $this->password = $password;
index d04c3b61e240fc5e039b83025f386ee38362f5d7..8b6207d685d7cc88adf5bba97a25e770eff266da 100644 (file)
@@ -60,8 +60,8 @@ class UserLiveStatusEvent extends Event {
         * @since 20.0.0
         */
        public function __construct(IUser $user,
-                                                               string $status,
-                                                               int $timestamp) {
+               string $status,
+               int $timestamp) {
                parent::__construct();
                $this->user = $user;
                $this->status = $status;
index cabb84c0cf663fe7a0d7668694954b1e89b4dcaf..488eddbaf4b9528d5e99efc2af7ec5099736f362 100644 (file)
@@ -46,9 +46,9 @@
 
 namespace OCP;
 
+use bantu\IniGetWrapper\IniGetWrapper;
 use OC\AppScriptDependency;
 use OC\AppScriptSort;
-use bantu\IniGetWrapper\IniGetWrapper;
 use OCP\Share\IManager;
 use Psr\Container\ContainerExceptionInterface;
 
index 055398993729a044addce9b80fbed70cc19330dd..f1f19fb5ee49b2d96583a753f70916f39e13af59 100644 (file)
@@ -41,8 +41,8 @@ if (\OCP\Util::needUpgrade()
        exit;
 }
 
-use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 use Symfony\Component\Routing\Exception\MethodNotAllowedException;
+use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 
 /*
  * Try the appframework routes
index 0c33fabc762aacae08277ae6ba61217a7a57c9a4..03575627dc504ba0e12c765dfee721db5b06fd1d 100644 (file)
@@ -34,9 +34,9 @@
 require_once __DIR__ . '/lib/versioncheck.php';
 
 use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
+use Psr\Log\LoggerInterface;
 use Sabre\DAV\Exception\ServiceUnavailable;
 use Sabre\DAV\Server;
-use Psr\Log\LoggerInterface;
 
 /**
  * Class RemoteException
index fd4af615340387c7a1a4147571578c2e6223d81b..550dad1ef2f8c8afcf9b8a9d991f7cda59fdd5b1 100644 (file)
@@ -10,11 +10,11 @@ use OCP\Files\Node;
 use OCP\IConfig;
 use OCP\Lock\ILockingProvider;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 use Symfony\Component\Console\Formatter\OutputFormatterInterface;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Test\TestCase;
-use Psr\Log\LoggerInterface;
 
 class RepairTest extends TestCase {
        /** @var IConfig|MockObject */
index 528d4c6869bdca9b6dac01ad78ef7803e5e09ece..e11bf938dc92980ef70c6147c22a19c867e65e14 100644 (file)
@@ -22,8 +22,8 @@
  */
 namespace Tests\Core\Command\User\AuthTokens;
 
-use OC\Core\Command\User\AuthTokens\Delete;
 use OC\Authentication\Token\IProvider;
+use OC\Core\Command\User\AuthTokens\Delete;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Exception\RuntimeException;
 use Symfony\Component\Console\Input\InputInterface;
index 333baf0aa86f56901854e6a8093373415f299b85..7d82e256c1751d945fcb573c53be97ed817342c7 100644 (file)
@@ -314,7 +314,7 @@ class LoginControllerTest extends TestCase {
         * @dataProvider passwordResetDataProvider
         */
        public function testShowLoginFormWithPasswordResetOption($canChangePassword,
-                                                                                                                        $expectedResult) {
+               $expectedResult) {
                $this->userSession
                        ->expects($this->once())
                        ->method('isLoggedIn')
index 57443ca13280ef53e857aa1dac82e75c5874a8d0..7ca389946d8f5276ac62edfead43206abcf09d44 100644 (file)
@@ -27,8 +27,8 @@ use OC\Authentication\Token\IProvider;
 use OC\Authentication\Token\IToken;
 use OC\Core\Data\LoginFlowV2Credentials;
 use OC\Core\Data\LoginFlowV2Tokens;
-use OC\Core\Db\LoginFlowV2Mapper;
 use OC\Core\Db\LoginFlowV2;
+use OC\Core\Db\LoginFlowV2Mapper;
 use OC\Core\Exception\LoginFlowV2NotFoundException;
 use OC\Core\Service\LoginFlowV2Service;
 use OCP\AppFramework\Db\DoesNotExistException;
index edb48dc41304f816029077ff90fc4b6cfbdf7ca1..a81dbecf32c1782da93575762fbc26984c2be5f6 100644 (file)
@@ -77,7 +77,7 @@ class VersionParserTest extends TestCase {
         * @param Version $expected
         */
        public function testGetVersion($input,
-                                                                  Version $expected) {
+               Version $expected) {
                $this->assertEquals($expected, $this->versionParser->getVersion($input));
        }
 
index bc56161150153545f34960f7ba75a61e29f86e55..c34d2775faf9080cabe0ec4225a1b4d776f0d995 100644 (file)
@@ -10,8 +10,8 @@ namespace Test\App;
 
 use OC;
 use OC\App\InfoParser;
-use Test\TestCase;
 use OCP\Cache\CappedMemoryCache;
+use Test\TestCase;
 
 class InfoParserTest extends TestCase {
        /** @var OCP\Cache\CappedMemoryCache */
index cb6fc777deed2f83e64cdc52ae2dc3c4a3be2b63..e435bbc44e37651562ae5e00517e868752f8b1b5 100644 (file)
@@ -23,6 +23,7 @@
 
 namespace Test\AppFramework\Controller;
 
+use OC\AppFramework\DependencyInjection\DIContainer;
 use OC\AppFramework\Http\Request;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\DataResponse;
@@ -30,7 +31,6 @@ use OCP\AppFramework\Http\JSONResponse;
 use OCP\IConfig;
 use OCP\IRequest;
 use OCP\IRequestId;
-use OC\AppFramework\DependencyInjection\DIContainer;
 
 class ChildController extends Controller {
        public function __construct($appName, $request) {
index 7f81701a8b3ded426dd7d7667d2bce5aa17565eb..bb7541c4d22a9ddada389a7f1c04c461b2bc2e32 100644 (file)
@@ -35,10 +35,10 @@ use OCP\AppFramework\Http\Response;
 use OCP\Diagnostics\IEventLogger;
 use OCP\IConfig;
 use OCP\IRequest;
+use OCP\IRequestId;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Container\ContainerInterface;
 use Psr\Log\LoggerInterface;
-use OCP\IRequestId;
 
 class TestController extends Controller {
        /**
index f9e775269d4eb01c3d8530ae3e52c8b3c0b7c950..e4980009b09568ea04f3fa8feb95e9527eec5d45 100644 (file)
 
 namespace Test\AppFramework\Middleware;
 
+use OC\AppFramework\DependencyInjection\DIContainer;
 use OC\AppFramework\Http\Request;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Middleware;
 use OCP\IConfig;
 use OCP\IRequestId;
-use OC\AppFramework\DependencyInjection\DIContainer;
 
 class ChildMiddleware extends Middleware {
 };
index d7fde02dbcb1dd67bca92f7bc868960d310316fd..c9812a5dfb73fc921bb225efe2a8032c516b99e0 100644 (file)
@@ -267,14 +267,14 @@ class RoutingTest extends \Test\TestCase {
         * @param string $postfix
         */
        private function assertSimpleOCSRoute($routes,
-                                                                                 $name,
-                                                                                 $verb,
-                                                                                 $url,
-                                                                                 $controllerName,
-                                                                                 $actionName,
-                                                                                 array $requirements = [],
-                                                                                 array $defaults = [],
-                                                                                 $postfix = '') {
+               $name,
+               $verb,
+               $url,
+               $controllerName,
+               $actionName,
+               array $requirements = [],
+               array $defaults = [],
+               $postfix = '') {
                if ($postfix) {
                        $name .= $postfix;
                }
index 7647e3bda7df190788041dd3342808d4b5a5d89b..3c82878065e658cf5d9e67b55a1c0bfd4f3d2a04 100644 (file)
@@ -39,8 +39,8 @@ use OCP\ISession;
 use OCP\IUser;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
-use function reset;
 use Test\TestCase;
+use function reset;
 
 class ManagerTest extends TestCase {
        /** @var IUser|MockObject */
index 06ff4086f72339e6fc1173a0bde9558c9230f251..b35fb2f23a8aba2cb6fa5d4a508c50ba5e4c84d9 100644 (file)
@@ -29,6 +29,7 @@ use OC\Avatar\PlaceholderAvatar;
 use OC\Avatar\UserAvatar;
 use OC\KnownUser\KnownUserService;
 use OC\User\Manager;
+use OC\User\User;
 use OCP\Accounts\IAccount;
 use OCP\Accounts\IAccountManager;
 use OCP\Accounts\IAccountProperty;
@@ -37,7 +38,6 @@ use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IUser;
-use OC\User\User;
 use OCP\IUserSession;
 use Psr\Log\LoggerInterface;
 
index 3cf76c562a12c24b40924785e3bef65db73632d0..804e5385a9de87d5ebfd7380c83ba4d5911acf03 100644 (file)
@@ -38,8 +38,8 @@ use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\IUserSession;
-use OCP\Share\IShare;
 use OCP\Mail\IMailer;
+use OCP\Share\IShare;
 use Test\TestCase;
 
 class MailPluginTest extends TestCase {
index 0d9d89c7f8b6016afc3060fc117164aab4d3b6f2..6a8cf17111cfbe139c0746b1a7366b9825052d06 100644 (file)
@@ -23,6 +23,9 @@
 
 namespace Test\Collaboration\Collaborators;
 
+use OC\Collaboration\Collaborators\SearchResult;
+use OC\Collaboration\Collaborators\UserPlugin;
+use OC\KnownUser\KnownUserService;
 use OCP\Collaboration\Collaborators\ISearchResult;
 use OCP\IConfig;
 use OCP\IGroup;
@@ -32,9 +35,6 @@ use OCP\IUserManager;
 use OCP\IUserSession;
 use OCP\Share\IShare;
 use OCP\UserStatus\IManager as IUserStatusManager;
-use OC\Collaboration\Collaborators\SearchResult;
-use OC\Collaboration\Collaborators\UserPlugin;
-use OC\KnownUser\KnownUserService;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
 
index 18cd3a91b1a1aab8187b8535f7272cd6079cec67..006d0b8b3ea0050f9d8f5d3636fbae5ff55d8244 100644 (file)
 
 namespace Test\Diagnostics;
 
-use Psr\Log\LoggerInterface;
 use OC\Diagnostics\EventLogger;
 use OC\Log;
 use OC\SystemConfig;
+use Psr\Log\LoggerInterface;
 use Test\TestCase;
 
 class EventLoggerTest extends TestCase {
index 4e354ad518c585842c019be97976c270f62b1471..5d8cf02f94d642168e8dd9bf5930e6f97e40caf7 100644 (file)
@@ -193,63 +193,63 @@ class ManagerTest extends TestCase {
                $this->assertEquals('ID1', $this->manager->getDefaultEncryptionModuleId());
        }
 
-//     /**
-//      * @expectedException \OC\Encryption\Exceptions\ModuleAlreadyExistsException
-//      * @expectedExceptionMessage Id "0" already used by encryption module "TestDummyModule0"
-//      */
-//     public function testModuleRegistration() {
-//             $config = $this->createMock(IConfig::class);
-//             $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
-//             $em = $this->createMock(IEncryptionModule::class);
-//             $em->expects($this->any())->method('getId')->willReturn(0);
-//             $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
-//             $m = new Manager($config);
-//             $m->registerEncryptionModule($em);
-//             $this->assertTrue($m->isEnabled());
-//             $m->registerEncryptionModule($em);
-//     }
-//
-//     public function testModuleUnRegistration() {
-//             $config = $this->createMock(IConfig::class);
-//             $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
-//             $em = $this->createMock(IEncryptionModule::class);
-//             $em->expects($this->any())->method('getId')->willReturn(0);
-//             $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
-//             $m = new Manager($config);
-//             $m->registerEncryptionModule($em);
-//             $this->assertTrue($m->isEnabled());
-//             $m->unregisterEncryptionModule($em);
-//             $this->assertFalse($m->isEnabled());
-//     }
-//
-//     /**
-//      * @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException
-//      * @expectedExceptionMessage Module with ID: unknown does not exist.
-//      */
-//     public function testGetEncryptionModuleUnknown() {
-//             $config = $this->createMock(IConfig::class);
-//             $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
-//             $em = $this->createMock(IEncryptionModule::class);
-//             $em->expects($this->any())->method('getId')->willReturn(0);
-//             $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
-//             $m = new Manager($config);
-//             $m->registerEncryptionModule($em);
-//             $this->assertTrue($m->isEnabled());
-//             $m->getEncryptionModule('unknown');
-//     }
-//
-//     public function testGetEncryptionModule() {
-//             $config = $this->createMock(IConfig::class);
-//             $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
-//             $em = $this->createMock(IEncryptionModule::class);
-//             $em->expects($this->any())->method('getId')->willReturn(0);
-//             $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
-//             $m = new Manager($config);
-//             $m->registerEncryptionModule($em);
-//             $this->assertTrue($m->isEnabled());
-//             $en0 = $m->getEncryptionModule(0);
-//             $this->assertEquals(0, $en0->getId());
-//     }
+       //      /**
+       //       * @expectedException \OC\Encryption\Exceptions\ModuleAlreadyExistsException
+       //       * @expectedExceptionMessage Id "0" already used by encryption module "TestDummyModule0"
+       //       */
+       //      public function testModuleRegistration() {
+       //              $config = $this->createMock(IConfig::class);
+       //              $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
+       //              $em = $this->createMock(IEncryptionModule::class);
+       //              $em->expects($this->any())->method('getId')->willReturn(0);
+       //              $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
+       //              $m = new Manager($config);
+       //              $m->registerEncryptionModule($em);
+       //              $this->assertTrue($m->isEnabled());
+       //              $m->registerEncryptionModule($em);
+       //      }
+       //
+       //      public function testModuleUnRegistration() {
+       //              $config = $this->createMock(IConfig::class);
+       //              $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
+       //              $em = $this->createMock(IEncryptionModule::class);
+       //              $em->expects($this->any())->method('getId')->willReturn(0);
+       //              $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
+       //              $m = new Manager($config);
+       //              $m->registerEncryptionModule($em);
+       //              $this->assertTrue($m->isEnabled());
+       //              $m->unregisterEncryptionModule($em);
+       //              $this->assertFalse($m->isEnabled());
+       //      }
+       //
+       //      /**
+       //       * @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException
+       //       * @expectedExceptionMessage Module with ID: unknown does not exist.
+       //       */
+       //      public function testGetEncryptionModuleUnknown() {
+       //              $config = $this->createMock(IConfig::class);
+       //              $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
+       //              $em = $this->createMock(IEncryptionModule::class);
+       //              $em->expects($this->any())->method('getId')->willReturn(0);
+       //              $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
+       //              $m = new Manager($config);
+       //              $m->registerEncryptionModule($em);
+       //              $this->assertTrue($m->isEnabled());
+       //              $m->getEncryptionModule('unknown');
+       //      }
+       //
+       //      public function testGetEncryptionModule() {
+       //              $config = $this->createMock(IConfig::class);
+       //              $config->expects($this->any())->method('getSystemValueBool')->willReturn(true);
+       //              $em = $this->createMock(IEncryptionModule::class);
+       //              $em->expects($this->any())->method('getId')->willReturn(0);
+       //              $em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
+       //              $m = new Manager($config);
+       //              $m->registerEncryptionModule($em);
+       //              $this->assertTrue($m->isEnabled());
+       //              $en0 = $m->getEncryptionModule(0);
+       //              $this->assertEquals(0, $en0->getId());
+       //      }
 
        protected function addNewEncryptionModule(Manager $manager, $id) {
                $encryptionModule = $this->createMock(IEncryptionModule::class);
index df7d137f0b6c54da9da83731ea787598c6c0f143..209acbc7d47038bec5347892dab9d5d9f9b8e650 100644 (file)
 
 namespace Test\Encryption;
 
+use OC\Encryption\File;
 use OC\Encryption\Update;
 use OC\Encryption\Util;
 use OC\Files\Mount\Manager;
 use OC\Files\View;
+use OCP\Encryption\IEncryptionModule;
 use Psr\Log\LoggerInterface;
 use Test\TestCase;
-use OC\Encryption\File;
-use OCP\Encryption\IEncryptionModule;
 
 class UpdateTest extends TestCase {
        /** @var \OC\Encryption\Update */
index be0390db15e802458f49e75b77bd3d2c029e0e90..ad6e7cff1232a5cb321a1a2827c12d7235a557ea 100644 (file)
@@ -262,14 +262,14 @@ class UpdaterLegacyTest extends \Test\TestCase {
                $this->assertIsString($cachedData['etag']);
                $this->assertNotSame($oldEtag, $cachedData['etag']);
                // rename can cause mtime change - invalid assert
-//             $this->assertEquals($mtime, $cachedData['mtime']);
+               //              $this->assertEquals($mtime, $cachedData['mtime']);
 
                $cachedData = $view->getFileInfo('folder');
                $this->assertIsString($folderCachedData['etag']);
                $this->assertIsString($cachedData['etag']);
                $this->assertNotSame($oldEtag, $cachedData['etag']);
                // rename can cause mtime change - invalid assert
-//             $this->assertEquals($mtime, $cachedData['mtime']);
+               //              $this->assertEquals($mtime, $cachedData['mtime']);
        }
 
        public function testTouch() {
index 0a9355e9a46c1c65de2aca2ef1b080370bfa6723..50f57b48c0ccf9e1a0a61be9b52e4b0ceada7f0b 100644 (file)
@@ -11,8 +11,8 @@ namespace Test\Files\Config;
 use OC\DB\QueryBuilder\Literal;
 use OC\Files\Mount\MountPoint;
 use OC\Files\Storage\Storage;
-use OCP\Cache\CappedMemoryCache;
 use OC\User\Manager;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Diagnostics\IEventLogger;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Config\ICachedMountInfo;
index b9583a6ac7cec2346e7f866be4f591f7965267dc..a71bfa1e572985ba391dadbd4e925e7532e89f12 100644 (file)
@@ -9,8 +9,8 @@
 namespace Test\Files;
 
 use OC\Files\Filesystem;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCA\Files_Sharing\AppInfo\Application;
+use OCP\EventDispatcher\IEventDispatcher;
 use Psr\Log\LoggerInterface;
 
 /**
index 96fcab77474e558ab68f64f4989844fae3e533e9..5473f164cef52cf7d6e908470a2afac2569e9ff2 100644 (file)
@@ -325,14 +325,14 @@ class FilesystemTest extends \Test\TestCase {
                $rootView->mkdir('/' . $user);
                $rootView->mkdir('/' . $user . '/files');
 
-//             \OC\Files\Filesystem::file_put_contents('/foo', 'foo');
+               //              \OC\Files\Filesystem::file_put_contents('/foo', 'foo');
                \OC\Files\Filesystem::mkdir('/bar');
-//             \OC\Files\Filesystem::file_put_contents('/bar//foo', 'foo');
+               //              \OC\Files\Filesystem::file_put_contents('/bar//foo', 'foo');
 
                $tmpFile = \OC::$server->getTempManager()->getTemporaryFile();
                file_put_contents($tmpFile, 'foo');
                $fh = fopen($tmpFile, 'r');
-//             \OC\Files\Filesystem::file_put_contents('/bar//foo', $fh);
+               //              \OC\Files\Filesystem::file_put_contents('/bar//foo', $fh);
        }
 
        /**
index aab658c3c36c661c8c77a6f15d8add7b88ef96ad..e24283f0931ac39468624ff6111e28adfea580c5 100644 (file)
@@ -8,11 +8,11 @@
 
 namespace Test\Files\Node;
 
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\FileInfo;
 use OC\Files\Mount\Manager;
 use OC\Files\Node\Folder;
 use OC\Files\View;
+use OCP\Cache\CappedMemoryCache;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IUser;
 use OCP\IUserManager;
index ec815950d3c97aa2b3003eab29db9b2d3276cebd..be5f191c6eb1480116a63d5907e123eb4b284a7a 100644 (file)
@@ -422,9 +422,9 @@ class EncryptionTest extends Storage {
         * @param boolean $renameKeysReturn
         */
        public function testRename($source,
-                                                          $target,
-                                                          $encryptionEnabled,
-                                                          $renameKeysReturn) {
+               $target,
+               $encryptionEnabled,
+               $renameKeysReturn) {
                if ($encryptionEnabled) {
                        $this->keyStore
                                ->expects($this->once())
@@ -790,10 +790,10 @@ class EncryptionTest extends Storage {
                        ->method('isEnabled')
                        ->willReturn($encryptionEnabled);
                // FIXME can not overwrite the return after definition
-//             $this->mount->expects($this->at(0))
-//                     ->method('getOption')
-//                     ->with('encrypt', true)
-//                     ->willReturn($mountPointEncryptionEnabled);
+               //              $this->mount->expects($this->at(0))
+               //                      ->method('getOption')
+               //                      ->with('encrypt', true)
+               //                      ->willReturn($mountPointEncryptionEnabled);
                global $mockedMountPointEncryptionEnabled;
                $mockedMountPointEncryptionEnabled = $mountPointEncryptionEnabled;
 
index 8cdb379512a8d537f0a194460516dc90debcb206..3d45ff2fc3cedd6a14a7284c5cd57a73be48039e 100644 (file)
@@ -78,13 +78,13 @@ class EncryptionTest extends \Test\TestCase {
         * @dataProvider dataProviderStreamOpen()
         */
        public function testStreamOpen($isMasterKeyUsed,
-                                                                  $mode,
-                                                                  $fullPath,
-                                                                  $fileExists,
-                                                                  $expectedSharePath,
-                                                                  $expectedSize,
-                                                                  $expectedUnencryptedSize,
-                                                                  $expectedReadOnly) {
+               $mode,
+               $fullPath,
+               $fileExists,
+               $expectedSharePath,
+               $expectedSize,
+               $expectedUnencryptedSize,
+               $expectedReadOnly) {
                // build mocks
                $encryptionModuleMock = $this->getMockBuilder('\OCP\Encryption\IEncryptionModule')
                ->disableOriginalConstructor()->getMock();
index 18629f69a1302c597896efa320a0cd2e1bf15c84..b9dd49d71fe28765ed839c2d3aed5434f442ed73 100644 (file)
@@ -7,8 +7,6 @@
 
 namespace Test\Files;
 
-use OC\Share20\ShareDisableChecker;
-use OCP\Cache\CappedMemoryCache;
 use OC\Files\Cache\Watcher;
 use OC\Files\Filesystem;
 use OC\Files\Mount\MountPoint;
@@ -17,6 +15,8 @@ use OC\Files\Storage\Common;
 use OC\Files\Storage\Storage;
 use OC\Files\Storage\Temporary;
 use OC\Files\View;
+use OC\Share20\ShareDisableChecker;
+use OCP\Cache\CappedMemoryCache;
 use OCP\Constants;
 use OCP\Files\Config\IMountProvider;
 use OCP\Files\FileInfo;
index 06875f8653691a623ee1b6ecd1b7707a4d846a4f..142532a5f4febc486aaeb5c51c8f65bd97088f92 100644 (file)
 namespace Test\Group;
 
 use OC\Group\Database;
-use OC\User\User;
 use OC\User\Manager;
+use OC\User\User;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\GroupInterface;
 use OCP\Group\Backend\ISearchableGroupBackend;
+use OCP\GroupInterface;
 use OCP\ICacheFactory;
 use OCP\IUser;
 use PHPUnit\Framework\MockObject\MockObject;
index 554478e123ff46ebc7adf35cdaa6e42a915c19db..5af09afb4c09b39a7555f398f3657ad689a53fa6 100644 (file)
@@ -25,14 +25,14 @@ declare(strict_types=1);
 
 namespace Test;
 
+use JsonSerializable;
 use OC\AppFramework\Bootstrap\Coordinator;
+use OC\InitialStateService;
 use OCP\IServerContainer;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
-use function json_encode;
-use JsonSerializable;
-use OC\InitialStateService;
 use stdClass;
+use function json_encode;
 
 class InitialStateServiceTest extends TestCase {
        /** @var InitialStateService */
index 5ffba9392841eb360005c080dd59e6c92105bd4d..418bfe35c6e573458e519acfedda7048d28e2a3e 100644 (file)
@@ -21,13 +21,13 @@ use OCP\IL10N;
 use OCP\IURLGenerator;
 use OCP\L10N\IFactory;
 use OCP\Mail\Events\BeforeMessageSent;
-use Psr\Log\LoggerInterface;
-use Test\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 use Symfony\Component\Mailer\Mailer as SymfonyMailer;
-use Symfony\Component\Mime\Email;
-use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
 use Symfony\Component\Mailer\Transport\SendmailTransport;
+use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
+use Symfony\Component\Mime\Email;
+use Test\TestCase;
 
 class MailerTest extends TestCase {
        /** @var IConfig|MockObject */
index 2becc4d2081a706c742880f44f20383348ea010e..1d309ca742dc26bfe923a7748d583507c9426f81 100644 (file)
@@ -11,13 +11,13 @@ namespace Test\Mail;
 use OC\Mail\Message;
 use OCP\Mail\Headers\AutoSubmitted;
 use OCP\Mail\IEMailTemplate;
+use PHPUnit\Framework\MockObject\MockObject;
 use Symfony\Component\Mime\Address;
 use Symfony\Component\Mime\Email;
 use Symfony\Component\Mime\Exception\RfcComplianceException;
 use Symfony\Component\Mime\Header\HeaderInterface;
 use Symfony\Component\Mime\Header\Headers;
 use Test\TestCase;
-use PHPUnit\Framework\MockObject\MockObject;
 
 class MessageTest extends TestCase {
        /** @var Email */
index 5f13a94eacde867f9ba0082730489bf877575a0a..e8bf519e1a969c54450a286fd425d8a7fac738e7 100644 (file)
@@ -22,8 +22,8 @@
 namespace Test\Memcache;
 
 use OC\Memcache\NullCache;
-use Psr\Log\LoggerInterface;
 use OCP\Profiler\IProfiler;
+use Psr\Log\LoggerInterface;
 
 class Test_Factory_Available_Cache1 extends NullCache {
        public function __construct($prefix = '') {
index 2e68924a96d7a2acf11c961b6f100697f2e980bf..fbabaa099021c803813c03cfd07fa5543cd771b2 100644 (file)
 
 namespace Test\Migration;
 
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Migration\IOutput;
-use OCP\Migration\IRepairStep;
 use OC\BackgroundJob\JobList;
 use OC\Migration\BackgroundRepair;
 use OC\NeedsUpdateException;
 use OC\Repair\Events\RepairStepEvent;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
 use Test\TestCase;
index 394fc9854690d43d4dd1d5ea7e6aebd16f162080..0e9fdca7cdd6780f9d0ebd47fd1cf4fa87542205 100644 (file)
@@ -32,9 +32,9 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IConfig;
 use OCP\IDBConnection;
 use OCP\IGroupManager;
+use OCP\Migration\IOutput;
 use Psr\Log\LoggerInterface;
 use Test\TestCase;
-use OCP\Migration\IOutput;
 use function in_array;
 
 class RepairDavSharesTest extends TestCase {
index 1a2fd620e49fedb5f93e006d881a54ee4b973c5f..53bf9520a7c4a5e5bfc984ca64c18deb248f1e36 100644 (file)
@@ -8,13 +8,13 @@
 
 namespace Test;
 
-use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Migration\IRepairStep;
 use OC\Repair;
+use OC\Repair\Events\RepairErrorEvent;
 use OC\Repair\Events\RepairInfoEvent;
 use OC\Repair\Events\RepairStepEvent;
 use OC\Repair\Events\RepairWarningEvent;
-use OC\Repair\Events\RepairErrorEvent;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Migration\IRepairStep;
 use Psr\Log\LoggerInterface;
 
 class TestRepairStep implements IRepairStep {
index e368a0912b10a0721936b5d4ed30c5c5adb6e415..473aa374d39b3cb8f37b0706d87456a104d2c817 100644 (file)
@@ -160,9 +160,9 @@ class ThrottlerTest extends TestCase {
         * @param bool $enabled
         */
        private function isIpWhiteListedHelper($ip,
-                                                                                $whitelists,
-                                                                                $isWhiteListed,
-                                                                                $enabled) {
+               $whitelists,
+               $isWhiteListed,
+               $enabled) {
                $this->config->method('getAppKeys')
                        ->with($this->equalTo('bruteForce'))
                        ->willReturn(array_keys($whitelists));
@@ -197,8 +197,8 @@ class ThrottlerTest extends TestCase {
         * @param bool $isWhiteListed
         */
        public function testIsIpWhiteListedWithEnabledProtection($ip,
-                                                                                                                        $whitelists,
-                                                                                                                        $isWhiteListed) {
+               $whitelists,
+               $isWhiteListed) {
                $this->isIpWhiteListedHelper(
                        $ip,
                        $whitelists,
@@ -215,8 +215,8 @@ class ThrottlerTest extends TestCase {
         * @param bool $isWhiteListed
         */
        public function testIsIpWhiteListedWithDisabledProtection($ip,
-                                                                                                                        $whitelists,
-                                                                                                                        $isWhiteListed) {
+               $whitelists,
+               $isWhiteListed) {
                $this->isIpWhiteListedHelper(
                        $ip,
                        $whitelists,
index 6ad8231a61de39e8c36936802dc2cdda6249a805..08cbfa9e22199e151a3c424397d8978af5adc3ba 100644 (file)
@@ -146,9 +146,9 @@ class CertificateManagerTest extends \Test\TestCase {
         * @param bool $expected
         */
        public function testNeedRebundling($CaBundleMtime,
-                                                               $targetBundleMtime,
-                                                               $targetBundleExists,
-                                                               $expected
+               $targetBundleMtime,
+               $targetBundleExists,
+               $expected
        ) {
                $view = $this->getMockBuilder(View::class)
                        ->disableOriginalConstructor()->getMock();
index a71d2b09f713e6a1691a8b5c1bd3a9ca839b6d39..182bd533f84f136297a24762576a1115cf9b1504 100644 (file)
@@ -34,8 +34,8 @@ use OCP\IUser;
 use OCP\Security\ICrypto;
 use OCP\Security\ISecureRandom;
 use OCP\Security\VerificationToken\InvalidTokenException;
-use Test\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
+use Test\TestCase;
 
 class VerificationTokenTest extends TestCase {
        /** @var VerificationToken */
index cc13479b1d0c1cfbbeec62d795d00eec25599715..93d57c37806e486ff1a3c26a5bba7fde2773ea58 100644 (file)
@@ -34,9 +34,9 @@ use OCP\IURLGenerator;
 use OCP\L10N\IFactory;
 use OCP\Settings\ISettings;
 use OCP\Settings\ISubAdminSettings;
+use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
 use Test\TestCase;
-use PHPUnit\Framework\MockObject\MockObject;
 
 class ManagerTest extends TestCase {
        /** @var Manager|MockObject */
index 0ce96102a30d27dd5f159d8d9b7c170cc2886793..f977619b7b246763e486ba609e6620d96744ee51 100644 (file)
@@ -133,8 +133,8 @@ class DefaultShareProviderTest extends \Test\TestCase {
         * @return int
         */
        private function addShareToDB($shareType, $sharedWith, $sharedBy, $shareOwner,
-                       $itemType, $fileSource, $fileTarget, $permissions, $token, $expiration,
-                       $parent = null) {
+               $itemType, $fileSource, $fileTarget, $permissions, $token, $expiration,
+               $parent = null) {
                $qb = $this->dbConn->getQueryBuilder();
                $qb->insert('share');
 
index 15f36cb2452cc95084dc7efc65d847947780aa61..193c5d4c39d01c1339d4a31faf7421b6be1a692c 100644 (file)
@@ -24,13 +24,13 @@ use OCP\Common\Exception\NotFoundException;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IConfig;
 use OCP\IServerContainer;
+use OCP\PreConditionNotMetException;
 use OCP\TextProcessing\Events\TaskFailedEvent;
 use OCP\TextProcessing\Events\TaskSuccessfulEvent;
 use OCP\TextProcessing\FreePromptTaskType;
 use OCP\TextProcessing\IManager;
 use OCP\TextProcessing\IProvider;
 use OCP\TextProcessing\SummaryTaskType;
-use OCP\PreConditionNotMetException;
 use OCP\TextProcessing\Task;
 use OCP\TextProcessing\TopicsTaskType;
 use PHPUnit\Framework\Constraint\IsInstanceOf;
index e96406622f474789bed68ca4c152cd05578f594d..4afb9f05a5b3e323065de443b003c5a936015508 100644 (file)
@@ -26,15 +26,15 @@ declare(strict_types=1);
 
 namespace Test\Updater;
 
+use OC\Updater\Changes;
 use OC\Updater\ChangesCheck;
 use OC\Updater\ChangesMapper;
-use OC\Updater\Changes;
 use OCP\AppFramework\Db\DoesNotExistException;
 use OCP\Http\Client\IClient;
 use OCP\Http\Client\IClientService;
 use OCP\Http\Client\IResponse;
-use Test\TestCase;
 use Psr\Log\LoggerInterface;
+use Test\TestCase;
 
 class ChangesCheckTest extends TestCase {
        /** @var IClientService|\PHPUnit\Framework\MockObject\MockObject */
index 579761208db165d4f8f40fed5a8b5d1706552fe0..02b2189cdccb81db1de23c0fb7365af709cc9ec6 100644 (file)
 
 namespace Test;
 
-use PHPUnit\Framework\MockObject\MockObject;
-use Psr\Log\LoggerInterface;
 use OC\Installer;
 use OC\IntegrityCheck\Checker;
 use OC\Updater;
 use OCP\IConfig;
+use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 
 class UpdaterTest extends TestCase {
        /** @var IConfig|MockObject */
index b6ac7a69fed55e1061a7f7fe23a1b228eadfed29..d6db17d9d45cd0e466b2bb0a8b865cf2d07bce9d 100644 (file)
@@ -14,6 +14,7 @@ use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Exceptions\PasswordLoginForbiddenException;
 use OC\Authentication\Token\IProvider;
 use OC\Authentication\Token\IToken;
+use OC\Security\CSRF\CsrfTokenManager;
 use OC\Session\Memory;
 use OC\User\LoginException;
 use OC\User\Manager;
@@ -34,7 +35,6 @@ use OCP\Security\ISecureRandom;
 use OCP\User\Events\PostLoginEvent;
 use PHPUnit\Framework\MockObject\MockObject;
 use Psr\Log\LoggerInterface;
-use OC\Security\CSRF\CsrfTokenManager;
 
 /**
  * @group DB
index a864c8ce9d992eaad940dc643b093a52e97af697..fd784e4fa46a5070340f72f31ccb349bae39207e 100644 (file)
 
 namespace Test\Util\Group;
 
-use Test\Util\User\Dummy as DummyUser;
 use OCP\Group\Backend\ABackend;
-use OCP\Group\Backend\IDeleteGroupBackend;
 use OCP\Group\Backend\IAddToGroupBackend;
-use OCP\Group\Backend\IRemoveFromGroupBackend;
-use OCP\Group\Backend\ICreateGroupBackend;
 use OCP\Group\Backend\ICountUsersBackend;
+use OCP\Group\Backend\ICreateGroupBackend;
+use OCP\Group\Backend\IDeleteGroupBackend;
+use OCP\Group\Backend\IRemoveFromGroupBackend;
+use Test\Util\User\Dummy as DummyUser;
 
 /**
  * Dummy group backend, does not keep state, only for testing use