summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 11:48:10 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 11:48:10 +0200
commit41b5e5923a44965e435d35d01b5009abb2dd5c97 (patch)
tree1d832f87ecbaa33c5ad6e09792e5ae5a0f760fe6
parent813bdc1ce8a45039fa17aac12bd078466a0034d0 (diff)
downloadnextcloud-server-41b5e5923a44965e435d35d01b5009abb2dd5c97.tar.gz
nextcloud-server-41b5e5923a44965e435d35d01b5009abb2dd5c97.zip
Use exactly one empty line after the namespace declaration
For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--apps/admin_audit/lib/Actions/Console.php1
-rw-r--r--apps/admin_audit/lib/Actions/GroupManagement.php1
-rw-r--r--apps/admin_audit/lib/Actions/Security.php1
-rw-r--r--apps/admin_audit/lib/Actions/Sharing.php1
-rw-r--r--apps/admin_audit/lib/Actions/Trashbin.php1
-rw-r--r--apps/admin_audit/lib/Actions/UserManagement.php1
-rw-r--r--apps/admin_audit/lib/Actions/Versions.php1
-rw-r--r--apps/cloud_federation_api/lib/AppInfo/Application.php1
-rw-r--r--apps/cloud_federation_api/lib/Capabilities.php1
-rw-r--r--apps/cloud_federation_api/lib/Config.php1
-rw-r--r--apps/comments/lib/Activity/Filter.php1
-rw-r--r--apps/comments/lib/Activity/Setting.php1
-rw-r--r--apps/comments/lib/Collaboration/CommentersSorter.php1
-rw-r--r--apps/comments/lib/JSSettingsHelper.php1
-rw-r--r--apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php1
-rw-r--r--apps/dav/lib/Avatars/AvatarHome.php1
-rw-r--r--apps/dav/lib/Avatars/AvatarNode.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Backend.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Filter/Calendar.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Filter/Todo.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Setting/Calendar.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Setting/Event.php1
-rw-r--r--apps/dav/lib/CalDAV/Activity/Setting/Todo.php1
-rw-r--r--apps/dav/lib/CalDAV/CalendarObject.php1
-rw-r--r--apps/dav/lib/CalDAV/Integration/ICalendarProvider.php1
-rw-r--r--apps/dav/lib/CalDAV/Principal/Collection.php1
-rw-r--r--apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php1
-rw-r--r--apps/dav/lib/CardDAV/SyncService.php2
-rw-r--r--apps/dav/lib/Comments/CommentNode.php1
-rw-r--r--apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php1
-rw-r--r--apps/dav/lib/Connector/Sabre/QuotaPlugin.php1
-rw-r--r--apps/dav/lib/DAV/Sharing/IShareable.php1
-rw-r--r--apps/dav/lib/Migration/Version1008Date20181105104826.php1
-rw-r--r--apps/dav/tests/unit/Avatars/AvatarHomeTest.php1
-rw-r--r--apps/dav/tests/unit/Avatars/AvatarNodeTest.php1
-rw-r--r--apps/dav/tests/unit/CardDAV/AddressBookImplTest.php1
-rw-r--r--apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php1
-rw-r--r--apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php1
-rw-r--r--apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php1
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/NodeTest.php1
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php1
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php1
-rw-r--r--apps/dav/tests/unit/DAV/Sharing/PluginTest.php1
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php1
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php1
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php1
-rw-r--r--apps/dav/tests/unit/Upload/ChunkingPluginTest.php1
-rw-r--r--apps/encryption/lib/AppInfo/Application.php1
-rw-r--r--apps/encryption/lib/Command/DisableMasterKey.php1
-rw-r--r--apps/encryption/lib/Command/EnableMasterKey.php1
-rw-r--r--apps/encryption/lib/Command/RecoverUser.php1
-rw-r--r--apps/encryption/lib/Controller/RecoveryController.php1
-rw-r--r--apps/encryption/lib/Controller/StatusController.php1
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php1
-rw-r--r--apps/encryption/lib/Crypto/DecryptAll.php1
-rw-r--r--apps/encryption/lib/Crypto/Encryption.php1
-rw-r--r--apps/encryption/lib/HookManager.php1
-rw-r--r--apps/encryption/lib/Hooks/Contracts/IHook.php1
-rw-r--r--apps/encryption/lib/Hooks/UserHooks.php1
-rw-r--r--apps/encryption/lib/Migration/SetMasterKeyStatus.php1
-rw-r--r--apps/encryption/lib/Recovery.php1
-rw-r--r--apps/encryption/lib/Settings/Personal.php1
-rw-r--r--apps/encryption/lib/Users/Setup.php1
-rw-r--r--apps/encryption/lib/Util.php1
-rw-r--r--apps/encryption/tests/Command/TestEnableMasterKey.php1
-rw-r--r--apps/encryption/tests/Controller/RecoveryControllerTest.php1
-rw-r--r--apps/encryption/tests/Controller/StatusControllerTest.php1
-rw-r--r--apps/encryption/tests/Crypto/CryptTest.php1
-rw-r--r--apps/encryption/tests/Crypto/DecryptAllTest.php1
-rw-r--r--apps/encryption/tests/Crypto/EncryptAllTest.php1
-rw-r--r--apps/encryption/tests/HookManagerTest.php1
-rw-r--r--apps/encryption/tests/Hooks/UserHooksTest.php1
-rw-r--r--apps/encryption/tests/KeyManagerTest.php1
-rw-r--r--apps/encryption/tests/RecoveryTest.php1
-rw-r--r--apps/encryption/tests/SessionTest.php1
-rw-r--r--apps/encryption/tests/Users/SetupTest.php1
-rw-r--r--apps/encryption/tests/UtilTest.php1
-rw-r--r--apps/federatedfilesharing/lib/AddressHandler.php1
-rw-r--r--apps/federatedfilesharing/lib/AppInfo/Application.php1
-rw-r--r--apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php1
-rw-r--r--apps/federatedfilesharing/lib/Notifier.php1
-rw-r--r--apps/federatedfilesharing/lib/Settings/Personal.php1
-rw-r--r--apps/federatedfilesharing/lib/Settings/PersonalSection.php1
-rw-r--r--apps/federatedfilesharing/lib/TokenHandler.php1
-rw-r--r--apps/federatedfilesharing/tests/AddressHandlerTest.php1
-rw-r--r--apps/federatedfilesharing/tests/FederatedShareProviderTest.php1
-rw-r--r--apps/federatedfilesharing/tests/NotificationsTest.php1
-rw-r--r--apps/federatedfilesharing/tests/TokenHandlerTest.php1
-rw-r--r--apps/federation/lib/BackgroundJob/RequestSharedSecret.php1
-rw-r--r--apps/federation/lib/DbHandler.php1
-rw-r--r--apps/federation/lib/Hooks.php2
-rw-r--r--apps/federation/tests/BackgroundJob/GetSharedSecretTest.php1
-rw-r--r--apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php1
-rw-r--r--apps/federation/tests/Controller/OCSAuthAPIControllerTest.php1
-rw-r--r--apps/federation/tests/Controller/SettingsControllerTest.php1
-rw-r--r--apps/federation/tests/DbHandlerTest.php1
-rw-r--r--apps/federation/tests/HooksTest.php1
-rw-r--r--apps/federation/tests/Middleware/AddServerMiddlewareTest.php1
-rw-r--r--apps/federation/tests/TrustedServersTest.php1
-rw-r--r--apps/files/lib/Activity/Filter/Favorites.php1
-rw-r--r--apps/files/lib/Activity/Filter/FileChanges.php1
-rw-r--r--apps/files/lib/Activity/Settings/FavoriteAction.php1
-rw-r--r--apps/files/lib/Activity/Settings/FileChanged.php1
-rw-r--r--apps/files/lib/Activity/Settings/FileCreated.php1
-rw-r--r--apps/files/lib/Activity/Settings/FileDeleted.php1
-rw-r--r--apps/files/lib/Activity/Settings/FileFavorite.php1
-rw-r--r--apps/files/lib/Activity/Settings/FileRestored.php1
-rw-r--r--apps/files/lib/Collaboration/Resources/Listener.php1
-rw-r--r--apps/files/lib/Collaboration/Resources/ResourceProvider.php1
-rw-r--r--apps/files/lib/Controller/DirectEditingController.php1
-rw-r--r--apps/files/lib/Controller/DirectEditingViewController.php1
-rw-r--r--apps/files/lib/Service/DirectEditingService.php1
-rw-r--r--apps/files/tests/Activity/Filter/GenericTest.php1
-rw-r--r--apps/files/tests/Activity/ProviderTest.php1
-rw-r--r--apps/files_external/lib/Controller/GlobalStoragesController.php1
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php1
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php1
-rw-r--r--apps/files_external/lib/Lib/FrontendDefinitionTrait.php1
-rw-r--r--apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php1
-rw-r--r--apps/files_external/lib/Lib/Storage/OwnCloud.php1
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTP.php1
-rw-r--r--apps/files_external/lib/Service/GlobalStoragesService.php1
-rw-r--r--apps/files_external/lib/Settings/PersonalSection.php1
-rw-r--r--apps/files_external/tests/Service/DBConfigServiceTest.php1
-rw-r--r--apps/files_sharing/lib/Activity/Filter.php1
-rw-r--r--apps/files_sharing/lib/Activity/Settings/PublicLinks.php1
-rw-r--r--apps/files_sharing/lib/Activity/Settings/RemoteShare.php1
-rw-r--r--apps/files_sharing/lib/Activity/Settings/Shared.php1
-rw-r--r--apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php1
-rw-r--r--apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php1
-rw-r--r--apps/files_sharing/tests/ExternalStorageTest.php1
-rw-r--r--apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php1
-rw-r--r--apps/files_sharing/tests/Migration/SetPasswordColumnTest.php1
-rw-r--r--apps/files_sharing/tests/SharedMountTest.php1
-rw-r--r--apps/files_trashbin/lib/Events/MoveToTrashEvent.php1
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFolder.php1
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFolderFile.php1
-rw-r--r--apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php2
-rw-r--r--apps/files_trashbin/tests/Command/CleanUpTest.php1
-rw-r--r--apps/files_versions/lib/Capabilities.php2
-rw-r--r--apps/files_versions/lib/Command/CleanUp.php1
-rw-r--r--apps/files_versions/tests/Command/CleanupTest.php1
-rw-r--r--apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php1
-rw-r--r--apps/provisioning_api/lib/Controller/AppConfigController.php1
-rw-r--r--apps/provisioning_api/tests/Controller/AppConfigControllerTest.php1
-rw-r--r--apps/provisioning_api/tests/Controller/AppsControllerTest.php1
-rw-r--r--apps/settings/lib/BackgroundJobs/VerifyUserData.php1
-rw-r--r--apps/settings/lib/Settings/Personal/Additional.php1
-rw-r--r--apps/settings/tests/AppInfo/ApplicationTest.php1
-rw-r--r--apps/sharebymail/lib/AppInfo/Application.php1
-rw-r--r--apps/sharebymail/lib/Capabilities.php1
-rw-r--r--apps/sharebymail/lib/Settings.php1
-rw-r--r--apps/sharebymail/lib/Settings/SettingsManager.php1
-rw-r--r--apps/sharebymail/tests/SettingsTest.php1
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php1
-rw-r--r--apps/systemtags/lib/Activity/Setting.php1
-rw-r--r--apps/systemtags/lib/Controller/LastUsedController.php1
-rw-r--r--apps/theming/tests/Controller/IconControllerTest.php1
-rw-r--r--apps/twofactor_backupcodes/lib/Db/BackupCode.php1
-rw-r--r--apps/updatenotification/lib/Notification/Notifier.php1
-rw-r--r--apps/updatenotification/tests/Notification/BackgroundJobTest.php1
-rw-r--r--apps/updatenotification/tests/Notification/NotifierTest.php1
-rw-r--r--apps/user_ldap/lib/AccessFactory.php1
-rw-r--r--apps/user_ldap/lib/BackendUtility.php1
-rw-r--r--apps/user_ldap/lib/Command/DeleteConfig.php1
-rw-r--r--apps/user_ldap/lib/ConnectionFactory.php1
-rw-r--r--apps/user_ldap/lib/ILDAPGroupPlugin.php1
-rw-r--r--apps/user_ldap/lib/ILDAPUserPlugin.php1
-rw-r--r--apps/user_ldap/lib/LDAPProvider.php1
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFix.php1
-rw-r--r--apps/user_ldap/lib/Notification/Notifier.php1
-rw-r--r--apps/user_ldap/tests/ConnectionTest.php1
-rw-r--r--apps/user_ldap/tests/GroupLDAPPluginTest.php1
-rw-r--r--apps/user_ldap/tests/HelperTest.php1
-rw-r--r--apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php1
-rw-r--r--apps/user_ldap/tests/LDAPGroupPluginDummy.php1
-rw-r--r--apps/user_ldap/tests/LDAPUserPluginDummy.php1
-rw-r--r--apps/user_ldap/tests/UserLDAPPluginTest.php1
-rw-r--r--apps/workflowengine/lib/Check/AbstractStringCheck.php1
-rw-r--r--apps/workflowengine/lib/Check/FileMimeType.php1
-rw-r--r--apps/workflowengine/lib/Check/FileSize.php1
-rw-r--r--apps/workflowengine/lib/Check/FileSystemTags.php1
-rw-r--r--apps/workflowengine/lib/Check/RequestRemoteAddress.php1
-rw-r--r--apps/workflowengine/lib/Check/RequestTime.php1
-rw-r--r--apps/workflowengine/lib/Check/RequestURL.php1
-rw-r--r--apps/workflowengine/lib/Check/RequestUserAgent.php1
-rw-r--r--apps/workflowengine/lib/Check/UserGroupMembership.php1
-rw-r--r--apps/workflowengine/tests/ManagerTest.php1
-rw-r--r--core/Command/Db/Migrations/ExecuteCommand.php1
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php1
-rw-r--r--core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php1
-rw-r--r--core/Command/Db/Migrations/MigrateCommand.php1
-rw-r--r--core/Command/Encryption/SetDefaultModule.php1
-rw-r--r--core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php1
-rw-r--r--lib/private/Activity/Manager.php1
-rw-r--r--lib/private/AllConfig.php1
-rw-r--r--lib/private/Authentication/Token/INamedToken.php1
-rw-r--r--lib/private/BackgroundJob/QueuedJob.php1
-rw-r--r--lib/private/BackgroundJob/TimedJob.php1
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/SearchResult.php1
-rw-r--r--lib/private/Collaboration/Collaborators/UserPlugin.php1
-rw-r--r--lib/private/Collaboration/Resources/Collection.php1
-rw-r--r--lib/private/Collaboration/Resources/Listener.php1
-rw-r--r--lib/private/Collaboration/Resources/Manager.php1
-rw-r--r--lib/private/Collaboration/Resources/Resource.php1
-rw-r--r--lib/private/Console/TimestampFormatter.php1
-rw-r--r--lib/private/DB/AdapterPgSql.php1
-rw-r--r--lib/private/DB/MigrationException.php1
-rw-r--r--lib/private/DB/PgSqlTools.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php1
-rw-r--r--lib/private/Dashboard/DashboardManager.php1
-rw-r--r--lib/private/DateTimeZone.php1
-rw-r--r--lib/private/DirectEditing/Token.php1
-rw-r--r--lib/private/Encryption/EncryptionWrapper.php1
-rw-r--r--lib/private/Files/Cache/Watcher.php1
-rw-r--r--lib/private/Files/Cache/Wrapper/JailPropagator.php1
-rw-r--r--lib/private/Files/Config/CachedMountFileInfo.php1
-rw-r--r--lib/private/Files/ObjectStore/NoopScanner.php1
-rw-r--r--lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php1
-rw-r--r--lib/private/Files/Search/SearchOrder.php1
-rw-r--r--lib/private/Files/Storage/Storage.php1
-rw-r--r--lib/private/FullTextSearch/FullTextSearchManager.php1
-rw-r--r--lib/private/FullTextSearch/Model/DocumentAccess.php1
-rw-r--r--lib/private/FullTextSearch/Model/IndexDocument.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchOption.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchTemplate.php1
-rw-r--r--lib/private/GlobalScale/Config.php1
-rw-r--r--lib/private/Log/File.php1
-rw-r--r--lib/private/Log/Rotate.php1
-rw-r--r--lib/private/Migration/ConsoleOutput.php1
-rw-r--r--lib/private/Migration/SimpleOutput.php1
-rw-r--r--lib/private/Notification/Action.php1
-rw-r--r--lib/private/Notification/Manager.php1
-rw-r--r--lib/private/Notification/Notification.php1
-rw-r--r--lib/private/Remote/Api/ApiCollection.php1
-rw-r--r--lib/private/Remote/Api/ApiFactory.php1
-rw-r--r--lib/private/Remote/Api/NotFoundException.php1
-rw-r--r--lib/private/Remote/Api/OCS.php1
-rw-r--r--lib/private/Remote/Credentials.php1
-rw-r--r--lib/private/Remote/InstanceFactory.php1
-rw-r--r--lib/private/Remote/User.php1
-rw-r--r--lib/private/RichObjectStrings/Validator.php1
-rw-r--r--lib/private/Search.php1
-rw-r--r--lib/private/Search/Provider/File.php1
-rw-r--r--lib/private/Search/Result/File.php1
-rw-r--r--lib/private/Security/TrustedDomainHelper.php1
-rw-r--r--lib/private/ServerContainer.php1
-rw-r--r--lib/private/ServerNotAvailableException.php1
-rw-r--r--lib/private/Share20/Exception/ProviderException.php1
-rw-r--r--lib/private/SystemConfig.php1
-rw-r--r--lib/public/Activity/IEventMerger.php1
-rw-r--r--lib/public/AppFramework/App.php1
-rw-r--r--lib/public/AppFramework/Db/DoesNotExistException.php1
-rw-r--r--lib/public/AppFramework/Db/Entity.php1
-rw-r--r--lib/public/AppFramework/Db/MultipleObjectsReturnedException.php1
-rw-r--r--lib/public/AppFramework/Http/DownloadResponse.php1
-rw-r--r--lib/public/AppFramework/Http/ICallbackResponse.php1
-rw-r--r--lib/public/AppFramework/Http/IOutput.php1
-rw-r--r--lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php1
-rw-r--r--lib/public/AppFramework/Http/TemplateResponse.php1
-rw-r--r--lib/public/AppFramework/Utility/ITimeFactory.php1
-rw-r--r--lib/public/BackgroundJob/IJob.php1
-rw-r--r--lib/public/Calendar/Resource/IBackend.php1
-rw-r--r--lib/public/Calendar/Room/IBackend.php1
-rw-r--r--lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php1
-rw-r--r--lib/public/Collaboration/Resources/ResourceException.php1
-rw-r--r--lib/public/DB/QueryBuilder/IExpressionBuilder.php1
-rw-r--r--lib/public/DB/QueryBuilder/IQueryBuilder.php1
-rw-r--r--lib/public/Dashboard/IDashboardManager.php1
-rw-r--r--lib/public/Dashboard/IDashboardWidget.php1
-rw-r--r--lib/public/Dashboard/Model/IWidgetConfig.php1
-rw-r--r--lib/public/Dashboard/Model/IWidgetRequest.php1
-rw-r--r--lib/public/Dashboard/Model/WidgetSetting.php1
-rw-r--r--lib/public/Dashboard/Model/WidgetSetup.php1
-rw-r--r--lib/public/Dashboard/Model/WidgetTemplate.php1
-rw-r--r--lib/public/Dashboard/Service/IEventsService.php1
-rw-r--r--lib/public/Dashboard/Service/IWidgetsService.php1
-rw-r--r--lib/public/DirectEditing/ACreateEmpty.php1
-rw-r--r--lib/public/DirectEditing/IEditor.php1
-rw-r--r--lib/public/DirectEditing/IToken.php1
-rw-r--r--lib/public/Encryption/Exceptions/GenericEncryptionException.php1
-rw-r--r--lib/public/Encryption/IEncryptionModule.php1
-rw-r--r--lib/public/Files/Cache/ICache.php1
-rw-r--r--lib/public/Files/Folder.php1
-rw-r--r--lib/public/Files/IMimeTypeDetector.php1
-rw-r--r--lib/public/Files/Storage/IStorageFactory.php1
-rw-r--r--lib/public/Files/StorageNotAvailableException.php1
-rw-r--r--lib/public/Files_FullTextSearch/Model/AFilesDocument.php1
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchManager.php1
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchPlatform.php1
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchProvider.php1
-rw-r--r--lib/public/FullTextSearch/Model/IDocumentAccess.php1
-rw-r--r--lib/public/FullTextSearch/Model/IIndex.php1
-rw-r--r--lib/public/FullTextSearch/Model/IIndexDocument.php1
-rw-r--r--lib/public/FullTextSearch/Model/IIndexOptions.php1
-rw-r--r--lib/public/FullTextSearch/Model/IRunner.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchOption.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequest.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchResult.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchTemplate.php1
-rw-r--r--lib/public/FullTextSearch/Service/IIndexService.php1
-rw-r--r--lib/public/FullTextSearch/Service/IProviderService.php1
-rw-r--r--lib/public/FullTextSearch/Service/ISearchService.php1
-rw-r--r--lib/public/IDBConnection.php1
-rw-r--r--lib/public/ISearch.php1
-rw-r--r--lib/public/IServerContainer.php1
-rw-r--r--lib/public/IUser.php1
-rw-r--r--lib/public/IUserManager.php1
-rw-r--r--lib/public/Lock/ManuallyLockedException.php1
-rw-r--r--lib/public/Notification/AlreadyProcessedException.php1
-rw-r--r--lib/public/RichObjectStrings/Definitions.php1
-rw-r--r--lib/public/SabrePluginEvent.php1
-rw-r--r--lib/public/SabrePluginException.php1
-rw-r--r--lib/public/Security/IContentSecurityPolicyManager.php1
-rw-r--r--lib/public/Share/Exceptions/GenericShareException.php1
-rw-r--r--lib/public/WorkflowEngine/IFileCheck.php1
-rw-r--r--tests/Core/Command/Config/App/DeleteConfigTest.php1
-rw-r--r--tests/Core/Command/Config/App/GetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/App/SetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/ImportTest.php1
-rw-r--r--tests/Core/Command/Config/ListConfigsTest.php1
-rw-r--r--tests/Core/Command/Config/System/DeleteConfigTest.php1
-rw-r--r--tests/Core/Command/Config/System/GetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/System/SetConfigTest.php1
-rw-r--r--tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php1
-rw-r--r--tests/Core/Command/Encryption/DecryptAllTest.php1
-rw-r--r--tests/Core/Command/Encryption/DisableTest.php1
-rw-r--r--tests/Core/Command/Encryption/EnableTest.php1
-rw-r--r--tests/Core/Command/Encryption/EncryptAllTest.php1
-rw-r--r--tests/Core/Command/Encryption/SetDefaultModuleTest.php1
-rw-r--r--tests/Core/Command/Log/FileTest.php1
-rw-r--r--tests/Core/Command/Log/ManageTest.php1
-rw-r--r--tests/Core/Command/User/DeleteTest.php1
-rw-r--r--tests/Core/Command/User/DisableTest.php1
-rw-r--r--tests/Core/Command/User/EnableTest.php1
-rw-r--r--tests/Core/Command/User/LastSeenTest.php1
-rw-r--r--tests/Core/Command/User/SettingTest.php1
-rw-r--r--tests/lib/Accounts/AccountsManagerTest.php1
-rw-r--r--tests/lib/Accounts/HooksTest.php1
-rw-r--r--tests/lib/AppConfigTest.php1
-rw-r--r--tests/lib/AppFramework/Db/EntityTest.php1
-rw-r--r--tests/lib/AppFramework/Db/MapperTestUtility.php1
-rw-r--r--tests/lib/AppFramework/DependencyInjection/DIContainerTest.php1
-rw-r--r--tests/lib/AppFramework/Http/DataResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/DownloadResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/JSONResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/OCSResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/StreamResponseTest.php1
-rw-r--r--tests/lib/AppFramework/OCS/BaseResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php1
-rw-r--r--tests/lib/Archive/TARTest.php1
-rw-r--r--tests/lib/Archive/TestBase.php1
-rw-r--r--tests/lib/Archive/ZIPTest.php1
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php1
-rw-r--r--tests/lib/BackgroundJob/TestJob.php1
-rw-r--r--tests/lib/Cache/FileCacheTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/GroupPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/LookupPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/MailPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/RemotePluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/SearchResultTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/SearchTest.php1
-rw-r--r--tests/lib/Comments/FakeManager.php1
-rw-r--r--tests/lib/Encryption/DecryptAllTest.php1
-rw-r--r--tests/lib/Encryption/EncryptionWrapperTest.php1
-rw-r--r--tests/lib/Encryption/UpdateTest.php1
-rw-r--r--tests/lib/Files/Cache/CacheTest.php1
-rw-r--r--tests/lib/Files/Mount/MountTest.php1
-rw-r--r--tests/lib/Files/ObjectStore/FailDeleteObjectStore.php1
-rw-r--r--tests/lib/Files/ObjectStore/MapperTest.php1
-rw-r--r--tests/lib/GlobalScale/ConfigTest.php1
-rw-r--r--tests/lib/HelperStorageTest.php1
-rw-r--r--tests/lib/Hooks/ForwardingEmitterTest.php1
-rw-r--r--tests/lib/InfoXmlTest.php1
-rw-r--r--tests/lib/InstallerTest.php1
-rw-r--r--tests/lib/L10N/L10nTest.php1
-rw-r--r--tests/lib/Log/LogFactoryTest.php1
-rw-r--r--tests/lib/Mail/MailerTest.php1
-rw-r--r--tests/lib/Notification/ActionTest.php1
-rw-r--r--tests/lib/Notification/DummyApp.php1
-rw-r--r--tests/lib/Notification/DummyNotifier.php1
-rw-r--r--tests/lib/Notification/NotificationTest.php1
-rw-r--r--tests/lib/OCS/DiscoveryServiceTest.php1
-rw-r--r--tests/lib/PublicNamespace/UtilTest.php1
-rw-r--r--tests/lib/Remote/InstanceTest.php1
-rw-r--r--tests/lib/Repair/CleanTagsTest.php1
-rw-r--r--tests/lib/Repair/ClearFrontendCachesTest.php1
-rw-r--r--tests/lib/Repair/RepairInvalidSharesTest.php1
-rw-r--r--tests/lib/Repair/RepairSqliteAutoincrementTest.php1
-rw-r--r--tests/lib/RichObjectStrings/DefinitionsTest.php1
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php1
-rw-r--r--tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php1
-rw-r--r--tests/lib/ServerTest.php1
-rw-r--r--tests/lib/Share/ShareTest.php1
-rw-r--r--tests/lib/TagsTest.php1
-rw-r--r--tests/lib/Traits/ClientServiceTrait.php1
-rw-r--r--tests/lib/UrlGeneratorTest.php1
-rw-r--r--tests/lib/User/ManagerTest.php1
408 files changed, 59 insertions, 353 deletions
diff --git a/apps/admin_audit/lib/Actions/Console.php b/apps/admin_audit/lib/Actions/Console.php
index 24ef0503422..5b2eb11da38 100644
--- a/apps/admin_audit/lib/Actions/Console.php
+++ b/apps/admin_audit/lib/Actions/Console.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
class Console extends Action {
/**
* @param $arguments
diff --git a/apps/admin_audit/lib/Actions/GroupManagement.php b/apps/admin_audit/lib/Actions/GroupManagement.php
index f6a328b2b66..daef3e5fbb9 100644
--- a/apps/admin_audit/lib/Actions/GroupManagement.php
+++ b/apps/admin_audit/lib/Actions/GroupManagement.php
@@ -29,7 +29,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
use OCP\IGroup;
use OCP\IUser;
diff --git a/apps/admin_audit/lib/Actions/Security.php b/apps/admin_audit/lib/Actions/Security.php
index 03569a38fef..3ac9485fc9c 100644
--- a/apps/admin_audit/lib/Actions/Security.php
+++ b/apps/admin_audit/lib/Actions/Security.php
@@ -25,6 +25,7 @@ declare(strict_types=1);
*/
namespace OCA\AdminAudit\Actions;
+
use OCP\IUser;
/**
diff --git a/apps/admin_audit/lib/Actions/Sharing.php b/apps/admin_audit/lib/Actions/Sharing.php
index 917b3442cb2..fef112e77d3 100644
--- a/apps/admin_audit/lib/Actions/Sharing.php
+++ b/apps/admin_audit/lib/Actions/Sharing.php
@@ -29,7 +29,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
use OCP\Share;
/**
diff --git a/apps/admin_audit/lib/Actions/Trashbin.php b/apps/admin_audit/lib/Actions/Trashbin.php
index b0f3c0bb4db..50a3d28a8ad 100644
--- a/apps/admin_audit/lib/Actions/Trashbin.php
+++ b/apps/admin_audit/lib/Actions/Trashbin.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
class Trashbin extends Action {
public function delete(array $params) {
diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php
index 62eca9e7d65..ab231a796c7 100644
--- a/apps/admin_audit/lib/Actions/UserManagement.php
+++ b/apps/admin_audit/lib/Actions/UserManagement.php
@@ -30,7 +30,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
use OCP\IUser;
/**
diff --git a/apps/admin_audit/lib/Actions/Versions.php b/apps/admin_audit/lib/Actions/Versions.php
index fb89ea26ce1..612e5a8abd2 100644
--- a/apps/admin_audit/lib/Actions/Versions.php
+++ b/apps/admin_audit/lib/Actions/Versions.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
-
class Versions extends Action {
public function rollback(array $params) {
diff --git a/apps/cloud_federation_api/lib/AppInfo/Application.php b/apps/cloud_federation_api/lib/AppInfo/Application.php
index 2d99d46da04..0f808a88c04 100644
--- a/apps/cloud_federation_api/lib/AppInfo/Application.php
+++ b/apps/cloud_federation_api/lib/AppInfo/Application.php
@@ -23,7 +23,6 @@
namespace OCA\CloudFederationAPI\AppInfo;
-
use OCA\CloudFederationAPI\Capabilities;
use OCP\AppFramework\App;
diff --git a/apps/cloud_federation_api/lib/Capabilities.php b/apps/cloud_federation_api/lib/Capabilities.php
index 010c8a5403c..cd1ce5dd359 100644
--- a/apps/cloud_federation_api/lib/Capabilities.php
+++ b/apps/cloud_federation_api/lib/Capabilities.php
@@ -23,7 +23,6 @@
namespace OCA\CloudFederationAPI;
-
use OCP\Capabilities\ICapability;
use OCP\IURLGenerator;
diff --git a/apps/cloud_federation_api/lib/Config.php b/apps/cloud_federation_api/lib/Config.php
index cd2b333c237..6553ae7d9b2 100644
--- a/apps/cloud_federation_api/lib/Config.php
+++ b/apps/cloud_federation_api/lib/Config.php
@@ -22,6 +22,7 @@
*/
namespace OCA\CloudFederationAPI;
+
use OCP\Federation\ICloudFederationProviderManager;
/**
diff --git a/apps/comments/lib/Activity/Filter.php b/apps/comments/lib/Activity/Filter.php
index 8044ed4efb6..0ad6d9bf4ac 100644
--- a/apps/comments/lib/Activity/Filter.php
+++ b/apps/comments/lib/Activity/Filter.php
@@ -23,7 +23,6 @@
namespace OCA\Comments\Activity;
-
use OCP\Activity\IFilter;
use OCP\IL10N;
use OCP\IURLGenerator;
diff --git a/apps/comments/lib/Activity/Setting.php b/apps/comments/lib/Activity/Setting.php
index a1ff20d1d4c..fefee1ca876 100644
--- a/apps/comments/lib/Activity/Setting.php
+++ b/apps/comments/lib/Activity/Setting.php
@@ -23,7 +23,6 @@
namespace OCA\Comments\Activity;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/comments/lib/Collaboration/CommentersSorter.php b/apps/comments/lib/Collaboration/CommentersSorter.php
index 1789f735973..d0bd8f20305 100644
--- a/apps/comments/lib/Collaboration/CommentersSorter.php
+++ b/apps/comments/lib/Collaboration/CommentersSorter.php
@@ -23,7 +23,6 @@
namespace OCA\Comments\Collaboration;
-
use OCP\Collaboration\AutoComplete\ISorter;
use OCP\Comments\ICommentsManager;
diff --git a/apps/comments/lib/JSSettingsHelper.php b/apps/comments/lib/JSSettingsHelper.php
index ce052d783f1..4c54bb07c1c 100644
--- a/apps/comments/lib/JSSettingsHelper.php
+++ b/apps/comments/lib/JSSettingsHelper.php
@@ -23,7 +23,6 @@
namespace OCA\Comments;
-
use OCP\IServerContainer;
class JSSettingsHelper {
diff --git a/apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php b/apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php
index 7223019b96a..82df3dce5e0 100644
--- a/apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php
+++ b/apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php
@@ -24,7 +24,6 @@
namespace OCA\Comments\Tests\Unit\Collaboration;
-
use OCA\Comments\Collaboration\CommentersSorter;
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
diff --git a/apps/dav/lib/Avatars/AvatarHome.php b/apps/dav/lib/Avatars/AvatarHome.php
index d2fbd3a9c2c..8ee43281b62 100644
--- a/apps/dav/lib/Avatars/AvatarHome.php
+++ b/apps/dav/lib/Avatars/AvatarHome.php
@@ -24,7 +24,6 @@
namespace OCA\DAV\Avatars;
-
use OCP\IAvatarManager;
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\MethodNotAllowed;
diff --git a/apps/dav/lib/Avatars/AvatarNode.php b/apps/dav/lib/Avatars/AvatarNode.php
index ff5bc6212c7..af3486c4368 100644
--- a/apps/dav/lib/Avatars/AvatarNode.php
+++ b/apps/dav/lib/Avatars/AvatarNode.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\Avatars;
-
use OCP\IAvatar;
use Sabre\DAV\File;
diff --git a/apps/dav/lib/CalDAV/Activity/Backend.php b/apps/dav/lib/CalDAV/Activity/Backend.php
index cb9c546b82d..d0232cde1b1 100644
--- a/apps/dav/lib/CalDAV/Activity/Backend.php
+++ b/apps/dav/lib/CalDAV/Activity/Backend.php
@@ -25,7 +25,6 @@
namespace OCA\DAV\CalDAV\Activity;
-
use OCA\DAV\CalDAV\Activity\Provider\Calendar;
use OCA\DAV\CalDAV\Activity\Provider\Event;
use OCA\DAV\CalDAV\CalDavBackend;
diff --git a/apps/dav/lib/CalDAV/Activity/Filter/Calendar.php b/apps/dav/lib/CalDAV/Activity/Filter/Calendar.php
index cb040281a3b..c2c7ec5d34a 100644
--- a/apps/dav/lib/CalDAV/Activity/Filter/Calendar.php
+++ b/apps/dav/lib/CalDAV/Activity/Filter/Calendar.php
@@ -24,7 +24,6 @@
namespace OCA\DAV\CalDAV\Activity\Filter;
-
use OCP\Activity\IFilter;
use OCP\IL10N;
use OCP\IURLGenerator;
diff --git a/apps/dav/lib/CalDAV/Activity/Filter/Todo.php b/apps/dav/lib/CalDAV/Activity/Filter/Todo.php
index 9694509cc62..d361ff389c4 100644
--- a/apps/dav/lib/CalDAV/Activity/Filter/Todo.php
+++ b/apps/dav/lib/CalDAV/Activity/Filter/Todo.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Activity\Filter;
-
use OCP\Activity\IFilter;
use OCP\IL10N;
use OCP\IURLGenerator;
diff --git a/apps/dav/lib/CalDAV/Activity/Setting/Calendar.php b/apps/dav/lib/CalDAV/Activity/Setting/Calendar.php
index 15c47c5471f..b9475535e4d 100644
--- a/apps/dav/lib/CalDAV/Activity/Setting/Calendar.php
+++ b/apps/dav/lib/CalDAV/Activity/Setting/Calendar.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Activity\Setting;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/dav/lib/CalDAV/Activity/Setting/Event.php b/apps/dav/lib/CalDAV/Activity/Setting/Event.php
index bcb04f8e64a..1cd3fc3a051 100644
--- a/apps/dav/lib/CalDAV/Activity/Setting/Event.php
+++ b/apps/dav/lib/CalDAV/Activity/Setting/Event.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Activity\Setting;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/dav/lib/CalDAV/Activity/Setting/Todo.php b/apps/dav/lib/CalDAV/Activity/Setting/Todo.php
index fb6be4a9e38..2dfc85957c6 100644
--- a/apps/dav/lib/CalDAV/Activity/Setting/Todo.php
+++ b/apps/dav/lib/CalDAV/Activity/Setting/Todo.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Activity\Setting;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/dav/lib/CalDAV/CalendarObject.php b/apps/dav/lib/CalDAV/CalendarObject.php
index 6aee57809fa..9a402d3bf2c 100644
--- a/apps/dav/lib/CalDAV/CalendarObject.php
+++ b/apps/dav/lib/CalDAV/CalendarObject.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\CalDAV;
-
use OCP\IL10N;
use Sabre\VObject\Component;
use Sabre\VObject\Property;
diff --git a/apps/dav/lib/CalDAV/Integration/ICalendarProvider.php b/apps/dav/lib/CalDAV/Integration/ICalendarProvider.php
index 806d0f13a03..b15468e460d 100644
--- a/apps/dav/lib/CalDAV/Integration/ICalendarProvider.php
+++ b/apps/dav/lib/CalDAV/Integration/ICalendarProvider.php
@@ -22,7 +22,6 @@
*/
namespace OCA\DAV\CalDAV\Integration;
-
/**
* Interface ICalendarProvider
*
diff --git a/apps/dav/lib/CalDAV/Principal/Collection.php b/apps/dav/lib/CalDAV/Principal/Collection.php
index 80090def6a5..fe345d24801 100644
--- a/apps/dav/lib/CalDAV/Principal/Collection.php
+++ b/apps/dav/lib/CalDAV/Principal/Collection.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Principal;
-
/**
* Class Collection
*
diff --git a/apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php b/apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php
index b999cc71688..6542db23650 100644
--- a/apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php
+++ b/apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php
@@ -25,7 +25,6 @@ declare(strict_types=1);
*/
namespace OCA\DAV\CardDAV\Integration;
-
/**
* @since 19.0.0
*/
diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php
index 2180911b55c..d163565a7a2 100644
--- a/apps/dav/lib/CardDAV/SyncService.php
+++ b/apps/dav/lib/CardDAV/SyncService.php
@@ -202,7 +202,7 @@ class SyncService {
$body = $this->buildSyncCollectionRequestBody($syncToken);
$response = $client->request('REPORT', $addressBookUrl, $body, [
- 'Content-Type' => 'application/xml'
+ 'Content-Type' => 'application/xml'
]);
return $this->parseMultiStatus($response['body']);
diff --git a/apps/dav/lib/Comments/CommentNode.php b/apps/dav/lib/Comments/CommentNode.php
index 0d42062951b..a8e4c2885b4 100644
--- a/apps/dav/lib/Comments/CommentNode.php
+++ b/apps/dav/lib/Comments/CommentNode.php
@@ -23,7 +23,6 @@
namespace OCA\DAV\Comments;
-
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\Comments\MessageTooLongException;
diff --git a/apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php b/apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php
index f068b62d5dd..9c68b065dbb 100644
--- a/apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php
+++ b/apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php
@@ -25,6 +25,7 @@
*/
namespace OCA\DAV\Connector\Sabre;
+
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
index 39bee3a6656..f6da755aaf7 100644
--- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
@@ -27,6 +27,7 @@
*/
namespace OCA\DAV\Connector\Sabre;
+
use OCA\DAV\Upload\FutureFile;
use OCP\Files\StorageNotAvailableException;
use Sabre\DAV\Exception\InsufficientStorage;
diff --git a/apps/dav/lib/DAV/Sharing/IShareable.php b/apps/dav/lib/DAV/Sharing/IShareable.php
index 8c40147e26c..7da6549ee4f 100644
--- a/apps/dav/lib/DAV/Sharing/IShareable.php
+++ b/apps/dav/lib/DAV/Sharing/IShareable.php
@@ -22,6 +22,7 @@
*/
namespace OCA\DAV\DAV\Sharing;
+
use Sabre\DAV\INode;
/**
diff --git a/apps/dav/lib/Migration/Version1008Date20181105104826.php b/apps/dav/lib/Migration/Version1008Date20181105104826.php
index 305497ea1ec..cc80c6552c4 100644
--- a/apps/dav/lib/Migration/Version1008Date20181105104826.php
+++ b/apps/dav/lib/Migration/Version1008Date20181105104826.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCA\DAV\Migration;
-
use Closure;
use Doctrine\DBAL\Types\Type;
use OCP\DB\ISchemaWrapper;
diff --git a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
index 38be58f8bee..59edfed267e 100644
--- a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
+++ b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
@@ -24,7 +24,6 @@
namespace OCA\DAV\Tests\Unit\Avatars;
-
use OCA\DAV\Avatars\AvatarHome;
use OCA\DAV\Avatars\AvatarNode;
use OCP\IAvatar;
diff --git a/apps/dav/tests/unit/Avatars/AvatarNodeTest.php b/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
index b8524a96470..d93e8422884 100644
--- a/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
+++ b/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
@@ -22,7 +22,6 @@
namespace OCA\DAV\Tests\Unit\Avatars;
-
use OCA\DAV\Avatars\AvatarNode;
use OCP\IAvatar;
use Test\TestCase;
diff --git a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
index 67c96259c60..aa4f4e8443c 100644
--- a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
+++ b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\CardDAV;
-
use OCA\DAV\CardDAV\AddressBook;
use OCA\DAV\CardDAV\AddressBookImpl;
use OCA\DAV\CardDAV\CardDavBackend;
diff --git a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
index a48f7100313..0f16259d337 100644
--- a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
+++ b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
@@ -24,7 +24,6 @@
namespace OCA\DAV\Tests\unit\CardDAV;
-
use OCA\DAV\CardDAV\AddressBook;
use OCA\DAV\CardDAV\ImageExportPlugin;
use OCA\DAV\CardDAV\PhotoCache;
diff --git a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
index 7de2ea2f56a..e0abbf7857d 100644
--- a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
+++ b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\CardDAV\Sharing;
-
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\DAV\Sharing\IShareable;
use OCA\DAV\DAV\Sharing\Plugin;
diff --git a/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
index c9b02ff8694..ce830e3f699 100644
--- a/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
+++ b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
@@ -22,7 +22,6 @@
namespace OCA\DAV\Tests\Unit\Command;
-
use OCA\DAV\Command\RemoveInvalidShares;
use OCA\DAV\Connector\Sabre\Principal;
use OCP\Migration\IOutput;
diff --git a/apps/dav/tests/unit/Connector/Sabre/NodeTest.php b/apps/dav/tests/unit/Connector/Sabre/NodeTest.php
index 00d2ff8245e..4244792c46a 100644
--- a/apps/dav/tests/unit/Connector/Sabre/NodeTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/NodeTest.php
@@ -27,6 +27,7 @@
*/
namespace OCA\DAV\Tests\unit\Connector\Sabre;
+
use OC\Files\FileInfo;
use OC\Files\View;
use OCP\Files\Mount\IMountPoint;
diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
index c047c727627..870f3709a58 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
@@ -28,7 +28,6 @@
namespace OCA\DAV\Tests\unit\Connector\Sabre;
-
use OC\Files\FileInfo;
use OC\Files\Filesystem;
use OC\Files\Mount\Manager;
diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
index 6d1763dc87a..194f9375f68 100644
--- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
@@ -28,6 +28,7 @@
*/
namespace OCA\DAV\Tests\unit\Connector\Sabre;
+
use OC\Files\View;
use OCA\DAV\Connector\Sabre\QuotaPlugin;
use OCP\Files\FileInfo;
diff --git a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
index 9d8d2d925f7..07a9e2ce9f5 100644
--- a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
+++ b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\DAV\Sharing;
-
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\DAV\Sharing\IShareable;
use OCA\DAV\DAV\Sharing\Plugin;
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
index efdf15dac34..c0b8c92964f 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\SystemTag;
-
use OC\SystemTag\SystemTag;
use OCP\IUser;
use OCP\SystemTag\ISystemTag;
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
index 938549c6646..faae3626fb3 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\SystemTag;
-
use OC\SystemTag\SystemTag;
use OCP\IGroupManager;
use OCP\IUser;
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
index d0023dbe91c..58779c0dd46 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
@@ -26,7 +26,6 @@
namespace OCA\DAV\Tests\unit\SystemTag;
-
use OC\SystemTag\SystemTag;
use OCP\IUser;
use OCP\SystemTag\ISystemTagManager;
diff --git a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
index 98337bbfa65..f4f91c0e760 100644
--- a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
+++ b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
@@ -24,7 +24,6 @@
namespace OCA\DAV\Tests\unit\Upload;
-
use OCA\DAV\Connector\Sabre\Directory;
use OCA\DAV\Upload\ChunkingPlugin;
use OCA\DAV\Upload\FutureFile;
diff --git a/apps/encryption/lib/AppInfo/Application.php b/apps/encryption/lib/AppInfo/Application.php
index 6c75a1912a8..deea0967521 100644
--- a/apps/encryption/lib/AppInfo/Application.php
+++ b/apps/encryption/lib/AppInfo/Application.php
@@ -28,7 +28,6 @@
namespace OCA\Encryption\AppInfo;
-
use OC\Files\View;
use OCA\Encryption\Controller\RecoveryController;
use OCA\Encryption\Controller\SettingsController;
diff --git a/apps/encryption/lib/Command/DisableMasterKey.php b/apps/encryption/lib/Command/DisableMasterKey.php
index 2054cf953f7..18bf0b3903d 100644
--- a/apps/encryption/lib/Command/DisableMasterKey.php
+++ b/apps/encryption/lib/Command/DisableMasterKey.php
@@ -23,7 +23,6 @@
namespace OCA\Encryption\Command;
-
use OCA\Encryption\Util;
use OCP\IConfig;
use Symfony\Component\Console\Command\Command;
diff --git a/apps/encryption/lib/Command/EnableMasterKey.php b/apps/encryption/lib/Command/EnableMasterKey.php
index fe011abe138..d1148c88ccd 100644
--- a/apps/encryption/lib/Command/EnableMasterKey.php
+++ b/apps/encryption/lib/Command/EnableMasterKey.php
@@ -22,7 +22,6 @@
namespace OCA\Encryption\Command;
-
use OCA\Encryption\Util;
use OCP\IConfig;
use Symfony\Component\Console\Command\Command;
diff --git a/apps/encryption/lib/Command/RecoverUser.php b/apps/encryption/lib/Command/RecoverUser.php
index fee9195cf1e..9d98b38de47 100644
--- a/apps/encryption/lib/Command/RecoverUser.php
+++ b/apps/encryption/lib/Command/RecoverUser.php
@@ -23,7 +23,6 @@
namespace OCA\Encryption\Command;
-
use OCA\Encryption\Util;
use OCP\IConfig;
use OCP\IUserManager;
diff --git a/apps/encryption/lib/Controller/RecoveryController.php b/apps/encryption/lib/Controller/RecoveryController.php
index 3d96214bdc9..5cc5456844b 100644
--- a/apps/encryption/lib/Controller/RecoveryController.php
+++ b/apps/encryption/lib/Controller/RecoveryController.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Controller;
-
use OCA\Encryption\Recovery;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
diff --git a/apps/encryption/lib/Controller/StatusController.php b/apps/encryption/lib/Controller/StatusController.php
index d5a60460229..fdd6de78e70 100644
--- a/apps/encryption/lib/Controller/StatusController.php
+++ b/apps/encryption/lib/Controller/StatusController.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Controller;
-
use OCA\Encryption\Session;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 45319302bbf..acf19f5eb26 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -29,7 +29,6 @@
namespace OCA\Encryption\Crypto;
-
use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Encryption\Exceptions\EncryptionFailedException;
use OCA\Encryption\Exceptions\MultiKeyDecryptException;
diff --git a/apps/encryption/lib/Crypto/DecryptAll.php b/apps/encryption/lib/Crypto/DecryptAll.php
index 564f1d49888..1bb0dd0bc42 100644
--- a/apps/encryption/lib/Crypto/DecryptAll.php
+++ b/apps/encryption/lib/Crypto/DecryptAll.php
@@ -22,7 +22,6 @@
namespace OCA\Encryption\Crypto;
-
use OCA\Encryption\KeyManager;
use OCA\Encryption\Session;
use OCA\Encryption\Util;
diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php
index 421e5f02ee6..f976a0815db 100644
--- a/apps/encryption/lib/Crypto/Encryption.php
+++ b/apps/encryption/lib/Crypto/Encryption.php
@@ -31,7 +31,6 @@
namespace OCA\Encryption\Crypto;
-
use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Files\Cache\Scanner;
use OC\Files\View;
diff --git a/apps/encryption/lib/HookManager.php b/apps/encryption/lib/HookManager.php
index 261247f336e..a40f56fa373 100644
--- a/apps/encryption/lib/HookManager.php
+++ b/apps/encryption/lib/HookManager.php
@@ -23,7 +23,6 @@
namespace OCA\Encryption;
-
use OCA\Encryption\Hooks\Contracts\IHook;
class HookManager {
diff --git a/apps/encryption/lib/Hooks/Contracts/IHook.php b/apps/encryption/lib/Hooks/Contracts/IHook.php
index 573a6b10595..02d26c4dea2 100644
--- a/apps/encryption/lib/Hooks/Contracts/IHook.php
+++ b/apps/encryption/lib/Hooks/Contracts/IHook.php
@@ -22,7 +22,6 @@
namespace OCA\Encryption\Hooks\Contracts;
-
interface IHook {
/**
* Connects Hooks
diff --git a/apps/encryption/lib/Hooks/UserHooks.php b/apps/encryption/lib/Hooks/UserHooks.php
index 209909dd097..16655dfe689 100644
--- a/apps/encryption/lib/Hooks/UserHooks.php
+++ b/apps/encryption/lib/Hooks/UserHooks.php
@@ -28,7 +28,6 @@
namespace OCA\Encryption\Hooks;
-
use OC\Files\Filesystem;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\Hooks\Contracts\IHook;
diff --git a/apps/encryption/lib/Migration/SetMasterKeyStatus.php b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
index 49384be3328..ade393cede1 100644
--- a/apps/encryption/lib/Migration/SetMasterKeyStatus.php
+++ b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
@@ -23,7 +23,6 @@
namespace OCA\Encryption\Migration;
-
use OCP\IConfig;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
diff --git a/apps/encryption/lib/Recovery.php b/apps/encryption/lib/Recovery.php
index 1feb5759586..657d41b61dd 100644
--- a/apps/encryption/lib/Recovery.php
+++ b/apps/encryption/lib/Recovery.php
@@ -27,7 +27,6 @@
namespace OCA\Encryption;
-
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
use OCP\Encryption\IFile;
diff --git a/apps/encryption/lib/Settings/Personal.php b/apps/encryption/lib/Settings/Personal.php
index 90d54155c27..7ecf457e641 100644
--- a/apps/encryption/lib/Settings/Personal.php
+++ b/apps/encryption/lib/Settings/Personal.php
@@ -23,7 +23,6 @@
namespace OCA\Encryption\Settings;
-
use OCA\Encryption\Session;
use OCA\Encryption\Util;
use OCP\AppFramework\Http\TemplateResponse;
diff --git a/apps/encryption/lib/Users/Setup.php b/apps/encryption/lib/Users/Setup.php
index b9fc7aea4d9..549c7222d2e 100644
--- a/apps/encryption/lib/Users/Setup.php
+++ b/apps/encryption/lib/Users/Setup.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Users;
-
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\KeyManager;
use OCP\ILogger;
diff --git a/apps/encryption/lib/Util.php b/apps/encryption/lib/Util.php
index 6b3ba80481b..681f025417b 100644
--- a/apps/encryption/lib/Util.php
+++ b/apps/encryption/lib/Util.php
@@ -26,7 +26,6 @@
namespace OCA\Encryption;
-
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
use OCP\IConfig;
diff --git a/apps/encryption/tests/Command/TestEnableMasterKey.php b/apps/encryption/tests/Command/TestEnableMasterKey.php
index 3d8831bd7fb..f8cbd790adb 100644
--- a/apps/encryption/tests/Command/TestEnableMasterKey.php
+++ b/apps/encryption/tests/Command/TestEnableMasterKey.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Tests\Command;
-
use OCA\Encryption\Command\EnableMasterKey;
use OCA\Encryption\Util;
use OCP\IConfig;
diff --git a/apps/encryption/tests/Controller/RecoveryControllerTest.php b/apps/encryption/tests/Controller/RecoveryControllerTest.php
index 3c8b239631e..5f69f11d2f7 100644
--- a/apps/encryption/tests/Controller/RecoveryControllerTest.php
+++ b/apps/encryption/tests/Controller/RecoveryControllerTest.php
@@ -26,7 +26,6 @@
namespace OCA\Encryption\Tests\Controller;
-
use OCA\Encryption\Controller\RecoveryController;
use OCA\Encryption\Recovery;
use OCP\AppFramework\Http;
diff --git a/apps/encryption/tests/Controller/StatusControllerTest.php b/apps/encryption/tests/Controller/StatusControllerTest.php
index d9db99989d5..1f5f02a2920 100644
--- a/apps/encryption/tests/Controller/StatusControllerTest.php
+++ b/apps/encryption/tests/Controller/StatusControllerTest.php
@@ -27,7 +27,6 @@
namespace OCA\Encryption\Tests\Controller;
-
use OCA\Encryption\Controller\StatusController;
use OCA\Encryption\Session;
use OCP\Encryption\IManager;
diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php
index 43704c95d55..d222d94c16c 100644
--- a/apps/encryption/tests/Crypto/CryptTest.php
+++ b/apps/encryption/tests/Crypto/CryptTest.php
@@ -27,7 +27,6 @@
namespace OCA\Encryption\Tests\Crypto;
-
use OCA\Encryption\Crypto\Crypt;
use OCP\IConfig;
use OCP\IL10N;
diff --git a/apps/encryption/tests/Crypto/DecryptAllTest.php b/apps/encryption/tests/Crypto/DecryptAllTest.php
index f84892a7c91..be980149145 100644
--- a/apps/encryption/tests/Crypto/DecryptAllTest.php
+++ b/apps/encryption/tests/Crypto/DecryptAllTest.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Tests\Crypto;
-
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\Crypto\DecryptAll;
use OCA\Encryption\KeyManager;
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php
index 1a409e6508e..7f67f701b50 100644
--- a/apps/encryption/tests/Crypto/EncryptAllTest.php
+++ b/apps/encryption/tests/Crypto/EncryptAllTest.php
@@ -27,7 +27,6 @@
namespace OCA\Encryption\Tests\Crypto;
-
use OC\Files\View;
use OCA\Encryption\Crypto\EncryptAll;
use OCA\Encryption\KeyManager;
diff --git a/apps/encryption/tests/HookManagerTest.php b/apps/encryption/tests/HookManagerTest.php
index b41cdf1720c..c49938f4f3f 100644
--- a/apps/encryption/tests/HookManagerTest.php
+++ b/apps/encryption/tests/HookManagerTest.php
@@ -25,7 +25,6 @@
namespace OCA\Encryption\Tests;
-
use OCA\Encryption\HookManager;
use OCA\Encryption\Hooks\Contracts\IHook;
use OCP\IConfig;
diff --git a/apps/encryption/tests/Hooks/UserHooksTest.php b/apps/encryption/tests/Hooks/UserHooksTest.php
index 3cfeb2362ac..c676acb1e90 100644
--- a/apps/encryption/tests/Hooks/UserHooksTest.php
+++ b/apps/encryption/tests/Hooks/UserHooksTest.php
@@ -28,7 +28,6 @@
namespace OCA\Encryption\Tests\Hooks;
-
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\Hooks\UserHooks;
use OCA\Encryption\KeyManager;
diff --git a/apps/encryption/tests/KeyManagerTest.php b/apps/encryption/tests/KeyManagerTest.php
index 2696698eabc..69f238d5ef7 100644
--- a/apps/encryption/tests/KeyManagerTest.php
+++ b/apps/encryption/tests/KeyManagerTest.php
@@ -31,7 +31,6 @@
namespace OCA\Encryption\Tests;
-
use OC\Files\FileInfo;
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
diff --git a/apps/encryption/tests/RecoveryTest.php b/apps/encryption/tests/RecoveryTest.php
index ce5c1f006a6..5139e492f26 100644
--- a/apps/encryption/tests/RecoveryTest.php
+++ b/apps/encryption/tests/RecoveryTest.php
@@ -28,7 +28,6 @@
namespace OCA\Encryption\Tests;
-
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\KeyManager;
diff --git a/apps/encryption/tests/SessionTest.php b/apps/encryption/tests/SessionTest.php
index 4b5cd9f0cb5..279111e3c3b 100644
--- a/apps/encryption/tests/SessionTest.php
+++ b/apps/encryption/tests/SessionTest.php
@@ -27,7 +27,6 @@
namespace OCA\Encryption\Tests;
-
use OCA\Encryption\Session;
use OCP\ISession;
use Test\TestCase;
diff --git a/apps/encryption/tests/Users/SetupTest.php b/apps/encryption/tests/Users/SetupTest.php
index 44fb1b40bda..a580ca68e05 100644
--- a/apps/encryption/tests/Users/SetupTest.php
+++ b/apps/encryption/tests/Users/SetupTest.php
@@ -26,7 +26,6 @@
namespace OCA\Encryption\Tests\Users;
-
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\KeyManager;
use OCA\Encryption\Users\Setup;
diff --git a/apps/encryption/tests/UtilTest.php b/apps/encryption/tests/UtilTest.php
index 6f3aea38a9b..d433826cb76 100644
--- a/apps/encryption/tests/UtilTest.php
+++ b/apps/encryption/tests/UtilTest.php
@@ -28,7 +28,6 @@
namespace OCA\Encryption\Tests;
-
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\Util;
diff --git a/apps/federatedfilesharing/lib/AddressHandler.php b/apps/federatedfilesharing/lib/AddressHandler.php
index 2999ade6ab1..384a1e8c315 100644
--- a/apps/federatedfilesharing/lib/AddressHandler.php
+++ b/apps/federatedfilesharing/lib/AddressHandler.php
@@ -25,6 +25,7 @@
*/
namespace OCA\FederatedFileSharing;
+
use OC\HintException;
use OCP\Federation\ICloudIdManager;
use OCP\IL10N;
diff --git a/apps/federatedfilesharing/lib/AppInfo/Application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php
index dc1b8541f07..8cf2aa0efc2 100644
--- a/apps/federatedfilesharing/lib/AppInfo/Application.php
+++ b/apps/federatedfilesharing/lib/AppInfo/Application.php
@@ -28,7 +28,6 @@
namespace OCA\FederatedFileSharing\AppInfo;
-
use OC\AppFramework\Utility\SimpleContainer;
use OCA\FederatedFileSharing\AddressHandler;
use OCA\FederatedFileSharing\Controller\RequestHandlerController;
diff --git a/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php b/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
index 0299efcb83e..ebbff7b9c34 100644
--- a/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
+++ b/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
@@ -27,7 +27,6 @@
namespace OCA\FederatedFileSharing\BackgroundJob;
-
use OC\BackgroundJob\Job;
use OC\BackgroundJob\JobList;
use OCA\FederatedFileSharing\AddressHandler;
diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php
index f66482b1383..348b7ef839e 100644
--- a/apps/federatedfilesharing/lib/Notifier.php
+++ b/apps/federatedfilesharing/lib/Notifier.php
@@ -25,7 +25,6 @@
namespace OCA\FederatedFileSharing;
-
use OC\HintException;
use OCP\Contacts\IManager;
use OCP\Federation\ICloudId;
diff --git a/apps/federatedfilesharing/lib/Settings/Personal.php b/apps/federatedfilesharing/lib/Settings/Personal.php
index d7c52aba380..5416dbf8b17 100644
--- a/apps/federatedfilesharing/lib/Settings/Personal.php
+++ b/apps/federatedfilesharing/lib/Settings/Personal.php
@@ -26,7 +26,6 @@
namespace OCA\FederatedFileSharing\Settings;
-
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IL10N;
diff --git a/apps/federatedfilesharing/lib/Settings/PersonalSection.php b/apps/federatedfilesharing/lib/Settings/PersonalSection.php
index c555f17e07a..102d4eb889f 100644
--- a/apps/federatedfilesharing/lib/Settings/PersonalSection.php
+++ b/apps/federatedfilesharing/lib/Settings/PersonalSection.php
@@ -23,7 +23,6 @@
namespace OCA\FederatedFileSharing\Settings;
-
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
diff --git a/apps/federatedfilesharing/lib/TokenHandler.php b/apps/federatedfilesharing/lib/TokenHandler.php
index 2487a331fa7..0e3fe7a049d 100644
--- a/apps/federatedfilesharing/lib/TokenHandler.php
+++ b/apps/federatedfilesharing/lib/TokenHandler.php
@@ -22,7 +22,6 @@
namespace OCA\FederatedFileSharing;
-
use OCP\Security\ISecureRandom;
/**
diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index 22466fbc480..300622f1c00 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -27,7 +27,6 @@
namespace OCA\FederatedFileSharing\Tests;
-
use OC\Federation\CloudIdManager;
use OCA\FederatedFileSharing\AddressHandler;
use OCP\IL10N;
diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
index 227f816c825..7251f431eef 100644
--- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
+++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
@@ -30,7 +30,6 @@
namespace OCA\FederatedFileSharing\Tests;
-
use OC\Federation\CloudIdManager;
use OCA\FederatedFileSharing\AddressHandler;
use OCA\FederatedFileSharing\FederatedShareProvider;
diff --git a/apps/federatedfilesharing/tests/NotificationsTest.php b/apps/federatedfilesharing/tests/NotificationsTest.php
index f05573b87f9..a835709c978 100644
--- a/apps/federatedfilesharing/tests/NotificationsTest.php
+++ b/apps/federatedfilesharing/tests/NotificationsTest.php
@@ -24,7 +24,6 @@
namespace OCA\FederatedFileSharing\Tests;
-
use OCA\FederatedFileSharing\AddressHandler;
use OCA\FederatedFileSharing\Notifications;
use OCP\BackgroundJob\IJobList;
diff --git a/apps/federatedfilesharing/tests/TokenHandlerTest.php b/apps/federatedfilesharing/tests/TokenHandlerTest.php
index 50be53bd1c1..8ddc4bc039b 100644
--- a/apps/federatedfilesharing/tests/TokenHandlerTest.php
+++ b/apps/federatedfilesharing/tests/TokenHandlerTest.php
@@ -24,7 +24,6 @@
namespace OCA\FederatedFileSharing\Tests;
-
use OCA\FederatedFileSharing\TokenHandler;
use OCP\Security\ISecureRandom;
diff --git a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
index e74fc74cace..4eaa94a53d5 100644
--- a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
+++ b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php
@@ -28,7 +28,6 @@
namespace OCA\Federation\BackgroundJob;
-
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Ring\Exception\RingException;
diff --git a/apps/federation/lib/DbHandler.php b/apps/federation/lib/DbHandler.php
index 24bbe91c7b8..b7d53d378d0 100644
--- a/apps/federation/lib/DbHandler.php
+++ b/apps/federation/lib/DbHandler.php
@@ -26,7 +26,6 @@
namespace OCA\Federation;
-
use OC\Files\Filesystem;
use OC\HintException;
use OCP\IDBConnection;
diff --git a/apps/federation/lib/Hooks.php b/apps/federation/lib/Hooks.php
index 2a1bce2b303..3f6a45422a7 100644
--- a/apps/federation/lib/Hooks.php
+++ b/apps/federation/lib/Hooks.php
@@ -22,8 +22,6 @@
namespace OCA\Federation;
-
-
class Hooks {
/** @var TrustedServers */
diff --git a/apps/federation/tests/BackgroundJob/GetSharedSecretTest.php b/apps/federation/tests/BackgroundJob/GetSharedSecretTest.php
index d833b6ec607..ba84d718df6 100644
--- a/apps/federation/tests/BackgroundJob/GetSharedSecretTest.php
+++ b/apps/federation/tests/BackgroundJob/GetSharedSecretTest.php
@@ -26,7 +26,6 @@
namespace OCA\Federation\Tests\BackgroundJob;
-
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Ring\Exception\RingException;
use OCA\Federation\BackgroundJob\GetSharedSecret;
diff --git a/apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php b/apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php
index 25518cb6cdb..f35654b0895 100644
--- a/apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php
+++ b/apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php
@@ -25,7 +25,6 @@
namespace OCA\Federation\Tests\BackgroundJob;
-
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Ring\Exception\RingException;
use OCA\Federation\BackgroundJob\RequestSharedSecret;
diff --git a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
index 88cc9c617af..c8a79748534 100644
--- a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
+++ b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
@@ -25,7 +25,6 @@
namespace OCA\Federation\Tests\Controller;
-
use OC\BackgroundJob\JobList;
use OCA\Federation\Controller\OCSAuthAPIController;
use OCA\Federation\DbHandler;
diff --git a/apps/federation/tests/Controller/SettingsControllerTest.php b/apps/federation/tests/Controller/SettingsControllerTest.php
index 16549ff16a6..48c9b91268a 100644
--- a/apps/federation/tests/Controller/SettingsControllerTest.php
+++ b/apps/federation/tests/Controller/SettingsControllerTest.php
@@ -23,7 +23,6 @@
namespace OCA\Federation\Tests\Controller;
-
use OCA\Federation\Controller\SettingsController;
use OCA\Federation\TrustedServers;
use OCP\AppFramework\Http\DataResponse;
diff --git a/apps/federation/tests/DbHandlerTest.php b/apps/federation/tests/DbHandlerTest.php
index d68173cb451..9b747a772f4 100644
--- a/apps/federation/tests/DbHandlerTest.php
+++ b/apps/federation/tests/DbHandlerTest.php
@@ -25,7 +25,6 @@
namespace OCA\Federation\Tests;
-
use OCA\Federation\DbHandler;
use OCA\Federation\TrustedServers;
use OCP\IDBConnection;
diff --git a/apps/federation/tests/HooksTest.php b/apps/federation/tests/HooksTest.php
index cb792391cbf..0bbf2bfb7ac 100644
--- a/apps/federation/tests/HooksTest.php
+++ b/apps/federation/tests/HooksTest.php
@@ -24,7 +24,6 @@
namespace OCA\Federation\Tests;
-
use OCA\Federation\Hooks;
use OCA\Federation\TrustedServers;
use Test\TestCase;
diff --git a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
index 9d019794d25..1c4f5969513 100644
--- a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
+++ b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
@@ -26,7 +26,6 @@
namespace OCA\Federation\Tests\Middleware;
-
use OC\HintException;
use OCA\Federation\Controller\SettingsController;
use OCA\Federation\Middleware\AddServerMiddleware;
diff --git a/apps/federation/tests/TrustedServersTest.php b/apps/federation/tests/TrustedServersTest.php
index 5c7dd772c86..5fe4d00ecd1 100644
--- a/apps/federation/tests/TrustedServersTest.php
+++ b/apps/federation/tests/TrustedServersTest.php
@@ -26,7 +26,6 @@
namespace OCA\Federation\Tests;
-
use OCA\Federation\DbHandler;
use OCA\Federation\TrustedServers;
use OCP\AppFramework\Utility\ITimeFactory;
diff --git a/apps/files/lib/Activity/Filter/Favorites.php b/apps/files/lib/Activity/Filter/Favorites.php
index 2e8192341a1..e33c404b6de 100644
--- a/apps/files/lib/Activity/Filter/Favorites.php
+++ b/apps/files/lib/Activity/Filter/Favorites.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Filter;
-
use OCA\Files\Activity\Helper;
use OCP\Activity\IFilter;
use OCP\Activity\IManager;
diff --git a/apps/files/lib/Activity/Filter/FileChanges.php b/apps/files/lib/Activity/Filter/FileChanges.php
index f995b42a15a..14c98094a2c 100644
--- a/apps/files/lib/Activity/Filter/FileChanges.php
+++ b/apps/files/lib/Activity/Filter/FileChanges.php
@@ -24,7 +24,6 @@
namespace OCA\Files\Activity\Filter;
-
use OCP\Activity\IFilter;
use OCP\IL10N;
use OCP\IURLGenerator;
diff --git a/apps/files/lib/Activity/Settings/FavoriteAction.php b/apps/files/lib/Activity/Settings/FavoriteAction.php
index fe1a8e707cc..9db53eada8e 100644
--- a/apps/files/lib/Activity/Settings/FavoriteAction.php
+++ b/apps/files/lib/Activity/Settings/FavoriteAction.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Activity/Settings/FileChanged.php b/apps/files/lib/Activity/Settings/FileChanged.php
index 77e1109eb36..503201bd129 100644
--- a/apps/files/lib/Activity/Settings/FileChanged.php
+++ b/apps/files/lib/Activity/Settings/FileChanged.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Activity/Settings/FileCreated.php b/apps/files/lib/Activity/Settings/FileCreated.php
index c726ff670fa..481c719d024 100644
--- a/apps/files/lib/Activity/Settings/FileCreated.php
+++ b/apps/files/lib/Activity/Settings/FileCreated.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Activity/Settings/FileDeleted.php b/apps/files/lib/Activity/Settings/FileDeleted.php
index 6e05ce9e00b..d4e56b6c717 100644
--- a/apps/files/lib/Activity/Settings/FileDeleted.php
+++ b/apps/files/lib/Activity/Settings/FileDeleted.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Activity/Settings/FileFavorite.php b/apps/files/lib/Activity/Settings/FileFavorite.php
index cc51d8d0961..ac62242f703 100644
--- a/apps/files/lib/Activity/Settings/FileFavorite.php
+++ b/apps/files/lib/Activity/Settings/FileFavorite.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Activity/Settings/FileRestored.php b/apps/files/lib/Activity/Settings/FileRestored.php
index 54d0600c6ce..59b722ddf85 100644
--- a/apps/files/lib/Activity/Settings/FileRestored.php
+++ b/apps/files/lib/Activity/Settings/FileRestored.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files/lib/Collaboration/Resources/Listener.php b/apps/files/lib/Collaboration/Resources/Listener.php
index 8bc45996e20..6133504bf5d 100644
--- a/apps/files/lib/Collaboration/Resources/Listener.php
+++ b/apps/files/lib/Collaboration/Resources/Listener.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCA\Files\Collaboration\Resources;
-
use OCP\Collaboration\Resources\IManager;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
diff --git a/apps/files/lib/Collaboration/Resources/ResourceProvider.php b/apps/files/lib/Collaboration/Resources/ResourceProvider.php
index 409361acb30..d747253f8ff 100644
--- a/apps/files/lib/Collaboration/Resources/ResourceProvider.php
+++ b/apps/files/lib/Collaboration/Resources/ResourceProvider.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Files\Collaboration\Resources;
-
use OCP\Collaboration\Resources\IProvider;
use OCP\Collaboration\Resources\IResource;
use OCP\Collaboration\Resources\ResourceException;
diff --git a/apps/files/lib/Controller/DirectEditingController.php b/apps/files/lib/Controller/DirectEditingController.php
index ccef73b6a06..b29316aff32 100644
--- a/apps/files/lib/Controller/DirectEditingController.php
+++ b/apps/files/lib/Controller/DirectEditingController.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Controller;
-
use Exception;
use OCA\Files\Service\DirectEditingService;
use OCP\AppFramework\Http;
diff --git a/apps/files/lib/Controller/DirectEditingViewController.php b/apps/files/lib/Controller/DirectEditingViewController.php
index af7c3cde035..75b6dfe7395 100644
--- a/apps/files/lib/Controller/DirectEditingViewController.php
+++ b/apps/files/lib/Controller/DirectEditingViewController.php
@@ -23,7 +23,6 @@
namespace OCA\Files\Controller;
-
use Exception;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\NotFoundResponse;
diff --git a/apps/files/lib/Service/DirectEditingService.php b/apps/files/lib/Service/DirectEditingService.php
index e375f3c9b0a..c33fbe5d883 100644
--- a/apps/files/lib/Service/DirectEditingService.php
+++ b/apps/files/lib/Service/DirectEditingService.php
@@ -24,7 +24,6 @@
namespace OCA\Files\Service;
-
use OCP\DirectEditing\ACreateEmpty;
use OCP\DirectEditing\ACreateFromTemplate;
use OCP\DirectEditing\IEditor;
diff --git a/apps/files/tests/Activity/Filter/GenericTest.php b/apps/files/tests/Activity/Filter/GenericTest.php
index 46b977bb27f..89169a0e85c 100644
--- a/apps/files/tests/Activity/Filter/GenericTest.php
+++ b/apps/files/tests/Activity/Filter/GenericTest.php
@@ -24,7 +24,6 @@
namespace OCA\Files\Tests\Activity\Filter;
-
use OCA\Files\Activity\Filter\Favorites;
use OCA\Files\Activity\Filter\FileChanges;
use OCP\Activity\IFilter;
diff --git a/apps/files/tests/Activity/ProviderTest.php b/apps/files/tests/Activity/ProviderTest.php
index 5e4b18c0bb1..4521dea33ce 100644
--- a/apps/files/tests/Activity/ProviderTest.php
+++ b/apps/files/tests/Activity/ProviderTest.php
@@ -24,7 +24,6 @@
namespace OCA\Files\Tests\Activity;
-
use OCA\Files\Activity\Provider;
use OCP\Activity\IEvent;
use OCP\Activity\IEventMerger;
diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php
index 4f4b42e96b9..398399d820d 100644
--- a/apps/files_external/lib/Controller/GlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/GlobalStoragesController.php
@@ -28,7 +28,6 @@
namespace OCA\Files_External\Controller;
-
use OCA\Files_External\NotFoundException;
use OCA\Files_External\Service\GlobalStoragesService;
use OCP\AppFramework\Http;
diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php
index 8b1b0cb7a6c..d087a5e3900 100644
--- a/apps/files_external/lib/Controller/StoragesController.php
+++ b/apps/files_external/lib/Controller/StoragesController.php
@@ -28,7 +28,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;
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index 87c6d7ef6d8..345bd3e855d 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -28,7 +28,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\StorageConfig;
diff --git a/apps/files_external/lib/Lib/FrontendDefinitionTrait.php b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php
index 58e2d5ffdcf..30e0f593621 100644
--- a/apps/files_external/lib/Lib/FrontendDefinitionTrait.php
+++ b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php
@@ -24,7 +24,6 @@
namespace OCA\Files_External\Lib;
-
/**
* Trait for objects that have a frontend representation
*/
diff --git a/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php b/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
index d8d4e1dce1b..cf720b35a5b 100644
--- a/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
+++ b/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
@@ -22,7 +22,6 @@
namespace OCA\Files_External\Lib;
-
/**
* Polyfill for checking dependencies using legacy Storage::checkDependencies()
*/
diff --git a/apps/files_external/lib/Lib/Storage/OwnCloud.php b/apps/files_external/lib/Lib/Storage/OwnCloud.php
index a55918cedb7..966874e947a 100644
--- a/apps/files_external/lib/Lib/Storage/OwnCloud.php
+++ b/apps/files_external/lib/Lib/Storage/OwnCloud.php
@@ -27,6 +27,7 @@
*/
namespace OCA\Files_External\Lib\Storage;
+
use OCP\Files\Storage\IDisableEncryptionStorage;
use Sabre\DAV\Client;
diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php
index 3e6c8ddbde0..d79c82446ae 100644
--- a/apps/files_external/lib/Lib/Storage/SFTP.php
+++ b/apps/files_external/lib/Lib/Storage/SFTP.php
@@ -36,6 +36,7 @@
*/
namespace OCA\Files_External\Lib\Storage;
+
use Icewind\Streams\IteratorDirectory;
use Icewind\Streams\RetryWrapper;
use phpseclib\Net\SFTP\Stream;
diff --git a/apps/files_external/lib/Service/GlobalStoragesService.php b/apps/files_external/lib/Service/GlobalStoragesService.php
index ad148b19209..95a7c47665d 100644
--- a/apps/files_external/lib/Service/GlobalStoragesService.php
+++ b/apps/files_external/lib/Service/GlobalStoragesService.php
@@ -28,7 +28,6 @@
namespace OCA\Files_External\Service;
-
use OC\Files\Filesystem;
use OCA\Files_External\Lib\StorageConfig;
diff --git a/apps/files_external/lib/Settings/PersonalSection.php b/apps/files_external/lib/Settings/PersonalSection.php
index 72435349e59..da66b61eee9 100644
--- a/apps/files_external/lib/Settings/PersonalSection.php
+++ b/apps/files_external/lib/Settings/PersonalSection.php
@@ -24,7 +24,6 @@
namespace OCA\Files_External\Settings;
-
use OCA\Files_External\Service\BackendService;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCP\IL10N;
diff --git a/apps/files_external/tests/Service/DBConfigServiceTest.php b/apps/files_external/tests/Service/DBConfigServiceTest.php
index 6d6ae7d36b5..e3615f2edcd 100644
--- a/apps/files_external/tests/Service/DBConfigServiceTest.php
+++ b/apps/files_external/tests/Service/DBConfigServiceTest.php
@@ -24,7 +24,6 @@
namespace OCA\Files_External\Tests\Service;
-
use OCA\Files_External\Service\DBConfigService;
use OCP\IDBConnection;
use Test\TestCase;
diff --git a/apps/files_sharing/lib/Activity/Filter.php b/apps/files_sharing/lib/Activity/Filter.php
index b27b0d3993f..4df53745c7b 100644
--- a/apps/files_sharing/lib/Activity/Filter.php
+++ b/apps/files_sharing/lib/Activity/Filter.php
@@ -23,7 +23,6 @@
namespace OCA\Files_Sharing\Activity;
-
use OCP\Activity\IFilter;
use OCP\IL10N;
use OCP\IURLGenerator;
diff --git a/apps/files_sharing/lib/Activity/Settings/PublicLinks.php b/apps/files_sharing/lib/Activity/Settings/PublicLinks.php
index 9b882cee6c5..60094b656e1 100644
--- a/apps/files_sharing/lib/Activity/Settings/PublicLinks.php
+++ b/apps/files_sharing/lib/Activity/Settings/PublicLinks.php
@@ -23,7 +23,6 @@
namespace OCA\Files_Sharing\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files_sharing/lib/Activity/Settings/RemoteShare.php b/apps/files_sharing/lib/Activity/Settings/RemoteShare.php
index 41054afd318..319b4ebfef3 100644
--- a/apps/files_sharing/lib/Activity/Settings/RemoteShare.php
+++ b/apps/files_sharing/lib/Activity/Settings/RemoteShare.php
@@ -24,7 +24,6 @@
namespace OCA\Files_Sharing\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files_sharing/lib/Activity/Settings/Shared.php b/apps/files_sharing/lib/Activity/Settings/Shared.php
index 1889e7c6f03..1eb6270af3d 100644
--- a/apps/files_sharing/lib/Activity/Settings/Shared.php
+++ b/apps/files_sharing/lib/Activity/Settings/Shared.php
@@ -24,7 +24,6 @@
namespace OCA\Files_Sharing\Activity\Settings;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php b/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php
index 1d81e468c67..61952dad15f 100644
--- a/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php
+++ b/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php
@@ -23,7 +23,6 @@
namespace OCA\Files_Sharing\Collaboration;
-
use OCP\Collaboration\AutoComplete\ISorter;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
diff --git a/apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php b/apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php
index fe12fb034c0..1efd99706c2 100644
--- a/apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php
+++ b/apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php
@@ -24,7 +24,6 @@
namespace OCA\Files_Sharing\Tests\Collaboration;
-
use OCA\Files_Sharing\Collaboration\ShareRecipientSorter;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
diff --git a/apps/files_sharing/tests/ExternalStorageTest.php b/apps/files_sharing/tests/ExternalStorageTest.php
index bec6d5e5460..f2bf5738f36 100644
--- a/apps/files_sharing/tests/ExternalStorageTest.php
+++ b/apps/files_sharing/tests/ExternalStorageTest.php
@@ -27,6 +27,7 @@
*/
namespace OCA\Files_Sharing\Tests;
+
use OC\Federation\CloudId;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
diff --git a/apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php b/apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php
index b978658b428..29dafb5762d 100644
--- a/apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php
+++ b/apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php
@@ -26,6 +26,7 @@
*/
namespace OCA\Files_Sharing\Middleware;
+
use OCA\Files_Sharing\Controller\ExternalSharesController;
use OCA\Files_Sharing\Controller\ShareController;
use OCA\Files_Sharing\Exceptions\S2SException;
diff --git a/apps/files_sharing/tests/Migration/SetPasswordColumnTest.php b/apps/files_sharing/tests/Migration/SetPasswordColumnTest.php
index 4658cbdf021..cf50902d035 100644
--- a/apps/files_sharing/tests/Migration/SetPasswordColumnTest.php
+++ b/apps/files_sharing/tests/Migration/SetPasswordColumnTest.php
@@ -23,7 +23,6 @@
namespace OCA\Files_Sharing\Tests\Migration;
-
use OCA\Files_Sharing\Migration\SetPasswordColumn;
use OCA\Files_Sharing\Tests\TestCase;
use OCP\IConfig;
diff --git a/apps/files_sharing/tests/SharedMountTest.php b/apps/files_sharing/tests/SharedMountTest.php
index e70ac84f66d..d2610020ec2 100644
--- a/apps/files_sharing/tests/SharedMountTest.php
+++ b/apps/files_sharing/tests/SharedMountTest.php
@@ -29,6 +29,7 @@
*/
namespace OCA\Files_Sharing\Tests;
+
use OCP\IGroupManager;
use OCP\IUserManager;
diff --git a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
index 31f67974d30..7d0b18fb0d8 100644
--- a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
+++ b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
@@ -25,7 +25,6 @@
namespace OCA\Files_Trashbin\Events;
-
use OCP\EventDispatcher\Event;
use OCP\Files\Node;
diff --git a/apps/files_trashbin/lib/Sabre/TrashFolder.php b/apps/files_trashbin/lib/Sabre/TrashFolder.php
index f811d6e4119..ae654b7daed 100644
--- a/apps/files_trashbin/lib/Sabre/TrashFolder.php
+++ b/apps/files_trashbin/lib/Sabre/TrashFolder.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Files_Trashbin\Sabre;
-
class TrashFolder extends AbstractTrashFolder {
public function getName(): string {
return $this->data->getName() . '.d' . $this->getLastModified();
diff --git a/apps/files_trashbin/lib/Sabre/TrashFolderFile.php b/apps/files_trashbin/lib/Sabre/TrashFolderFile.php
index 0edd2ea9c74..63a032c8682 100644
--- a/apps/files_trashbin/lib/Sabre/TrashFolderFile.php
+++ b/apps/files_trashbin/lib/Sabre/TrashFolderFile.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Files_Trashbin\Sabre;
-
class TrashFolderFile extends AbstractTrashFile {
public function get() {
return $this->data->getStorage()->fopen($this->data->getInternalPath(), 'rb');
diff --git a/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php b/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
index dcd7d4fa35e..ae0076a5b0b 100644
--- a/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
+++ b/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
@@ -23,7 +23,7 @@
*/
namespace OCA\Files_Trashbin\Tests\BackgroundJob;
-
+
use OCA\Files_Trashbin\BackgroundJob\ExpireTrash;
use OCP\BackgroundJob\IJobList;
use OCP\IUserManager;
diff --git a/apps/files_trashbin/tests/Command/CleanUpTest.php b/apps/files_trashbin/tests/Command/CleanUpTest.php
index 4fa4287aae1..71391f5288d 100644
--- a/apps/files_trashbin/tests/Command/CleanUpTest.php
+++ b/apps/files_trashbin/tests/Command/CleanUpTest.php
@@ -26,7 +26,6 @@
namespace OCA\Files_Trashbin\Tests\Command;
-
use OC\User\Manager;
use OCA\Files_Trashbin\Command\CleanUp;
use OCP\Files\IRootFolder;
diff --git a/apps/files_versions/lib/Capabilities.php b/apps/files_versions/lib/Capabilities.php
index b1e7ec468d3..4761fdb477c 100644
--- a/apps/files_versions/lib/Capabilities.php
+++ b/apps/files_versions/lib/Capabilities.php
@@ -23,7 +23,7 @@
*
*/
-namespace OCA\Files_Versions;
+namespace OCA\Files_Versions;
use OCP\Capabilities\ICapability;
diff --git a/apps/files_versions/lib/Command/CleanUp.php b/apps/files_versions/lib/Command/CleanUp.php
index 6abf5bdb3c8..b5b8f3dcfdb 100644
--- a/apps/files_versions/lib/Command/CleanUp.php
+++ b/apps/files_versions/lib/Command/CleanUp.php
@@ -22,7 +22,6 @@
namespace OCA\Files_Versions\Command;
-
use OCP\Files\IRootFolder;
use OCP\IUserBackend;
use OCP\IUserManager;
diff --git a/apps/files_versions/tests/Command/CleanupTest.php b/apps/files_versions/tests/Command/CleanupTest.php
index 125985a2f92..1fad960f952 100644
--- a/apps/files_versions/tests/Command/CleanupTest.php
+++ b/apps/files_versions/tests/Command/CleanupTest.php
@@ -25,7 +25,6 @@
namespace OCA\Files_Versions\Tests\Command;
-
use OC\User\Manager;
use OCA\Files_Versions\Command\CleanUp;
use OCP\Files\IRootFolder;
diff --git a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
index 7c54bfda395..b57d1a00acc 100644
--- a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
+++ b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
@@ -32,7 +32,6 @@ declare(strict_types=1);
namespace OCA\LookupServerConnector\BackgroundJobs;
-
use OC\Security\IdentityProof\Signer;
use OCP\Accounts\IAccountManager;
use OCP\AppFramework\Utility\ITimeFactory;
diff --git a/apps/provisioning_api/lib/Controller/AppConfigController.php b/apps/provisioning_api/lib/Controller/AppConfigController.php
index fa5a695bd0f..b8a8cb4109f 100644
--- a/apps/provisioning_api/lib/Controller/AppConfigController.php
+++ b/apps/provisioning_api/lib/Controller/AppConfigController.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Provisioning_API\Controller;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCSController;
diff --git a/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php b/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php
index 79935b35df5..eb5ed1900b7 100644
--- a/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php
@@ -24,7 +24,6 @@
namespace OCA\Provisioning_API\Tests\Controller;
-
use OCA\Provisioning_API\Controller\AppConfigController;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/apps/provisioning_api/tests/Controller/AppsControllerTest.php b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
index 5a4a1e5b156..bfc7a2f623a 100644
--- a/apps/provisioning_api/tests/Controller/AppsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
@@ -28,7 +28,6 @@
namespace OCA\Provisioning_API\Tests\Controller;
-
use OCA\Provisioning_API\Controller\AppsController;
use OCP\App\IAppManager;
use OCP\IRequest;
diff --git a/apps/settings/lib/BackgroundJobs/VerifyUserData.php b/apps/settings/lib/BackgroundJobs/VerifyUserData.php
index e43f1e0e347..a5c46c603bf 100644
--- a/apps/settings/lib/BackgroundJobs/VerifyUserData.php
+++ b/apps/settings/lib/BackgroundJobs/VerifyUserData.php
@@ -29,7 +29,6 @@
namespace OCA\Settings\BackgroundJobs;
-
use OC\Accounts\AccountManager;
use OC\BackgroundJob\Job;
use OC\BackgroundJob\JobList;
diff --git a/apps/settings/lib/Settings/Personal/Additional.php b/apps/settings/lib/Settings/Personal/Additional.php
index 93c5df2dc1e..5fff714b245 100644
--- a/apps/settings/lib/Settings/Personal/Additional.php
+++ b/apps/settings/lib/Settings/Personal/Additional.php
@@ -24,7 +24,6 @@
namespace OCA\Settings\Settings\Personal;
-
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings;
diff --git a/apps/settings/tests/AppInfo/ApplicationTest.php b/apps/settings/tests/AppInfo/ApplicationTest.php
index f7d71635a67..794adc25d7f 100644
--- a/apps/settings/tests/AppInfo/ApplicationTest.php
+++ b/apps/settings/tests/AppInfo/ApplicationTest.php
@@ -25,7 +25,6 @@
namespace OCA\Settings\Tests\AppInfo;
-
use OC\User\Session;
use OCA\Settings\AppInfo\Application;
use OCA\Settings\Controller\AdminSettingsController;
diff --git a/apps/sharebymail/lib/AppInfo/Application.php b/apps/sharebymail/lib/AppInfo/Application.php
index 8e5cd4b35c7..d294f9716ea 100644
--- a/apps/sharebymail/lib/AppInfo/Application.php
+++ b/apps/sharebymail/lib/AppInfo/Application.php
@@ -26,7 +26,6 @@
namespace OCA\ShareByMail\AppInfo;
-
use OCA\ShareByMail\Capabilities;
use OCA\ShareByMail\Settings;
use OCP\AppFramework\App;
diff --git a/apps/sharebymail/lib/Capabilities.php b/apps/sharebymail/lib/Capabilities.php
index 2687c2f4506..e703b9b1e5f 100644
--- a/apps/sharebymail/lib/Capabilities.php
+++ b/apps/sharebymail/lib/Capabilities.php
@@ -23,7 +23,6 @@
namespace OCA\ShareByMail;
-
use OCP\Capabilities\ICapability;
class Capabilities implements ICapability {
diff --git a/apps/sharebymail/lib/Settings.php b/apps/sharebymail/lib/Settings.php
index 8a0761055c5..721050c83c4 100644
--- a/apps/sharebymail/lib/Settings.php
+++ b/apps/sharebymail/lib/Settings.php
@@ -23,7 +23,6 @@
namespace OCA\ShareByMail;
-
use OCA\ShareByMail\Settings\SettingsManager;
class Settings {
diff --git a/apps/sharebymail/lib/Settings/SettingsManager.php b/apps/sharebymail/lib/Settings/SettingsManager.php
index 348e8536f95..8e784e80237 100644
--- a/apps/sharebymail/lib/Settings/SettingsManager.php
+++ b/apps/sharebymail/lib/Settings/SettingsManager.php
@@ -23,7 +23,6 @@
namespace OCA\ShareByMail\Settings;
-
use OCP\IConfig;
class SettingsManager {
diff --git a/apps/sharebymail/tests/SettingsTest.php b/apps/sharebymail/tests/SettingsTest.php
index d3d1eab7655..220f455a26a 100644
--- a/apps/sharebymail/tests/SettingsTest.php
+++ b/apps/sharebymail/tests/SettingsTest.php
@@ -24,7 +24,6 @@
namespace OCA\ShareByMail\Tests;
-
use OCA\ShareByMail\Settings;
use OCA\ShareByMail\Settings\SettingsManager;
use Test\TestCase;
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index 7bdadd79c2b..d864af9d511 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -30,7 +30,6 @@
namespace OCA\ShareByMail\Tests;
-
use OC\CapabilitiesManager;
use OC\Mail\Message;
use OCA\ShareByMail\Settings\SettingsManager;
diff --git a/apps/systemtags/lib/Activity/Setting.php b/apps/systemtags/lib/Activity/Setting.php
index 09c3bdc8fa1..65e35a004ca 100644
--- a/apps/systemtags/lib/Activity/Setting.php
+++ b/apps/systemtags/lib/Activity/Setting.php
@@ -23,7 +23,6 @@
namespace OCA\SystemTags\Activity;
-
use OCP\Activity\ISetting;
use OCP\IL10N;
diff --git a/apps/systemtags/lib/Controller/LastUsedController.php b/apps/systemtags/lib/Controller/LastUsedController.php
index adf0c257eef..5100f6769c6 100644
--- a/apps/systemtags/lib/Controller/LastUsedController.php
+++ b/apps/systemtags/lib/Controller/LastUsedController.php
@@ -23,7 +23,6 @@
namespace OCA\SystemTags\Controller;
-
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
use OCP\IConfig;
diff --git a/apps/theming/tests/Controller/IconControllerTest.php b/apps/theming/tests/Controller/IconControllerTest.php
index c159c7237ea..59608f41a68 100644
--- a/apps/theming/tests/Controller/IconControllerTest.php
+++ b/apps/theming/tests/Controller/IconControllerTest.php
@@ -27,7 +27,6 @@
namespace OCA\Theming\Tests\Controller;
-
use OC\Files\SimpleFS\SimpleFile;
use OC\IntegrityCheck\Helpers\FileAccessHelper;
use OCA\Theming\Controller\IconController;
diff --git a/apps/twofactor_backupcodes/lib/Db/BackupCode.php b/apps/twofactor_backupcodes/lib/Db/BackupCode.php
index 54fbfef2bc2..bbd40bf3643 100644
--- a/apps/twofactor_backupcodes/lib/Db/BackupCode.php
+++ b/apps/twofactor_backupcodes/lib/Db/BackupCode.php
@@ -24,7 +24,6 @@
namespace OCA\TwoFactorBackupCodes\Db;
-
use OCP\AppFramework\Db\Entity;
/**
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php
index 00d7993891d..c7963a04ea6 100644
--- a/apps/updatenotification/lib/Notification/Notifier.php
+++ b/apps/updatenotification/lib/Notification/Notifier.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\UpdateNotification\Notification;
-
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\IURLGenerator;
diff --git a/apps/updatenotification/tests/Notification/BackgroundJobTest.php b/apps/updatenotification/tests/Notification/BackgroundJobTest.php
index 966ac1e2949..d52867e5c93 100644
--- a/apps/updatenotification/tests/Notification/BackgroundJobTest.php
+++ b/apps/updatenotification/tests/Notification/BackgroundJobTest.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\UpdateNotification\Tests\Notification;
-
use OC\Installer;
use OC\Updater\VersionCheck;
use OCA\UpdateNotification\Notification\BackgroundJob;
diff --git a/apps/updatenotification/tests/Notification/NotifierTest.php b/apps/updatenotification/tests/Notification/NotifierTest.php
index d744b7a97fd..6c36a8a74aa 100644
--- a/apps/updatenotification/tests/Notification/NotifierTest.php
+++ b/apps/updatenotification/tests/Notification/NotifierTest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCA\UpdateNotification\Tests\Notification;
-
use OCA\UpdateNotification\Notification\Notifier;
use OCP\IConfig;
use OCP\IGroupManager;
diff --git a/apps/user_ldap/lib/AccessFactory.php b/apps/user_ldap/lib/AccessFactory.php
index aa344893f03..04d72a16f29 100644
--- a/apps/user_ldap/lib/AccessFactory.php
+++ b/apps/user_ldap/lib/AccessFactory.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP;
-
use OCA\User_LDAP\User\Manager;
use OCP\IConfig;
use OCP\IUserManager;
diff --git a/apps/user_ldap/lib/BackendUtility.php b/apps/user_ldap/lib/BackendUtility.php
index 8922f6e8cfe..a4eb739ab66 100644
--- a/apps/user_ldap/lib/BackendUtility.php
+++ b/apps/user_ldap/lib/BackendUtility.php
@@ -25,7 +25,6 @@
namespace OCA\User_LDAP;
-
abstract class BackendUtility {
protected $access;
diff --git a/apps/user_ldap/lib/Command/DeleteConfig.php b/apps/user_ldap/lib/Command/DeleteConfig.php
index 7739580740f..f62caf2902a 100644
--- a/apps/user_ldap/lib/Command/DeleteConfig.php
+++ b/apps/user_ldap/lib/Command/DeleteConfig.php
@@ -25,7 +25,6 @@
namespace OCA\User_LDAP\Command;
-
use OCA\User_LDAP\Helper;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
diff --git a/apps/user_ldap/lib/ConnectionFactory.php b/apps/user_ldap/lib/ConnectionFactory.php
index fceed8b2532..48275ff8c3c 100644
--- a/apps/user_ldap/lib/ConnectionFactory.php
+++ b/apps/user_ldap/lib/ConnectionFactory.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP;
-
class ConnectionFactory {
/** @var ILDAPWrapper */
private $ldap;
diff --git a/apps/user_ldap/lib/ILDAPGroupPlugin.php b/apps/user_ldap/lib/ILDAPGroupPlugin.php
index 78dc39ad299..3a5accece26 100644
--- a/apps/user_ldap/lib/ILDAPGroupPlugin.php
+++ b/apps/user_ldap/lib/ILDAPGroupPlugin.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP;
-
interface ILDAPGroupPlugin {
/**
diff --git a/apps/user_ldap/lib/ILDAPUserPlugin.php b/apps/user_ldap/lib/ILDAPUserPlugin.php
index 26dbffb3806..29397b6c205 100644
--- a/apps/user_ldap/lib/ILDAPUserPlugin.php
+++ b/apps/user_ldap/lib/ILDAPUserPlugin.php
@@ -24,7 +24,6 @@
namespace OCA\User_LDAP;
-
interface ILDAPUserPlugin {
/**
diff --git a/apps/user_ldap/lib/LDAPProvider.php b/apps/user_ldap/lib/LDAPProvider.php
index 31bf2531a96..1916e10b8cd 100644
--- a/apps/user_ldap/lib/LDAPProvider.php
+++ b/apps/user_ldap/lib/LDAPProvider.php
@@ -28,7 +28,6 @@
namespace OCA\User_LDAP;
-
use OCA\User_LDAP\User\DeletedUsersIndex;
use OCP\IServerContainer;
use OCP\LDAP\IDeletionFlagSupport;
diff --git a/apps/user_ldap/lib/Migration/UUIDFix.php b/apps/user_ldap/lib/Migration/UUIDFix.php
index c241a8a28a0..f6359c2e882 100644
--- a/apps/user_ldap/lib/Migration/UUIDFix.php
+++ b/apps/user_ldap/lib/Migration/UUIDFix.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP\Migration;
-
use OC\BackgroundJob\QueuedJob;
use OCA\User_LDAP\Mapping\AbstractMapping;
use OCA\User_LDAP\Proxy;
diff --git a/apps/user_ldap/lib/Notification/Notifier.php b/apps/user_ldap/lib/Notification/Notifier.php
index eb4a8296548..773242a635b 100644
--- a/apps/user_ldap/lib/Notification/Notifier.php
+++ b/apps/user_ldap/lib/Notification/Notifier.php
@@ -25,7 +25,6 @@
namespace OCA\User_LDAP\Notification;
-
use OCP\L10N\IFactory;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
diff --git a/apps/user_ldap/tests/ConnectionTest.php b/apps/user_ldap/tests/ConnectionTest.php
index 59e6476ab45..8a4ec38e4bd 100644
--- a/apps/user_ldap/tests/ConnectionTest.php
+++ b/apps/user_ldap/tests/ConnectionTest.php
@@ -29,6 +29,7 @@
*/
namespace OCA\User_LDAP\Tests;
+
use OCA\User_LDAP\Connection;
use OCA\User_LDAP\ILDAPWrapper;
diff --git a/apps/user_ldap/tests/GroupLDAPPluginTest.php b/apps/user_ldap/tests/GroupLDAPPluginTest.php
index e971b073cc5..73c5271960b 100644
--- a/apps/user_ldap/tests/GroupLDAPPluginTest.php
+++ b/apps/user_ldap/tests/GroupLDAPPluginTest.php
@@ -24,7 +24,6 @@
namespace OCA\User_LDAP\Tests;
-
use OCA\User_LDAP\GroupPluginManager;
use OCP\GroupInterface;
diff --git a/apps/user_ldap/tests/HelperTest.php b/apps/user_ldap/tests/HelperTest.php
index c0fa693ff48..a803e5d284a 100644
--- a/apps/user_ldap/tests/HelperTest.php
+++ b/apps/user_ldap/tests/HelperTest.php
@@ -25,7 +25,6 @@
namespace OCA\User_LDAP\Tests;
-
use OCA\User_LDAP\Helper;
use OCP\IConfig;
diff --git a/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php b/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
index 385d2c29610..50c45b49048 100644
--- a/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
+++ b/apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
@@ -26,7 +26,6 @@
namespace OCA\User_LDAP\Tests\Integration;
-
use OC\ServerNotAvailableException;
use OCA\User_LDAP\LDAP;
diff --git a/apps/user_ldap/tests/LDAPGroupPluginDummy.php b/apps/user_ldap/tests/LDAPGroupPluginDummy.php
index 224e8f93f5a..996f6f4a3f0 100644
--- a/apps/user_ldap/tests/LDAPGroupPluginDummy.php
+++ b/apps/user_ldap/tests/LDAPGroupPluginDummy.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP\Tests;
-
use OCA\User_LDAP\ILDAPGroupPlugin;
class LDAPGroupPluginDummy implements ILDAPGroupPlugin {
diff --git a/apps/user_ldap/tests/LDAPUserPluginDummy.php b/apps/user_ldap/tests/LDAPUserPluginDummy.php
index 9ab7479a728..609742d872d 100644
--- a/apps/user_ldap/tests/LDAPUserPluginDummy.php
+++ b/apps/user_ldap/tests/LDAPUserPluginDummy.php
@@ -23,7 +23,6 @@
namespace OCA\User_LDAP\Tests;
-
use OCA\User_LDAP\ILDAPUserPlugin;
class LDAPUserPluginDummy implements ILDAPUserPlugin {
diff --git a/apps/user_ldap/tests/UserLDAPPluginTest.php b/apps/user_ldap/tests/UserLDAPPluginTest.php
index 1c624b7d340..58bc63e442f 100644
--- a/apps/user_ldap/tests/UserLDAPPluginTest.php
+++ b/apps/user_ldap/tests/UserLDAPPluginTest.php
@@ -24,7 +24,6 @@
namespace OCA\User_LDAP\Tests;
-
use OC\User\Backend;
use OCA\User_LDAP\UserPluginManager;
diff --git a/apps/workflowengine/lib/Check/AbstractStringCheck.php b/apps/workflowengine/lib/Check/AbstractStringCheck.php
index e86ac6bec17..4b294678fbd 100644
--- a/apps/workflowengine/lib/Check/AbstractStringCheck.php
+++ b/apps/workflowengine/lib/Check/AbstractStringCheck.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\IL10N;
use OCP\WorkflowEngine\ICheck;
use OCP\WorkflowEngine\IManager;
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php
index a684785911b..9d378379e5e 100644
--- a/apps/workflowengine/lib/Check/FileMimeType.php
+++ b/apps/workflowengine/lib/Check/FileMimeType.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCA\WorkflowEngine\Entity\File;
use OCP\Files\IMimeTypeDetector;
use OCP\Files\Storage\IStorage;
diff --git a/apps/workflowengine/lib/Check/FileSize.php b/apps/workflowengine/lib/Check/FileSize.php
index ce1bd4718f9..741426082dc 100644
--- a/apps/workflowengine/lib/Check/FileSize.php
+++ b/apps/workflowengine/lib/Check/FileSize.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCA\WorkflowEngine\Entity\File;
use OCP\IL10N;
use OCP\IRequest;
diff --git a/apps/workflowengine/lib/Check/FileSystemTags.php b/apps/workflowengine/lib/Check/FileSystemTags.php
index e7e114881ad..03a55b3caca 100644
--- a/apps/workflowengine/lib/Check/FileSystemTags.php
+++ b/apps/workflowengine/lib/Check/FileSystemTags.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCA\WorkflowEngine\Entity\File;
use OCP\Files\Cache\ICache;
use OCP\Files\IHomeStorage;
diff --git a/apps/workflowengine/lib/Check/RequestRemoteAddress.php b/apps/workflowengine/lib/Check/RequestRemoteAddress.php
index 00029771b52..61022a2513b 100644
--- a/apps/workflowengine/lib/Check/RequestRemoteAddress.php
+++ b/apps/workflowengine/lib/Check/RequestRemoteAddress.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\IL10N;
use OCP\IRequest;
use OCP\WorkflowEngine\ICheck;
diff --git a/apps/workflowengine/lib/Check/RequestTime.php b/apps/workflowengine/lib/Check/RequestTime.php
index a6ab4a961ed..aa35e8b84c9 100644
--- a/apps/workflowengine/lib/Check/RequestTime.php
+++ b/apps/workflowengine/lib/Check/RequestTime.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IL10N;
use OCP\WorkflowEngine\ICheck;
diff --git a/apps/workflowengine/lib/Check/RequestURL.php b/apps/workflowengine/lib/Check/RequestURL.php
index 36d41c101f2..4c933c19ace 100644
--- a/apps/workflowengine/lib/Check/RequestURL.php
+++ b/apps/workflowengine/lib/Check/RequestURL.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\IL10N;
use OCP\IRequest;
diff --git a/apps/workflowengine/lib/Check/RequestUserAgent.php b/apps/workflowengine/lib/Check/RequestUserAgent.php
index ddc222833dd..24dfb1b906e 100644
--- a/apps/workflowengine/lib/Check/RequestUserAgent.php
+++ b/apps/workflowengine/lib/Check/RequestUserAgent.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\IL10N;
use OCP\IRequest;
diff --git a/apps/workflowengine/lib/Check/UserGroupMembership.php b/apps/workflowengine/lib/Check/UserGroupMembership.php
index 8839820050a..27b2ce1879c 100644
--- a/apps/workflowengine/lib/Check/UserGroupMembership.php
+++ b/apps/workflowengine/lib/Check/UserGroupMembership.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Check;
-
use OCP\IGroupManager;
use OCP\IL10N;
use OCP\IUser;
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php
index aa6f4baef89..2a5128f76b6 100644
--- a/apps/workflowengine/tests/ManagerTest.php
+++ b/apps/workflowengine/tests/ManagerTest.php
@@ -21,7 +21,6 @@
namespace OCA\WorkflowEngine\Tests;
-
use OC\L10N\L10N;
use OCA\WorkflowEngine\Entity\File;
use OCA\WorkflowEngine\Helper\ScopeContext;
diff --git a/core/Command/Db/Migrations/ExecuteCommand.php b/core/Command/Db/Migrations/ExecuteCommand.php
index 1104818e710..0f2709646ba 100644
--- a/core/Command/Db/Migrations/ExecuteCommand.php
+++ b/core/Command/Db/Migrations/ExecuteCommand.php
@@ -23,7 +23,6 @@
namespace OC\Core\Command\Db\Migrations;
-
use OC\DB\MigrationService;
use OC\Migration\ConsoleOutput;
use OCP\App\IAppManager;
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index 6e3b26f583c..a40cd800dff 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -25,7 +25,6 @@
namespace OC\Core\Command\Db\Migrations;
-
use OC\DB\MigrationService;
use OC\Migration\ConsoleOutput;
use OCP\App\IAppManager;
diff --git a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php
index 34c91ad6b04..b3d826c1e5b 100644
--- a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php
+++ b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php
@@ -24,7 +24,6 @@
namespace OC\Core\Command\Db\Migrations;
-
use Doctrine\DBAL\Schema\Schema;
use OC\DB\MDB2SchemaReader;
use OC\DB\MigrationService;
diff --git a/core/Command/Db/Migrations/MigrateCommand.php b/core/Command/Db/Migrations/MigrateCommand.php
index e484dbd3f4f..c9ba604ae7e 100644
--- a/core/Command/Db/Migrations/MigrateCommand.php
+++ b/core/Command/Db/Migrations/MigrateCommand.php
@@ -22,7 +22,6 @@
namespace OC\Core\Command\Db\Migrations;
-
use OC\DB\MigrationService;
use OC\Migration\ConsoleOutput;
use OCP\IDBConnection;
diff --git a/core/Command/Encryption/SetDefaultModule.php b/core/Command/Encryption/SetDefaultModule.php
index eb9f3718b1d..5f73792d99b 100644
--- a/core/Command/Encryption/SetDefaultModule.php
+++ b/core/Command/Encryption/SetDefaultModule.php
@@ -23,7 +23,6 @@
namespace OC\Core\Command\Encryption;
-
use OCP\Encryption\IManager;
use OCP\IConfig;
use Symfony\Component\Console\Command\Command;
diff --git a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
index aa252b8bbb6..39f1bb48812 100644
--- a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
+++ b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Core\Command\Maintenance\Mimetype;
-
class GenerateMimetypeFileBuilder
{
/**
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php
index c1b09300033..fc1c32a475f 100644
--- a/lib/private/Activity/Manager.php
+++ b/lib/private/Activity/Manager.php
@@ -28,7 +28,6 @@
namespace OC\Activity;
-
use OCP\Activity\IConsumer;
use OCP\Activity\IEvent;
use OCP\Activity\IFilter;
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php
index a41230e4a97..e62b000938b 100644
--- a/lib/private/AllConfig.php
+++ b/lib/private/AllConfig.php
@@ -31,6 +31,7 @@
*/
namespace OC;
+
use OC\Cache\CappedMemoryCache;
use OCP\IDBConnection;
use OCP\PreConditionNotMetException;
diff --git a/lib/private/Authentication/Token/INamedToken.php b/lib/private/Authentication/Token/INamedToken.php
index 99eb338e8d4..30755879963 100644
--- a/lib/private/Authentication/Token/INamedToken.php
+++ b/lib/private/Authentication/Token/INamedToken.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Authentication\Token;
-
interface INamedToken extends IToken {
/**
* Set token name
diff --git a/lib/private/BackgroundJob/QueuedJob.php b/lib/private/BackgroundJob/QueuedJob.php
index a01e666eb57..08fae26630f 100644
--- a/lib/private/BackgroundJob/QueuedJob.php
+++ b/lib/private/BackgroundJob/QueuedJob.php
@@ -23,6 +23,7 @@
*/
namespace OC\BackgroundJob;
+
use OCP\ILogger;
/**
diff --git a/lib/private/BackgroundJob/TimedJob.php b/lib/private/BackgroundJob/TimedJob.php
index 755607bfb6d..0da8c4ad123 100644
--- a/lib/private/BackgroundJob/TimedJob.php
+++ b/lib/private/BackgroundJob/TimedJob.php
@@ -23,6 +23,7 @@
*/
namespace OC\BackgroundJob;
+
use OCP\ILogger;
/**
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index 79204043bd0..493c35a46d4 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 3a3759b5794..bafc383f746 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
index 2f024119c26..a922befec76 100644
--- a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
@@ -24,7 +24,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index 5173e889b9c..b41e6441f84 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/SearchResult.php b/lib/private/Collaboration/Collaborators/SearchResult.php
index 768089c909a..1ee37e65589 100644
--- a/lib/private/Collaboration/Collaborators/SearchResult.php
+++ b/lib/private/Collaboration/Collaborators/SearchResult.php
@@ -24,7 +24,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php
index a344e557ac7..bed3da8521d 100644
--- a/lib/private/Collaboration/Collaborators/UserPlugin.php
+++ b/lib/private/Collaboration/Collaborators/UserPlugin.php
@@ -27,7 +27,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Resources/Collection.php b/lib/private/Collaboration/Resources/Collection.php
index b890e52f33a..4fb0e49f16e 100644
--- a/lib/private/Collaboration/Resources/Collection.php
+++ b/lib/private/Collaboration/Resources/Collection.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use Doctrine\DBAL\Exception\ConstraintViolationException;
use OCP\Collaboration\Resources\ICollection;
use OCP\Collaboration\Resources\IManager;
diff --git a/lib/private/Collaboration/Resources/Listener.php b/lib/private/Collaboration/Resources/Listener.php
index 41a24960a66..a465db1fed9 100644
--- a/lib/private/Collaboration/Resources/Listener.php
+++ b/lib/private/Collaboration/Resources/Listener.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use OCP\Collaboration\Resources\IManager;
use OCP\IGroup;
use OCP\IUser;
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index 35ae0330e51..98cc25916fe 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCP\Collaboration\Resources\CollectionException;
use OCP\Collaboration\Resources\ICollection;
diff --git a/lib/private/Collaboration/Resources/Resource.php b/lib/private/Collaboration/Resources/Resource.php
index 19d7f3c0831..702bc2faf46 100644
--- a/lib/private/Collaboration/Resources/Resource.php
+++ b/lib/private/Collaboration/Resources/Resource.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use OCP\Collaboration\Resources\ICollection;
use OCP\Collaboration\Resources\IManager;
use OCP\Collaboration\Resources\IResource;
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php
index 946b864ac62..72e3e392e0b 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -23,7 +23,6 @@
namespace OC\Console;
-
use OCP\IConfig;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Formatter\OutputFormatterStyleInterface;
diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php
index 628c91dbb9e..0febdd7f1f8 100644
--- a/lib/private/DB/AdapterPgSql.php
+++ b/lib/private/DB/AdapterPgSql.php
@@ -26,7 +26,6 @@
namespace OC\DB;
-
class AdapterPgSql extends Adapter {
protected $compatModePre9_5 = null;
diff --git a/lib/private/DB/MigrationException.php b/lib/private/DB/MigrationException.php
index 9e758f4e860..76d769e08be 100644
--- a/lib/private/DB/MigrationException.php
+++ b/lib/private/DB/MigrationException.php
@@ -23,7 +23,6 @@
namespace OC\DB;
-
class MigrationException extends \Exception {
private $table;
diff --git a/lib/private/DB/PgSqlTools.php b/lib/private/DB/PgSqlTools.php
index 27b6bbc9aeb..724344ac2a1 100644
--- a/lib/private/DB/PgSqlTools.php
+++ b/lib/private/DB/PgSqlTools.php
@@ -25,6 +25,7 @@
*/
namespace OC\DB;
+
use OCP\IConfig;
/**
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
index 666e99e7f8e..e7df321b102 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\Connection;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
index 12719b2aaad..2aa007dba04 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\QueryBuilder\QueryFunction;
use OCP\DB\QueryBuilder\ILiteral;
use OCP\DB\QueryBuilder\IParameter;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
index a59cd591db0..fbf76da8690 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\QueryBuilder\QueryFunction;
use OCP\DB\QueryBuilder\IQueryBuilder;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
index b82b4d9eb3f..1fa0d79663a 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
@@ -23,7 +23,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
class SqliteExpressionBuilder extends ExpressionBuilder {
/**
* @inheritdoc
diff --git a/lib/private/Dashboard/DashboardManager.php b/lib/private/Dashboard/DashboardManager.php
index 3f2b04bb96d..6491779bce7 100644
--- a/lib/private/Dashboard/DashboardManager.php
+++ b/lib/private/Dashboard/DashboardManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\Dashboard;
-
use OCP\Dashboard\Exceptions\DashboardAppNotAvailableException;
use OCP\Dashboard\IDashboardManager;
use OCP\Dashboard\Model\IWidgetConfig;
diff --git a/lib/private/DateTimeZone.php b/lib/private/DateTimeZone.php
index 23fb8ae272f..d12dbdf2a37 100644
--- a/lib/private/DateTimeZone.php
+++ b/lib/private/DateTimeZone.php
@@ -24,7 +24,6 @@
namespace OC;
-
use OCP\IConfig;
use OCP\IDateTimeZone;
use OCP\ILogger;
diff --git a/lib/private/DirectEditing/Token.php b/lib/private/DirectEditing/Token.php
index add6f5b471c..1c0b99b757d 100644
--- a/lib/private/DirectEditing/Token.php
+++ b/lib/private/DirectEditing/Token.php
@@ -23,7 +23,6 @@
namespace OC\DirectEditing;
-
use OCP\DirectEditing\IToken;
use OCP\Files\File;
diff --git a/lib/private/Encryption/EncryptionWrapper.php b/lib/private/Encryption/EncryptionWrapper.php
index e5bc0e868bd..6389e996c1d 100644
--- a/lib/private/Encryption/EncryptionWrapper.php
+++ b/lib/private/Encryption/EncryptionWrapper.php
@@ -24,7 +24,6 @@
namespace OC\Encryption;
-
use OC\Files\Filesystem;
use OC\Files\Storage\Wrapper\Encryption;
use OC\Files\View;
diff --git a/lib/private/Files/Cache/Watcher.php b/lib/private/Files/Cache/Watcher.php
index cd375572b08..6270f03ca92 100644
--- a/lib/private/Files/Cache/Watcher.php
+++ b/lib/private/Files/Cache/Watcher.php
@@ -26,6 +26,7 @@
*/
namespace OC\Files\Cache;
+
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Cache\IWatcher;
diff --git a/lib/private/Files/Cache/Wrapper/JailPropagator.php b/lib/private/Files/Cache/Wrapper/JailPropagator.php
index 9322d9e610b..956d187783a 100644
--- a/lib/private/Files/Cache/Wrapper/JailPropagator.php
+++ b/lib/private/Files/Cache/Wrapper/JailPropagator.php
@@ -24,7 +24,6 @@
namespace OC\Files\Cache\Wrapper;
-
use OC\Files\Cache\Propagator;
use OC\Files\Storage\Wrapper\Jail;
diff --git a/lib/private/Files/Config/CachedMountFileInfo.php b/lib/private/Files/Config/CachedMountFileInfo.php
index 99df663a4e6..7bae52bb65d 100644
--- a/lib/private/Files/Config/CachedMountFileInfo.php
+++ b/lib/private/Files/Config/CachedMountFileInfo.php
@@ -24,7 +24,6 @@
namespace OC\Files\Config;
-
use OCP\Files\Config\ICachedMountFileInfo;
use OCP\IUser;
diff --git a/lib/private/Files/ObjectStore/NoopScanner.php b/lib/private/Files/ObjectStore/NoopScanner.php
index 2625703b5c4..7a253c82c5b 100644
--- a/lib/private/Files/ObjectStore/NoopScanner.php
+++ b/lib/private/Files/ObjectStore/NoopScanner.php
@@ -26,6 +26,7 @@
*/
namespace OC\Files\ObjectStore;
+
use OC\Files\Cache\Scanner;
use OC\Files\Storage\Storage;
diff --git a/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php b/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
index 1343531e384..635d0908c9a 100644
--- a/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
+++ b/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\Files\ObjectStore;
-
use OpenStack\Identity\v2\Service;
class SwiftV2CachingAuthService extends Service {
diff --git a/lib/private/Files/Search/SearchOrder.php b/lib/private/Files/Search/SearchOrder.php
index 7a7eb01ed94..4bff8ba1b6c 100644
--- a/lib/private/Files/Search/SearchOrder.php
+++ b/lib/private/Files/Search/SearchOrder.php
@@ -23,7 +23,6 @@
namespace OC\Files\Search;
-
use OCP\Files\Search\ISearchOrder;
class SearchOrder implements ISearchOrder {
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php
index 748253f21bb..7e5a0cef4d7 100644
--- a/lib/private/Files/Storage/Storage.php
+++ b/lib/private/Files/Storage/Storage.php
@@ -23,6 +23,7 @@
*/
namespace OC\Files\Storage;
+
use OCP\Lock\ILockingProvider;
/**
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php
index a67d23f6af6..4af70d97260 100644
--- a/lib/private/FullTextSearch/FullTextSearchManager.php
+++ b/lib/private/FullTextSearch/FullTextSearchManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch;
-
use OCP\FullTextSearch\Exceptions\FullTextSearchAppNotAvailableException;
use OCP\FullTextSearch\IFullTextSearchManager;
use OCP\FullTextSearch\Model\IIndex;
diff --git a/lib/private/FullTextSearch/Model/DocumentAccess.php b/lib/private/FullTextSearch/Model/DocumentAccess.php
index 2b74991b717..d4c7a06d079 100644
--- a/lib/private/FullTextSearch/Model/DocumentAccess.php
+++ b/lib/private/FullTextSearch/Model/DocumentAccess.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\IDocumentAccess;
diff --git a/lib/private/FullTextSearch/Model/IndexDocument.php b/lib/private/FullTextSearch/Model/IndexDocument.php
index 048696e4d4b..7c7847b7463 100644
--- a/lib/private/FullTextSearch/Model/IndexDocument.php
+++ b/lib/private/FullTextSearch/Model/IndexDocument.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\IDocumentAccess;
use OCP\FullTextSearch\Model\IIndex;
diff --git a/lib/private/FullTextSearch/Model/SearchOption.php b/lib/private/FullTextSearch/Model/SearchOption.php
index a61e823fb74..1ff3fbba272 100644
--- a/lib/private/FullTextSearch/Model/SearchOption.php
+++ b/lib/private/FullTextSearch/Model/SearchOption.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchOption;
diff --git a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
index 2ffc2ee359d..19be494d82f 100644
--- a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
+++ b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchRequestSimpleQuery;
diff --git a/lib/private/FullTextSearch/Model/SearchTemplate.php b/lib/private/FullTextSearch/Model/SearchTemplate.php
index 9060a82046f..4940e57c281 100644
--- a/lib/private/FullTextSearch/Model/SearchTemplate.php
+++ b/lib/private/FullTextSearch/Model/SearchTemplate.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\IFullTextSearchProvider;
use OCP\FullTextSearch\Model\ISearchOption;
diff --git a/lib/private/GlobalScale/Config.php b/lib/private/GlobalScale/Config.php
index c1a70c94647..f886ac8ff84 100644
--- a/lib/private/GlobalScale/Config.php
+++ b/lib/private/GlobalScale/Config.php
@@ -23,7 +23,6 @@
namespace OC\GlobalScale;
-
use OCP\IConfig;
class Config implements \OCP\GlobalScale\IConfig {
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index 5fccb36acb1..57b4e9353ef 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -35,6 +35,7 @@
*/
namespace OC\Log;
+
use OC\SystemConfig;
use OCP\ILogger;
use OCP\Log\IFileBased;
diff --git a/lib/private/Log/Rotate.php b/lib/private/Log/Rotate.php
index c7103b46075..a5fc7d5a0cd 100644
--- a/lib/private/Log/Rotate.php
+++ b/lib/private/Log/Rotate.php
@@ -24,6 +24,7 @@
*/
namespace OC\Log;
+
use OCP\Log\RotationTrait;
/**
diff --git a/lib/private/Migration/ConsoleOutput.php b/lib/private/Migration/ConsoleOutput.php
index 2efe898a01e..2ad42843dba 100644
--- a/lib/private/Migration/ConsoleOutput.php
+++ b/lib/private/Migration/ConsoleOutput.php
@@ -22,7 +22,6 @@
namespace OC\Migration;
-
use OCP\Migration\IOutput;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\OutputInterface;
diff --git a/lib/private/Migration/SimpleOutput.php b/lib/private/Migration/SimpleOutput.php
index 7f44db9e30a..11f2ed2837c 100644
--- a/lib/private/Migration/SimpleOutput.php
+++ b/lib/private/Migration/SimpleOutput.php
@@ -22,7 +22,6 @@
namespace OC\Migration;
-
use OCP\ILogger;
use OCP\Migration\IOutput;
diff --git a/lib/private/Notification/Action.php b/lib/private/Notification/Action.php
index 93029bcd7ac..a04f622c3cb 100644
--- a/lib/private/Notification/Action.php
+++ b/lib/private/Notification/Action.php
@@ -25,7 +25,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\Notification\IAction;
class Action implements IAction {
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index b8b549663b1..3a19b0f49e6 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\AppFramework\QueryException;
use OCP\ILogger;
use OCP\Notification\AlreadyProcessedException;
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php
index 3e3a15a4f8a..8ac4e19b7d1 100644
--- a/lib/private/Notification/Notification.php
+++ b/lib/private/Notification/Notification.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\Notification\IAction;
use OCP\Notification\INotification;
use OCP\RichObjectStrings\InvalidObjectExeption;
diff --git a/lib/private/Remote/Api/ApiCollection.php b/lib/private/Remote/Api/ApiCollection.php
index c1f2a732a8e..9ce4c7d0661 100644
--- a/lib/private/Remote/Api/ApiCollection.php
+++ b/lib/private/Remote/Api/ApiCollection.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use OCP\Http\Client\IClientService;
use OCP\Remote\Api\IApiCollection;
use OCP\Remote\ICredentials;
diff --git a/lib/private/Remote/Api/ApiFactory.php b/lib/private/Remote/Api/ApiFactory.php
index 62f20e2787c..81bc41f9269 100644
--- a/lib/private/Remote/Api/ApiFactory.php
+++ b/lib/private/Remote/Api/ApiFactory.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use OCP\Http\Client\IClientService;
use OCP\Remote\Api\IApiFactory;
use OCP\Remote\ICredentials;
diff --git a/lib/private/Remote/Api/NotFoundException.php b/lib/private/Remote/Api/NotFoundException.php
index 429d3e87a10..51ecfabd402 100644
--- a/lib/private/Remote/Api/NotFoundException.php
+++ b/lib/private/Remote/Api/NotFoundException.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
class NotFoundException extends \Exception {
}
diff --git a/lib/private/Remote/Api/OCS.php b/lib/private/Remote/Api/OCS.php
index 553ac92df7a..6a32c83e086 100644
--- a/lib/private/Remote/Api/OCS.php
+++ b/lib/private/Remote/Api/OCS.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use GuzzleHttp\Exception\ClientException;
use OC\ForbiddenException;
use OC\Remote\User;
diff --git a/lib/private/Remote/Credentials.php b/lib/private/Remote/Credentials.php
index 5a4654436b8..09f5e1cda78 100644
--- a/lib/private/Remote/Credentials.php
+++ b/lib/private/Remote/Credentials.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Remote\ICredentials;
class Credentials implements ICredentials {
diff --git a/lib/private/Remote/InstanceFactory.php b/lib/private/Remote/InstanceFactory.php
index 9d42353e792..a4445a8306b 100644
--- a/lib/private/Remote/InstanceFactory.php
+++ b/lib/private/Remote/InstanceFactory.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Http\Client\IClientService;
use OCP\ICache;
use OCP\Remote\IInstanceFactory;
diff --git a/lib/private/Remote/User.php b/lib/private/Remote/User.php
index ef26171859a..5519d7dc22f 100644
--- a/lib/private/Remote/User.php
+++ b/lib/private/Remote/User.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Remote\IUser;
class User implements IUser {
diff --git a/lib/private/RichObjectStrings/Validator.php b/lib/private/RichObjectStrings/Validator.php
index 0a651256d3a..c80da2914a4 100644
--- a/lib/private/RichObjectStrings/Validator.php
+++ b/lib/private/RichObjectStrings/Validator.php
@@ -25,7 +25,6 @@
namespace OC\RichObjectStrings;
-
use OCP\RichObjectStrings\Definitions;
use OCP\RichObjectStrings\InvalidObjectExeption;
use OCP\RichObjectStrings\IValidator;
diff --git a/lib/private/Search.php b/lib/private/Search.php
index ca9024bdd78..598eda82a54 100644
--- a/lib/private/Search.php
+++ b/lib/private/Search.php
@@ -27,6 +27,7 @@
*/
namespace OC;
+
use OCP\ISearch;
use OCP\Search\PagedProvider;
use OCP\Search\Provider;
diff --git a/lib/private/Search/Provider/File.php b/lib/private/Search/Provider/File.php
index afd37cfe703..734878be982 100644
--- a/lib/private/Search/Provider/File.php
+++ b/lib/private/Search/Provider/File.php
@@ -27,6 +27,7 @@
*/
namespace OC\Search\Provider;
+
use OC\Files\Filesystem;
/**
diff --git a/lib/private/Search/Result/File.php b/lib/private/Search/Result/File.php
index 09d2afb2617..1321c1cfc59 100644
--- a/lib/private/Search/Result/File.php
+++ b/lib/private/Search/Result/File.php
@@ -24,6 +24,7 @@
*/
namespace OC\Search\Result;
+
use OCP\Files\FileInfo;
use OCP\Files\Folder;
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php
index 451d5074b69..a558f24111b 100644
--- a/lib/private/Security/TrustedDomainHelper.php
+++ b/lib/private/Security/TrustedDomainHelper.php
@@ -26,6 +26,7 @@
*/
namespace OC\Security;
+
use OC\AppFramework\Http\Request;
use OCP\IConfig;
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php
index 8f2f2a93503..13fb70ddd44 100644
--- a/lib/private/ServerContainer.php
+++ b/lib/private/ServerContainer.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC;
-
use OC\AppFramework\App;
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Utility\SimpleContainer;
diff --git a/lib/private/ServerNotAvailableException.php b/lib/private/ServerNotAvailableException.php
index a78d470e2a6..1dd93aefb20 100644
--- a/lib/private/ServerNotAvailableException.php
+++ b/lib/private/ServerNotAvailableException.php
@@ -22,7 +22,6 @@
namespace OC;
-
class ServerNotAvailableException extends \Exception {
}
diff --git a/lib/private/Share20/Exception/ProviderException.php b/lib/private/Share20/Exception/ProviderException.php
index 360f42f63f0..7d3f79f7120 100644
--- a/lib/private/Share20/Exception/ProviderException.php
+++ b/lib/private/Share20/Exception/ProviderException.php
@@ -22,7 +22,6 @@
namespace OC\Share20\Exception;
-
class ProviderException extends \Exception {
}
diff --git a/lib/private/SystemConfig.php b/lib/private/SystemConfig.php
index 321ec61e048..7f0114ec821 100644
--- a/lib/private/SystemConfig.php
+++ b/lib/private/SystemConfig.php
@@ -27,7 +27,6 @@
namespace OC;
-
use OCP\IConfig;
/**
diff --git a/lib/public/Activity/IEventMerger.php b/lib/public/Activity/IEventMerger.php
index a8f75875c6f..90d9cecb756 100644
--- a/lib/public/Activity/IEventMerger.php
+++ b/lib/public/Activity/IEventMerger.php
@@ -23,7 +23,6 @@
namespace OCP\Activity;
-
/**
* Interface EventMerger
*
diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php
index d6bf23e4afe..7bf9e72637b 100644
--- a/lib/public/AppFramework/App.php
+++ b/lib/public/AppFramework/App.php
@@ -37,6 +37,7 @@ declare(strict_types=1);
*/
namespace OCP\AppFramework;
+
use OC\AppFramework\Routing\RouteConfig;
use OC\ServerContainer;
use OCP\Route\IRouter;
diff --git a/lib/public/AppFramework/Db/DoesNotExistException.php b/lib/public/AppFramework/Db/DoesNotExistException.php
index 45008473c21..d401bcb5f8b 100644
--- a/lib/public/AppFramework/Db/DoesNotExistException.php
+++ b/lib/public/AppFramework/Db/DoesNotExistException.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\AppFramework\Db;
-
/**
* This is returned or should be returned when a find request does not find an
* entry in the database
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php
index 7340df55fc4..3735c83cf81 100644
--- a/lib/public/AppFramework/Db/Entity.php
+++ b/lib/public/AppFramework/Db/Entity.php
@@ -25,7 +25,6 @@
namespace OCP\AppFramework\Db;
-
use function lcfirst;
use function substr;
diff --git a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
index 0f37d16cffc..d5fd63bd405 100644
--- a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
+++ b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\AppFramework\Db;
-
/**
* This is returned or should be returned when a find request finds more than one
* row
diff --git a/lib/public/AppFramework/Http/DownloadResponse.php b/lib/public/AppFramework/Http/DownloadResponse.php
index 2f808ff156c..c28550a0bbd 100644
--- a/lib/public/AppFramework/Http/DownloadResponse.php
+++ b/lib/public/AppFramework/Http/DownloadResponse.php
@@ -25,7 +25,6 @@
namespace OCP\AppFramework\Http;
-
/**
* Prompts the user to download the a file
* @since 7.0.0
diff --git a/lib/public/AppFramework/Http/ICallbackResponse.php b/lib/public/AppFramework/Http/ICallbackResponse.php
index f12a406120a..ca2f5f424ff 100644
--- a/lib/public/AppFramework/Http/ICallbackResponse.php
+++ b/lib/public/AppFramework/Http/ICallbackResponse.php
@@ -25,7 +25,6 @@
namespace OCP\AppFramework\Http;
-
/**
* Interface ICallbackResponse
*
diff --git a/lib/public/AppFramework/Http/IOutput.php b/lib/public/AppFramework/Http/IOutput.php
index 082e5e40046..83d65857c16 100644
--- a/lib/public/AppFramework/Http/IOutput.php
+++ b/lib/public/AppFramework/Http/IOutput.php
@@ -26,7 +26,6 @@
namespace OCP\AppFramework\Http;
-
/**
* Very thin wrapper class to make output testable
* @since 8.1.0
diff --git a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
index b34ede45dfd..9072ca8a059 100644
--- a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
+++ b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\AppFramework\Http;
-
/**
* Redirects to the default app
* @since 16.0.0
diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php
index 99219d6eb0e..5ce7c3a7966 100644
--- a/lib/public/AppFramework/Http/TemplateResponse.php
+++ b/lib/public/AppFramework/Http/TemplateResponse.php
@@ -33,7 +33,6 @@
namespace OCP\AppFramework\Http;
-
/**
* Response for a normal template
* @since 6.0.0
diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php
index 08266ec775d..2ab10986f19 100644
--- a/lib/public/AppFramework/Utility/ITimeFactory.php
+++ b/lib/public/AppFramework/Utility/ITimeFactory.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\AppFramework\Utility;
-
/**
* Needed to mock calls to time()
* @since 8.0.0
diff --git a/lib/public/BackgroundJob/IJob.php b/lib/public/BackgroundJob/IJob.php
index 719d0ea013a..d1d763fd5e4 100644
--- a/lib/public/BackgroundJob/IJob.php
+++ b/lib/public/BackgroundJob/IJob.php
@@ -24,6 +24,7 @@
*/
namespace OCP\BackgroundJob;
+
use OCP\ILogger;
/**
diff --git a/lib/public/Calendar/Resource/IBackend.php b/lib/public/Calendar/Resource/IBackend.php
index 416643919ec..474d5f902ee 100644
--- a/lib/public/Calendar/Resource/IBackend.php
+++ b/lib/public/Calendar/Resource/IBackend.php
@@ -22,6 +22,7 @@
*/
namespace OCP\Calendar\Resource;
+
use OCP\Calendar\BackendTemporarilyUnavailableException;
/**
diff --git a/lib/public/Calendar/Room/IBackend.php b/lib/public/Calendar/Room/IBackend.php
index 00f8b64a41e..d0d3e70dc17 100644
--- a/lib/public/Calendar/Room/IBackend.php
+++ b/lib/public/Calendar/Room/IBackend.php
@@ -22,6 +22,7 @@
*/
namespace OCP\Calendar\Room;
+
use OCP\Calendar\BackendTemporarilyUnavailableException;
/**
diff --git a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
index cd711ea20b2..6b46d9157de 100644
--- a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
+++ b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Collaboration\AutoComplete;
-
use Symfony\Component\EventDispatcher\GenericEvent;
/**
diff --git a/lib/public/Collaboration/Resources/ResourceException.php b/lib/public/Collaboration/Resources/ResourceException.php
index 81bace8f085..8aa72447c95 100644
--- a/lib/public/Collaboration/Resources/ResourceException.php
+++ b/lib/public/Collaboration/Resources/ResourceException.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Collaboration\Resources;
-
/**
* @since 16.0.0
*/
diff --git a/lib/public/DB/QueryBuilder/IExpressionBuilder.php b/lib/public/DB/QueryBuilder/IExpressionBuilder.php
index 1db98ba98f4..5f17585a131 100644
--- a/lib/public/DB/QueryBuilder/IExpressionBuilder.php
+++ b/lib/public/DB/QueryBuilder/IExpressionBuilder.php
@@ -25,7 +25,6 @@
namespace OCP\DB\QueryBuilder;
-
use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
/**
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php
index ece5d36c3eb..d65872388f9 100644
--- a/lib/public/DB/QueryBuilder/IQueryBuilder.php
+++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php
@@ -26,7 +26,6 @@
namespace OCP\DB\QueryBuilder;
-
use Doctrine\DBAL\Connection;
/**
diff --git a/lib/public/Dashboard/IDashboardManager.php b/lib/public/Dashboard/IDashboardManager.php
index 683ead5512e..7805bc236e8 100644
--- a/lib/public/Dashboard/IDashboardManager.php
+++ b/lib/public/Dashboard/IDashboardManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard;
-
use OCP\Dashboard\Exceptions\DashboardAppNotAvailableException;
use OCP\Dashboard\Model\IWidgetConfig;
use OCP\Dashboard\Service\IEventsService;
diff --git a/lib/public/Dashboard/IDashboardWidget.php b/lib/public/Dashboard/IDashboardWidget.php
index 8532a8700a1..9010845355a 100644
--- a/lib/public/Dashboard/IDashboardWidget.php
+++ b/lib/public/Dashboard/IDashboardWidget.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\Dashboard;
-
use OCP\Dashboard\Model\IWidgetConfig;
use OCP\Dashboard\Model\IWidgetRequest;
use OCP\Dashboard\Model\WidgetSetup;
diff --git a/lib/public/Dashboard/Model/IWidgetConfig.php b/lib/public/Dashboard/Model/IWidgetConfig.php
index 7d3d88f3241..bc33b37f544 100644
--- a/lib/public/Dashboard/Model/IWidgetConfig.php
+++ b/lib/public/Dashboard/Model/IWidgetConfig.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Model;
-
use OCP\Dashboard\IDashboardWidget;
/**
diff --git a/lib/public/Dashboard/Model/IWidgetRequest.php b/lib/public/Dashboard/Model/IWidgetRequest.php
index 0a49e34ab30..b646935978a 100644
--- a/lib/public/Dashboard/Model/IWidgetRequest.php
+++ b/lib/public/Dashboard/Model/IWidgetRequest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Model;
-
use OCP\Dashboard\IDashboardWidget;
/**
diff --git a/lib/public/Dashboard/Model/WidgetSetting.php b/lib/public/Dashboard/Model/WidgetSetting.php
index 29744c56fac..b20d8d68b38 100644
--- a/lib/public/Dashboard/Model/WidgetSetting.php
+++ b/lib/public/Dashboard/Model/WidgetSetting.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Model;
-
use JsonSerializable;
/**
diff --git a/lib/public/Dashboard/Model/WidgetSetup.php b/lib/public/Dashboard/Model/WidgetSetup.php
index 4d9884fd470..80885705633 100644
--- a/lib/public/Dashboard/Model/WidgetSetup.php
+++ b/lib/public/Dashboard/Model/WidgetSetup.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Model;
-
use JsonSerializable;
/**
diff --git a/lib/public/Dashboard/Model/WidgetTemplate.php b/lib/public/Dashboard/Model/WidgetTemplate.php
index ba4447638a1..979a49a342d 100644
--- a/lib/public/Dashboard/Model/WidgetTemplate.php
+++ b/lib/public/Dashboard/Model/WidgetTemplate.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Model;
-
use JsonSerializable;
/**
diff --git a/lib/public/Dashboard/Service/IEventsService.php b/lib/public/Dashboard/Service/IEventsService.php
index a036149599c..a9898f578e6 100644
--- a/lib/public/Dashboard/Service/IEventsService.php
+++ b/lib/public/Dashboard/Service/IEventsService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Service;
-
use OCP\Dashboard\IDashboardManager;
/**
diff --git a/lib/public/Dashboard/Service/IWidgetsService.php b/lib/public/Dashboard/Service/IWidgetsService.php
index 73a0bd7b171..dfa89ec1f59 100644
--- a/lib/public/Dashboard/Service/IWidgetsService.php
+++ b/lib/public/Dashboard/Service/IWidgetsService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Dashboard\Service;
-
use OCP\Dashboard\Model\IWidgetConfig;
/**
diff --git a/lib/public/DirectEditing/ACreateEmpty.php b/lib/public/DirectEditing/ACreateEmpty.php
index 022bccf9516..71a18c94e23 100644
--- a/lib/public/DirectEditing/ACreateEmpty.php
+++ b/lib/public/DirectEditing/ACreateEmpty.php
@@ -23,7 +23,6 @@
namespace OCP\DirectEditing;
-
use OCP\Files\File;
/**
diff --git a/lib/public/DirectEditing/IEditor.php b/lib/public/DirectEditing/IEditor.php
index 5b376ba2ad5..22ec130aee0 100644
--- a/lib/public/DirectEditing/IEditor.php
+++ b/lib/public/DirectEditing/IEditor.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\DirectEditing;
-
use OCP\AppFramework\Http\Response;
/**
diff --git a/lib/public/DirectEditing/IToken.php b/lib/public/DirectEditing/IToken.php
index 416b2ccb807..46c423053fe 100644
--- a/lib/public/DirectEditing/IToken.php
+++ b/lib/public/DirectEditing/IToken.php
@@ -23,7 +23,6 @@
namespace OCP\DirectEditing;
-
use OCP\Files\File;
use OCP\Files\NotFoundException;
diff --git a/lib/public/Encryption/Exceptions/GenericEncryptionException.php b/lib/public/Encryption/Exceptions/GenericEncryptionException.php
index 938e6662a79..2124e5effea 100644
--- a/lib/public/Encryption/Exceptions/GenericEncryptionException.php
+++ b/lib/public/Encryption/Exceptions/GenericEncryptionException.php
@@ -25,6 +25,7 @@
*/
namespace OCP\Encryption\Exceptions;
+
use OC\HintException;
/**
diff --git a/lib/public/Encryption/IEncryptionModule.php b/lib/public/Encryption/IEncryptionModule.php
index 90d427d4a1a..9646fb90e93 100644
--- a/lib/public/Encryption/IEncryptionModule.php
+++ b/lib/public/Encryption/IEncryptionModule.php
@@ -25,6 +25,7 @@
*/
namespace OCP\Encryption;
+
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php
index a4c9bfe3e45..d1388f02b1d 100644
--- a/lib/public/Files/Cache/ICache.php
+++ b/lib/public/Files/Cache/ICache.php
@@ -21,6 +21,7 @@
*/
namespace OCP\Files\Cache;
+
use OCP\Files\Search\ISearchQuery;
/**
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index a78a9ca8f78..4c05b0fb490 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -32,6 +32,7 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP\Files;
+
use OCP\Files\Search\ISearchQuery;
/**
diff --git a/lib/public/Files/IMimeTypeDetector.php b/lib/public/Files/IMimeTypeDetector.php
index ec80b3480d1..bb75ce742c5 100644
--- a/lib/public/Files/IMimeTypeDetector.php
+++ b/lib/public/Files/IMimeTypeDetector.php
@@ -26,7 +26,6 @@
namespace OCP\Files;
-
/**
* Interface IMimeTypeDetector
* @package OCP\Files
diff --git a/lib/public/Files/Storage/IStorageFactory.php b/lib/public/Files/Storage/IStorageFactory.php
index e5a94de34f9..e9550fdaa29 100644
--- a/lib/public/Files/Storage/IStorageFactory.php
+++ b/lib/public/Files/Storage/IStorageFactory.php
@@ -23,6 +23,7 @@
*/
namespace OCP\Files\Storage;
+
use OCP\Files\Mount\IMountPoint;
/**
diff --git a/lib/public/Files/StorageNotAvailableException.php b/lib/public/Files/StorageNotAvailableException.php
index 0b1defaded8..052a6b5ad78 100644
--- a/lib/public/Files/StorageNotAvailableException.php
+++ b/lib/public/Files/StorageNotAvailableException.php
@@ -36,6 +36,7 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP\Files;
+
use OC\HintException;
/**
diff --git a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
index 24c14089bcc..1ca6bff98c9 100644
--- a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
+++ b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Files_FullTextSearch\Model;
-
use OC\FullTextSearch\Model\IndexDocument;
use OCP\FullTextSearch\Model\IIndexDocument;
diff --git a/lib/public/FullTextSearch/IFullTextSearchManager.php b/lib/public/FullTextSearch/IFullTextSearchManager.php
index 8730a344ded..e420e91f3a1 100644
--- a/lib/public/FullTextSearch/IFullTextSearchManager.php
+++ b/lib/public/FullTextSearch/IFullTextSearchManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch;
-
use OCP\FullTextSearch\Model\IIndex;
use OCP\FullTextSearch\Model\ISearchResult;
use OCP\FullTextSearch\Service\IIndexService;
diff --git a/lib/public/FullTextSearch/IFullTextSearchPlatform.php b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
index a22e6930383..797c179082e 100644
--- a/lib/public/FullTextSearch/IFullTextSearchPlatform.php
+++ b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch;
-
use OCP\FullTextSearch\Model\IDocumentAccess;
use OCP\FullTextSearch\Model\IIndex;
use OCP\FullTextSearch\Model\IIndexDocument;
diff --git a/lib/public/FullTextSearch/IFullTextSearchProvider.php b/lib/public/FullTextSearch/IFullTextSearchProvider.php
index f9a56b40e85..4a37001754a 100644
--- a/lib/public/FullTextSearch/IFullTextSearchProvider.php
+++ b/lib/public/FullTextSearch/IFullTextSearchProvider.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch;
-
use OCP\FullTextSearch\Model\IIndex;
use OCP\FullTextSearch\Model\IIndexDocument;
use OCP\FullTextSearch\Model\IIndexOptions;
diff --git a/lib/public/FullTextSearch/Model/IDocumentAccess.php b/lib/public/FullTextSearch/Model/IDocumentAccess.php
index 713a018e661..478072593aa 100644
--- a/lib/public/FullTextSearch/Model/IDocumentAccess.php
+++ b/lib/public/FullTextSearch/Model/IDocumentAccess.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface IDocumentAccess
*
diff --git a/lib/public/FullTextSearch/Model/IIndex.php b/lib/public/FullTextSearch/Model/IIndex.php
index 0f3f718d7ba..7078962d99e 100644
--- a/lib/public/FullTextSearch/Model/IIndex.php
+++ b/lib/public/FullTextSearch/Model/IIndex.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface IIndex
*
diff --git a/lib/public/FullTextSearch/Model/IIndexDocument.php b/lib/public/FullTextSearch/Model/IIndexDocument.php
index e86582b9234..667d2c15c7f 100644
--- a/lib/public/FullTextSearch/Model/IIndexDocument.php
+++ b/lib/public/FullTextSearch/Model/IIndexDocument.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Class IIndexDocument
*
diff --git a/lib/public/FullTextSearch/Model/IIndexOptions.php b/lib/public/FullTextSearch/Model/IIndexOptions.php
index daa8f5a0c7a..8719289d746 100644
--- a/lib/public/FullTextSearch/Model/IIndexOptions.php
+++ b/lib/public/FullTextSearch/Model/IIndexOptions.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface IIndexOptions
*
diff --git a/lib/public/FullTextSearch/Model/IRunner.php b/lib/public/FullTextSearch/Model/IRunner.php
index c4eecfa4894..d92eb789d64 100644
--- a/lib/public/FullTextSearch/Model/IRunner.php
+++ b/lib/public/FullTextSearch/Model/IRunner.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface IRunner
*
diff --git a/lib/public/FullTextSearch/Model/ISearchOption.php b/lib/public/FullTextSearch/Model/ISearchOption.php
index bbd2ac4827a..3f893c516d9 100644
--- a/lib/public/FullTextSearch/Model/ISearchOption.php
+++ b/lib/public/FullTextSearch/Model/ISearchOption.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* @since 16.0.0
*
diff --git a/lib/public/FullTextSearch/Model/ISearchRequest.php b/lib/public/FullTextSearch/Model/ISearchRequest.php
index 2453c1e871c..d48b74288fd 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequest.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface ISearchRequest
*
diff --git a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
index ca11b0c9317..c72d15a6930 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
/**
* Interface ISearchRequestSimpleQuery
*
diff --git a/lib/public/FullTextSearch/Model/ISearchResult.php b/lib/public/FullTextSearch/Model/ISearchResult.php
index 775c4314bb1..1d8cb5d8037 100644
--- a/lib/public/FullTextSearch/Model/ISearchResult.php
+++ b/lib/public/FullTextSearch/Model/ISearchResult.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
use OCP\FullTextSearch\IFullTextSearchProvider;
/**
diff --git a/lib/public/FullTextSearch/Model/ISearchTemplate.php b/lib/public/FullTextSearch/Model/ISearchTemplate.php
index 43d1a586a1d..b63bae43a0a 100644
--- a/lib/public/FullTextSearch/Model/ISearchTemplate.php
+++ b/lib/public/FullTextSearch/Model/ISearchTemplate.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Model;
-
use OCP\FullTextSearch\IFullTextSearchProvider;
/**
diff --git a/lib/public/FullTextSearch/Service/IIndexService.php b/lib/public/FullTextSearch/Service/IIndexService.php
index 3c3bd4bbe1f..f660909c9ca 100644
--- a/lib/public/FullTextSearch/Service/IIndexService.php
+++ b/lib/public/FullTextSearch/Service/IIndexService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Service;
-
use OCP\FullTextSearch\Model\IIndex;
/**
diff --git a/lib/public/FullTextSearch/Service/IProviderService.php b/lib/public/FullTextSearch/Service/IProviderService.php
index 8d4b68e4136..50c32649357 100644
--- a/lib/public/FullTextSearch/Service/IProviderService.php
+++ b/lib/public/FullTextSearch/Service/IProviderService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Service;
-
/**
* Interface IProviderService
*
diff --git a/lib/public/FullTextSearch/Service/ISearchService.php b/lib/public/FullTextSearch/Service/ISearchService.php
index 8c2152855a1..89fa1a444e2 100644
--- a/lib/public/FullTextSearch/Service/ISearchService.php
+++ b/lib/public/FullTextSearch/Service/ISearchService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\FullTextSearch\Service;
-
use OCP\FullTextSearch\Model\ISearchRequest;
use OCP\FullTextSearch\Model\ISearchResult;
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index a7aa9d448f1..405b4ba1b04 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -38,6 +38,7 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP;
+
use Doctrine\DBAL\Schema\Schema;
use OCP\DB\QueryBuilder\IQueryBuilder;
diff --git a/lib/public/ISearch.php b/lib/public/ISearch.php
index bdfe8431f13..fa6fc49c976 100644
--- a/lib/public/ISearch.php
+++ b/lib/public/ISearch.php
@@ -27,7 +27,6 @@
namespace OCP;
-
/**
* Small Interface for Search
* @since 7.0.0
diff --git a/lib/public/IServerContainer.php b/lib/public/IServerContainer.php
index 7443f32bfe3..40f8d93f350 100644
--- a/lib/public/IServerContainer.php
+++ b/lib/public/IServerContainer.php
@@ -47,6 +47,7 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP;
+
use OCP\Federation\ICloudFederationFactory;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\Log\ILogFactory;
diff --git a/lib/public/IUser.php b/lib/public/IUser.php
index a5e94bf8ac4..910c1a06d9d 100644
--- a/lib/public/IUser.php
+++ b/lib/public/IUser.php
@@ -28,7 +28,6 @@
namespace OCP;
-
/**
* Interface IUser
*
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php
index 33e90a617a6..a8df1a1af7e 100644
--- a/lib/public/IUserManager.php
+++ b/lib/public/IUserManager.php
@@ -30,7 +30,6 @@
namespace OCP;
-
/**
* Class Manager
*
diff --git a/lib/public/Lock/ManuallyLockedException.php b/lib/public/Lock/ManuallyLockedException.php
index 12567456e18..1609727f4e8 100644
--- a/lib/public/Lock/ManuallyLockedException.php
+++ b/lib/public/Lock/ManuallyLockedException.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\Lock;
-
/**
* Class ManuallyLockedException
*
diff --git a/lib/public/Notification/AlreadyProcessedException.php b/lib/public/Notification/AlreadyProcessedException.php
index 2cb1fc92765..251221004c9 100644
--- a/lib/public/Notification/AlreadyProcessedException.php
+++ b/lib/public/Notification/AlreadyProcessedException.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCP\Notification;
-
/**
* @since 17.0.0
*/
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php
index a4cf4dac725..6b293dfff6d 100644
--- a/lib/public/RichObjectStrings/Definitions.php
+++ b/lib/public/RichObjectStrings/Definitions.php
@@ -26,7 +26,6 @@
namespace OCP\RichObjectStrings;
-
/**
* Class Definitions
*
diff --git a/lib/public/SabrePluginEvent.php b/lib/public/SabrePluginEvent.php
index b04ca420e32..c9f80d184c2 100644
--- a/lib/public/SabrePluginEvent.php
+++ b/lib/public/SabrePluginEvent.php
@@ -25,7 +25,6 @@
namespace OCP;
-
use OCP\AppFramework\Http;
use OCP\EventDispatcher\Event;
use Sabre\DAV\Server;
diff --git a/lib/public/SabrePluginException.php b/lib/public/SabrePluginException.php
index 3f46885a11a..7d2220999e5 100644
--- a/lib/public/SabrePluginException.php
+++ b/lib/public/SabrePluginException.php
@@ -22,7 +22,6 @@
namespace OCP;
-
use Sabre\DAV\Exception;
/**
diff --git a/lib/public/Security/IContentSecurityPolicyManager.php b/lib/public/Security/IContentSecurityPolicyManager.php
index bd579703cad..465a8c317f6 100644
--- a/lib/public/Security/IContentSecurityPolicyManager.php
+++ b/lib/public/Security/IContentSecurityPolicyManager.php
@@ -22,6 +22,7 @@
*/
namespace OCP\Security;
+
use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
/**
diff --git a/lib/public/Share/Exceptions/GenericShareException.php b/lib/public/Share/Exceptions/GenericShareException.php
index b9c134b8d00..3714edbfc33 100644
--- a/lib/public/Share/Exceptions/GenericShareException.php
+++ b/lib/public/Share/Exceptions/GenericShareException.php
@@ -23,6 +23,7 @@
*/
namespace OCP\Share\Exceptions;
+
use OC\HintException;
/**
diff --git a/lib/public/WorkflowEngine/IFileCheck.php b/lib/public/WorkflowEngine/IFileCheck.php
index b94f3e512d3..d11a5011367 100644
--- a/lib/public/WorkflowEngine/IFileCheck.php
+++ b/lib/public/WorkflowEngine/IFileCheck.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCP\WorkflowEngine;
-
use OCP\Files\Storage\IStorage;
/**
diff --git a/tests/Core/Command/Config/App/DeleteConfigTest.php b/tests/Core/Command/Config/App/DeleteConfigTest.php
index 251de227d67..442b9c5a8ef 100644
--- a/tests/Core/Command/Config/App/DeleteConfigTest.php
+++ b/tests/Core/Command/Config/App/DeleteConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\DeleteConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/App/GetConfigTest.php b/tests/Core/Command/Config/App/GetConfigTest.php
index 7ecb09b8f82..b18bc8de1d0 100644
--- a/tests/Core/Command/Config/App/GetConfigTest.php
+++ b/tests/Core/Command/Config/App/GetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\GetConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/App/SetConfigTest.php b/tests/Core/Command/Config/App/SetConfigTest.php
index 988e965d317..3077f74b369 100644
--- a/tests/Core/Command/Config/App/SetConfigTest.php
+++ b/tests/Core/Command/Config/App/SetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\SetConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/ImportTest.php b/tests/Core/Command/Config/ImportTest.php
index fa1ed151678..2c0a6e3d8fd 100644
--- a/tests/Core/Command/Config/ImportTest.php
+++ b/tests/Core/Command/Config/ImportTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config;
-
use OC\Core\Command\Config\Import;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/ListConfigsTest.php b/tests/Core/Command/Config/ListConfigsTest.php
index 203feaacbf1..ac0155f9b5f 100644
--- a/tests/Core/Command/Config/ListConfigsTest.php
+++ b/tests/Core/Command/Config/ListConfigsTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config;
-
use OC\Core\Command\Config\ListConfigs;
use OC\SystemConfig;
use OCP\IAppConfig;
diff --git a/tests/Core/Command/Config/System/DeleteConfigTest.php b/tests/Core/Command/Config/System/DeleteConfigTest.php
index 21ef3e33981..ee27fa587bc 100644
--- a/tests/Core/Command/Config/System/DeleteConfigTest.php
+++ b/tests/Core/Command/Config/System/DeleteConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\DeleteConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/System/GetConfigTest.php b/tests/Core/Command/Config/System/GetConfigTest.php
index 1d8975f7f7f..ab366b3e1f5 100644
--- a/tests/Core/Command/Config/System/GetConfigTest.php
+++ b/tests/Core/Command/Config/System/GetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\GetConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/System/SetConfigTest.php b/tests/Core/Command/Config/System/SetConfigTest.php
index 1ed7cf2758f..e359e846aa7 100644
--- a/tests/Core/Command/Config/System/SetConfigTest.php
+++ b/tests/Core/Command/Config/System/SetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\SetConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
index d17050e7245..4f15b2a50b1 100644
--- a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
+++ b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\ChangeKeyStorageRoot;
use OC\Encryption\Util;
use OC\Files\View;
diff --git a/tests/Core/Command/Encryption/DecryptAllTest.php b/tests/Core/Command/Encryption/DecryptAllTest.php
index acdaff4bbab..4cae5bc0ad2 100644
--- a/tests/Core/Command/Encryption/DecryptAllTest.php
+++ b/tests/Core/Command/Encryption/DecryptAllTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\DecryptAll;
use OCP\App\IAppManager;
use OCP\Encryption\IManager;
diff --git a/tests/Core/Command/Encryption/DisableTest.php b/tests/Core/Command/Encryption/DisableTest.php
index f9035a84788..4d088073380 100644
--- a/tests/Core/Command/Encryption/DisableTest.php
+++ b/tests/Core/Command/Encryption/DisableTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\Disable;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Encryption/EnableTest.php b/tests/Core/Command/Encryption/EnableTest.php
index 5c8fc826af1..f76638c0ecf 100644
--- a/tests/Core/Command/Encryption/EnableTest.php
+++ b/tests/Core/Command/Encryption/EnableTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\Enable;
use OCP\Encryption\IManager;
use OCP\IConfig;
diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php
index 778d51fd8b8..4a0d40ea5b3 100644
--- a/tests/Core/Command/Encryption/EncryptAllTest.php
+++ b/tests/Core/Command/Encryption/EncryptAllTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\EncryptAll;
use OCP\App\IAppManager;
use OCP\Encryption\IEncryptionModule;
diff --git a/tests/Core/Command/Encryption/SetDefaultModuleTest.php b/tests/Core/Command/Encryption/SetDefaultModuleTest.php
index 0776ef42b48..f2f1d1cfc67 100644
--- a/tests/Core/Command/Encryption/SetDefaultModuleTest.php
+++ b/tests/Core/Command/Encryption/SetDefaultModuleTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\SetDefaultModule;
use OCP\Encryption\IManager;
use OCP\IConfig;
diff --git a/tests/Core/Command/Log/FileTest.php b/tests/Core/Command/Log/FileTest.php
index c1d005e0c56..58507227780 100644
--- a/tests/Core/Command/Log/FileTest.php
+++ b/tests/Core/Command/Log/FileTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Log;
-
use OC\Core\Command\Log\File;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Log/ManageTest.php b/tests/Core/Command/Log/ManageTest.php
index cae6293abd1..4425a9e0054 100644
--- a/tests/Core/Command/Log/ManageTest.php
+++ b/tests/Core/Command/Log/ManageTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Log;
-
use OC\Core\Command\Log\Manage;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/User/DeleteTest.php b/tests/Core/Command/User/DeleteTest.php
index 9dc920894d7..ec65984bef8 100644
--- a/tests/Core/Command/User/DeleteTest.php
+++ b/tests/Core/Command/User/DeleteTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Delete;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/DisableTest.php b/tests/Core/Command/User/DisableTest.php
index 5456118f67c..5fb4633dc00 100644
--- a/tests/Core/Command/User/DisableTest.php
+++ b/tests/Core/Command/User/DisableTest.php
@@ -23,7 +23,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Disable;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/EnableTest.php b/tests/Core/Command/User/EnableTest.php
index 4a723ca1167..4babe0d91c1 100644
--- a/tests/Core/Command/User/EnableTest.php
+++ b/tests/Core/Command/User/EnableTest.php
@@ -23,7 +23,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Enable;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/LastSeenTest.php b/tests/Core/Command/User/LastSeenTest.php
index f6ee4796454..0a402a30119 100644
--- a/tests/Core/Command/User/LastSeenTest.php
+++ b/tests/Core/Command/User/LastSeenTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\LastSeen;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/SettingTest.php b/tests/Core/Command/User/SettingTest.php
index 8486e7fc3ca..4aa3b5e4801 100644
--- a/tests/Core/Command/User/SettingTest.php
+++ b/tests/Core/Command/User/SettingTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Setting;
use OCP\IConfig;
use OCP\IDBConnection;
diff --git a/tests/lib/Accounts/AccountsManagerTest.php b/tests/lib/Accounts/AccountsManagerTest.php
index 78f8503123d..5bed1ff74fb 100644
--- a/tests/lib/Accounts/AccountsManagerTest.php
+++ b/tests/lib/Accounts/AccountsManagerTest.php
@@ -21,7 +21,6 @@
namespace Test\Accounts;
-
use OC\Accounts\Account;
use OC\Accounts\AccountManager;
use OCP\Accounts\IAccountManager;
diff --git a/tests/lib/Accounts/HooksTest.php b/tests/lib/Accounts/HooksTest.php
index 0d6ce3241d6..433ecdedcf4 100644
--- a/tests/lib/Accounts/HooksTest.php
+++ b/tests/lib/Accounts/HooksTest.php
@@ -21,7 +21,6 @@
namespace Test\Accounts;
-
use OC\Accounts\AccountManager;
use OC\Accounts\Hooks;
use OCP\ILogger;
diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php
index 14114e8fad7..3a4c16b3396 100644
--- a/tests/lib/AppConfigTest.php
+++ b/tests/lib/AppConfigTest.php
@@ -8,6 +8,7 @@
*/
namespace Test;
+
use OCP\IConfig;
/**
diff --git a/tests/lib/AppFramework/Db/EntityTest.php b/tests/lib/AppFramework/Db/EntityTest.php
index 8676bf74cb0..b2113789810 100644
--- a/tests/lib/AppFramework/Db/EntityTest.php
+++ b/tests/lib/AppFramework/Db/EntityTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Db;
-
use OCP\AppFramework\Db\Entity;
use PHPUnit\Framework\Constraint\IsType;
diff --git a/tests/lib/AppFramework/Db/MapperTestUtility.php b/tests/lib/AppFramework/Db/MapperTestUtility.php
index 11905a9bbbb..ebcc4a11e26 100644
--- a/tests/lib/AppFramework/Db/MapperTestUtility.php
+++ b/tests/lib/AppFramework/Db/MapperTestUtility.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Db;
-
/**
* Simple utility class for testing mappers
*/
diff --git a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
index 95d368a448e..b8cf35dfb6e 100644
--- a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
+++ b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
@@ -25,7 +25,6 @@
namespace Test\AppFramework\DependencyInjection;
-
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
diff --git a/tests/lib/AppFramework/Http/DataResponseTest.php b/tests/lib/AppFramework/Http/DataResponseTest.php
index 7af11807d87..cd7b64a1caa 100644
--- a/tests/lib/AppFramework/Http/DataResponseTest.php
+++ b/tests/lib/AppFramework/Http/DataResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/tests/lib/AppFramework/Http/DownloadResponseTest.php b/tests/lib/AppFramework/Http/DownloadResponseTest.php
index 5f816eaeb76..b3437a351f9 100644
--- a/tests/lib/AppFramework/Http/DownloadResponseTest.php
+++ b/tests/lib/AppFramework/Http/DownloadResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http\DownloadResponse;
class ChildDownloadResponse extends DownloadResponse {
diff --git a/tests/lib/AppFramework/Http/JSONResponseTest.php b/tests/lib/AppFramework/Http/JSONResponseTest.php
index 2a0978db62a..56e6d43096d 100644
--- a/tests/lib/AppFramework/Http/JSONResponseTest.php
+++ b/tests/lib/AppFramework/Http/JSONResponseTest.php
@@ -25,7 +25,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
diff --git a/tests/lib/AppFramework/Http/OCSResponseTest.php b/tests/lib/AppFramework/Http/OCSResponseTest.php
index 223248c8737..ec1b422ddd9 100644
--- a/tests/lib/AppFramework/Http/OCSResponseTest.php
+++ b/tests/lib/AppFramework/Http/OCSResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http\OCSResponse;
class OCSResponseTest extends \Test\TestCase {
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index 86a909b7688..0a2dc84d411 100644
--- a/tests/lib/AppFramework/Http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Utility\ITimeFactory;
diff --git a/tests/lib/AppFramework/Http/StreamResponseTest.php b/tests/lib/AppFramework/Http/StreamResponseTest.php
index b66d9c5ed1d..6257769d927 100644
--- a/tests/lib/AppFramework/Http/StreamResponseTest.php
+++ b/tests/lib/AppFramework/Http/StreamResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\IOutput;
use OCP\AppFramework\Http\StreamResponse;
diff --git a/tests/lib/AppFramework/OCS/BaseResponseTest.php b/tests/lib/AppFramework/OCS/BaseResponseTest.php
index 8a86ae13e79..18a85788af2 100644
--- a/tests/lib/AppFramework/OCS/BaseResponseTest.php
+++ b/tests/lib/AppFramework/OCS/BaseResponseTest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace Test\AppFramework\Middleware;
-
use OC\AppFramework\OCS\BaseResponse;
class BaseResponseTest extends \Test\TestCase {
diff --git a/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
index 5a3c3f2a007..5c0e8c6b223 100644
--- a/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
+++ b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Utility;
-
use OC\AppFramework\Utility\ControllerMethodReflector;
class BaseController {
diff --git a/tests/lib/Archive/TARTest.php b/tests/lib/Archive/TARTest.php
index 77df1c32ca4..6b16f061623 100644
--- a/tests/lib/Archive/TARTest.php
+++ b/tests/lib/Archive/TARTest.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
use OC\Archive\TAR;
class TARTest extends TestBase {
diff --git a/tests/lib/Archive/TestBase.php b/tests/lib/Archive/TestBase.php
index 8ecedb189ce..c94767db606 100644
--- a/tests/lib/Archive/TestBase.php
+++ b/tests/lib/Archive/TestBase.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
abstract class TestBase extends \Test\TestCase {
/**
* @var \OC\Archive\Archive
diff --git a/tests/lib/Archive/ZIPTest.php b/tests/lib/Archive/ZIPTest.php
index 573339e5a19..17a639c9f5f 100644
--- a/tests/lib/Archive/ZIPTest.php
+++ b/tests/lib/Archive/ZIPTest.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
use OC\Archive\ZIP;
class ZIPTest extends TestBase {
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index 4b8de82b368..529e93e960f 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -7,6 +7,7 @@
*/
namespace Test\BackgroundJob;
+
use OCP\BackgroundJob\IJob;
/**
diff --git a/tests/lib/BackgroundJob/TestJob.php b/tests/lib/BackgroundJob/TestJob.php
index a5ab4454550..e15c7e86c99 100644
--- a/tests/lib/BackgroundJob/TestJob.php
+++ b/tests/lib/BackgroundJob/TestJob.php
@@ -8,7 +8,6 @@
namespace Test\BackgroundJob;
-
class TestJob extends \OC\BackgroundJob\Job {
private $testCase;
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php
index df7a72a7491..96c35ebf786 100644
--- a/tests/lib/Cache/FileCacheTest.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -21,6 +21,7 @@
*/
namespace Test\Cache;
+
use OC\Files\Storage\Local;
/**
diff --git a/tests/lib/Collaboration/Collaborators/GroupPluginTest.php b/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
index 3d81134680a..e53fb290d0e 100644
--- a/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\GroupPlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearchResult;
diff --git a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
index 15dccf2c84c..eb26443a269 100644
--- a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\LookupPlugin;
use OC\Federation\CloudId;
use OCP\Collaboration\Collaborators\ISearchResult;
diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
index 84888dc364c..934c6bc68e6 100644
--- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\MailPlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OC\Federation\CloudIdManager;
diff --git a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
index 59338b74de9..30ee7092aa9 100644
--- a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\RemotePlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OC\Federation\CloudIdManager;
diff --git a/tests/lib/Collaboration/Collaborators/SearchResultTest.php b/tests/lib/Collaboration/Collaborators/SearchResultTest.php
index 3d09a9b632d..45ce0b4c1b8 100644
--- a/tests/lib/Collaboration/Collaborators/SearchResultTest.php
+++ b/tests/lib/Collaboration/Collaborators/SearchResultTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\Search;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearch;
diff --git a/tests/lib/Collaboration/Collaborators/SearchTest.php b/tests/lib/Collaboration/Collaborators/SearchTest.php
index e5b5d2ef820..5a78e084da8 100644
--- a/tests/lib/Collaboration/Collaborators/SearchTest.php
+++ b/tests/lib/Collaboration/Collaborators/SearchTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\Search;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearch;
diff --git a/tests/lib/Comments/FakeManager.php b/tests/lib/Comments/FakeManager.php
index 9078226afb5..5b74b54de50 100644
--- a/tests/lib/Comments/FakeManager.php
+++ b/tests/lib/Comments/FakeManager.php
@@ -1,6 +1,7 @@
<?php
namespace Test\Comments;
+
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\IUser;
diff --git a/tests/lib/Encryption/DecryptAllTest.php b/tests/lib/Encryption/DecryptAllTest.php
index 3365b1fedca..2c8cc2a4ac9 100644
--- a/tests/lib/Encryption/DecryptAllTest.php
+++ b/tests/lib/Encryption/DecryptAllTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\DecryptAll;
use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Encryption\Manager;
diff --git a/tests/lib/Encryption/EncryptionWrapperTest.php b/tests/lib/Encryption/EncryptionWrapperTest.php
index 93987a8bb20..3fc18817327 100644
--- a/tests/lib/Encryption/EncryptionWrapperTest.php
+++ b/tests/lib/Encryption/EncryptionWrapperTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\EncryptionWrapper;
use OC\Encryption\Manager;
use OC\Memcache\ArrayCache;
diff --git a/tests/lib/Encryption/UpdateTest.php b/tests/lib/Encryption/UpdateTest.php
index 6328df3dc30..4509a1f5fec 100644
--- a/tests/lib/Encryption/UpdateTest.php
+++ b/tests/lib/Encryption/UpdateTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\Update;
use OC\Files\Mount\Manager;
use OC\Files\View;
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index 40d87214aad..dff21491052 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -8,7 +8,6 @@
namespace Test\Files\Cache;
-
use Doctrine\DBAL\Platforms\MySqlPlatform;
use OC\Files\Cache\Cache;
use OC\Files\Search\SearchComparison;
diff --git a/tests/lib/Files/Mount/MountTest.php b/tests/lib/Files/Mount/MountTest.php
index 160545e784c..340e6931c1d 100644
--- a/tests/lib/Files/Mount/MountTest.php
+++ b/tests/lib/Files/Mount/MountTest.php
@@ -8,7 +8,6 @@
namespace Test\Files\Mount;
-
use OC\Files\Storage\StorageFactory;
use OC\Files\Storage\Wrapper\Wrapper;
diff --git a/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php b/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
index aa3b2519ec1..214550d884d 100644
--- a/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
+++ b/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
@@ -21,7 +21,6 @@
namespace Test\Files\ObjectStore;
-
use OCP\Files\ObjectStore\IObjectStore;
class FailDeleteObjectStore implements IObjectStore {
diff --git a/tests/lib/Files/ObjectStore/MapperTest.php b/tests/lib/Files/ObjectStore/MapperTest.php
index eef308af088..50d3cd553aa 100644
--- a/tests/lib/Files/ObjectStore/MapperTest.php
+++ b/tests/lib/Files/ObjectStore/MapperTest.php
@@ -21,7 +21,6 @@
namespace Test\Files\ObjectStore;
-
use OC\Files\ObjectStore\Mapper;
use OCP\IUser;
diff --git a/tests/lib/GlobalScale/ConfigTest.php b/tests/lib/GlobalScale/ConfigTest.php
index 5aaed1ed5bd..a9474f12d77 100644
--- a/tests/lib/GlobalScale/ConfigTest.php
+++ b/tests/lib/GlobalScale/ConfigTest.php
@@ -21,7 +21,6 @@
namespace Test\GlobalScale;
-
use OC\GlobalScale\Config;
use OCP\IConfig;
use Test\TestCase;
diff --git a/tests/lib/HelperStorageTest.php b/tests/lib/HelperStorageTest.php
index 606a527f5c9..22c5658e565 100644
--- a/tests/lib/HelperStorageTest.php
+++ b/tests/lib/HelperStorageTest.php
@@ -7,6 +7,7 @@
*/
namespace Test;
+
use OC\Files\Storage\Temporary;
/**
diff --git a/tests/lib/Hooks/ForwardingEmitterTest.php b/tests/lib/Hooks/ForwardingEmitterTest.php
index 9b0a51d1bd4..0c073b95573 100644
--- a/tests/lib/Hooks/ForwardingEmitterTest.php
+++ b/tests/lib/Hooks/ForwardingEmitterTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Hooks;
+
use OC\Hooks\PublicEmitter;
class DummyForwardingEmitter extends \OC\Hooks\ForwardingEmitter {
diff --git a/tests/lib/InfoXmlTest.php b/tests/lib/InfoXmlTest.php
index 0d528dbb652..30f169eac0b 100644
--- a/tests/lib/InfoXmlTest.php
+++ b/tests/lib/InfoXmlTest.php
@@ -21,7 +21,6 @@
namespace Test;
-
/**
* Class InfoXmlTest
*
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php
index 7a91fcab270..5d86757020f 100644
--- a/tests/lib/InstallerTest.php
+++ b/tests/lib/InstallerTest.php
@@ -8,7 +8,6 @@
namespace Test;
-
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\Archive\ZIP;
use OC\Installer;
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php
index b2e7d5ebfc9..0de09386fba 100644
--- a/tests/lib/L10N/L10nTest.php
+++ b/tests/lib/L10N/L10nTest.php
@@ -8,7 +8,6 @@
namespace Test\L10N;
-
use DateTime;
use OC\L10N\Factory;
use OC\L10N\L10N;
diff --git a/tests/lib/Log/LogFactoryTest.php b/tests/lib/Log/LogFactoryTest.php
index 4a3997dbf20..e4725a3bc1a 100644
--- a/tests/lib/Log/LogFactoryTest.php
+++ b/tests/lib/Log/LogFactoryTest.php
@@ -23,6 +23,7 @@
*/
namespace Test\Log;
+
use OC\Log\Errorlog;
use OC\Log\File;
use OC\Log\LogFactory;
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index 8d169d598c9..bf469e87b94 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -11,7 +11,6 @@
namespace Test\Mail;
-
use OC\Mail\EMailTemplate;
use OC\Mail\Mailer;
use OC\Mail\Message;
diff --git a/tests/lib/Notification/ActionTest.php b/tests/lib/Notification/ActionTest.php
index 1923f2305e1..6016760c24f 100644
--- a/tests/lib/Notification/ActionTest.php
+++ b/tests/lib/Notification/ActionTest.php
@@ -21,7 +21,6 @@
namespace Test\Notification;
-
use OC\Notification\Action;
use OCP\Notification\IAction;
use Test\TestCase;
diff --git a/tests/lib/Notification/DummyApp.php b/tests/lib/Notification/DummyApp.php
index 680fb44d009..29bae60a35b 100644
--- a/tests/lib/Notification/DummyApp.php
+++ b/tests/lib/Notification/DummyApp.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
namespace Test\Notification;
-
use OCP\Notification\IApp;
use OCP\Notification\INotification;
diff --git a/tests/lib/Notification/DummyNotifier.php b/tests/lib/Notification/DummyNotifier.php
index 849fb3c275f..459a694ccf8 100644
--- a/tests/lib/Notification/DummyNotifier.php
+++ b/tests/lib/Notification/DummyNotifier.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
namespace Test\Notification;
-
use OCP\Notification\AlreadyProcessedException;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
diff --git a/tests/lib/Notification/NotificationTest.php b/tests/lib/Notification/NotificationTest.php
index c70fa1ec7df..59aae09b6db 100644
--- a/tests/lib/Notification/NotificationTest.php
+++ b/tests/lib/Notification/NotificationTest.php
@@ -22,7 +22,6 @@ declare (strict_types = 1);
namespace Test\Notification;
-
use OC\Notification\Notification;
use OCP\Notification\IAction;
use OCP\Notification\INotification;
diff --git a/tests/lib/OCS/DiscoveryServiceTest.php b/tests/lib/OCS/DiscoveryServiceTest.php
index 710d683841f..4b31de3f0a3 100644
--- a/tests/lib/OCS/DiscoveryServiceTest.php
+++ b/tests/lib/OCS/DiscoveryServiceTest.php
@@ -21,7 +21,6 @@
namespace Test\OCS;
-
use OC\OCS\DiscoveryService;
use OCP\Http\Client\IClientService;
use OCP\ICacheFactory;
diff --git a/tests/lib/PublicNamespace/UtilTest.php b/tests/lib/PublicNamespace/UtilTest.php
index a69d1069b9d..e4e830468f2 100644
--- a/tests/lib/PublicNamespace/UtilTest.php
+++ b/tests/lib/PublicNamespace/UtilTest.php
@@ -21,7 +21,6 @@
namespace Test\PublicNamespace;
-
class UtilTest extends \Test\TestCase {
/**
* @dataProvider channelProvider
diff --git a/tests/lib/Remote/InstanceTest.php b/tests/lib/Remote/InstanceTest.php
index 0adb608d875..3ec7451263d 100644
--- a/tests/lib/Remote/InstanceTest.php
+++ b/tests/lib/Remote/InstanceTest.php
@@ -21,7 +21,6 @@
namespace Test\Remote;
-
use OC\Memcache\ArrayCache;
use OC\Remote\Instance;
use OCP\ICache;
diff --git a/tests/lib/Repair/CleanTagsTest.php b/tests/lib/Repair/CleanTagsTest.php
index 5ff13beba76..b724891cda7 100644
--- a/tests/lib/Repair/CleanTagsTest.php
+++ b/tests/lib/Repair/CleanTagsTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Repair;
+
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IUserManager;
use OCP\Migration\IOutput;
diff --git a/tests/lib/Repair/ClearFrontendCachesTest.php b/tests/lib/Repair/ClearFrontendCachesTest.php
index ea33d331c4d..9acd1f4df17 100644
--- a/tests/lib/Repair/ClearFrontendCachesTest.php
+++ b/tests/lib/Repair/ClearFrontendCachesTest.php
@@ -22,6 +22,7 @@
*/
namespace Test\Repair;
+
use OC\Template\JSCombiner;
use OC\Template\SCSSCacher;
use OCP\ICache;
diff --git a/tests/lib/Repair/RepairInvalidSharesTest.php b/tests/lib/Repair/RepairInvalidSharesTest.php
index ed25a81ca1f..23e6b2dad5f 100644
--- a/tests/lib/Repair/RepairInvalidSharesTest.php
+++ b/tests/lib/Repair/RepairInvalidSharesTest.php
@@ -8,7 +8,6 @@
namespace Test\Repair;
-
use OC\Repair\RepairInvalidShares;
use OC\Share\Constants;
use OCP\IConfig;
diff --git a/tests/lib/Repair/RepairSqliteAutoincrementTest.php b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
index 66b30ca033f..c740384fc0f 100644
--- a/tests/lib/Repair/RepairSqliteAutoincrementTest.php
+++ b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Repair;
+
use OCP\Migration\IOutput;
/**
diff --git a/tests/lib/RichObjectStrings/DefinitionsTest.php b/tests/lib/RichObjectStrings/DefinitionsTest.php
index 829689704e7..acf5256a7f3 100644
--- a/tests/lib/RichObjectStrings/DefinitionsTest.php
+++ b/tests/lib/RichObjectStrings/DefinitionsTest.php
@@ -21,7 +21,6 @@
namespace Test\RichObjectStrings;
-
use OCP\RichObjectStrings\Definitions;
use Test\TestCase;
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index 0c344248f77..63ad22c8200 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -21,7 +21,6 @@
namespace Test\RichObjectStrings;
-
use OC\RichObjectStrings\Validator;
use OCP\RichObjectStrings\Definitions;
use Test\TestCase;
diff --git a/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
index c4749513140..ca37623177f 100644
--- a/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
+++ b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
@@ -21,7 +21,6 @@
namespace Test\Security\CSP;
-
use OC\Security\CSP\ContentSecurityPolicyManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Security\CSP\AddContentSecurityPolicyEvent;
diff --git a/tests/lib/ServerTest.php b/tests/lib/ServerTest.php
index fbedad61fd7..ada25247393 100644
--- a/tests/lib/ServerTest.php
+++ b/tests/lib/ServerTest.php
@@ -23,6 +23,7 @@
*/
namespace Test;
+
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\App\AppStore\Fetcher\CategoryFetcher;
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php
index d17988f4d11..b90e18a6238 100644
--- a/tests/lib/Share/ShareTest.php
+++ b/tests/lib/Share/ShareTest.php
@@ -20,6 +20,7 @@
*/
namespace Test\Share;
+
use OC\Share\Share;
use OCP\IGroup;
use OCP\IGroupManager;
diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php
index a789d07b12e..54a8b85289d 100644
--- a/tests/lib/TagsTest.php
+++ b/tests/lib/TagsTest.php
@@ -21,6 +21,7 @@
*/
namespace Test;
+
use OCP\IUser;
use OCP\IUserSession;
diff --git a/tests/lib/Traits/ClientServiceTrait.php b/tests/lib/Traits/ClientServiceTrait.php
index d4f540e6c36..cab28e76dba 100644
--- a/tests/lib/Traits/ClientServiceTrait.php
+++ b/tests/lib/Traits/ClientServiceTrait.php
@@ -21,7 +21,6 @@
namespace Test\Traits;
-
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\Http\Client\IResponse;
diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php
index afde88e3995..438835f2c3f 100644
--- a/tests/lib/UrlGeneratorTest.php
+++ b/tests/lib/UrlGeneratorTest.php
@@ -7,6 +7,7 @@
*/
namespace Test;
+
use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IRequest;
diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php
index 3d53301b325..7cc42e81ba2 100644
--- a/tests/lib/User/ManagerTest.php
+++ b/tests/lib/User/ManagerTest.php
@@ -8,6 +8,7 @@
*/
namespace Test\User;
+
use OC\AllConfig;
use OC\User\Database;
use OC\User\Manager;