Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 12:48:10 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 12:48:10 +0300
commit41b5e5923a44965e435d35d01b5009abb2dd5c97 (patch)
tree1d832f87ecbaa33c5ad6e09792e5ae5a0f760fe6 /apps
parent813bdc1ce8a45039fa17aac12bd078466a0034d0 (diff)
Use exactly one empty line after the namespace declaration
For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-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
188 files changed, 17 insertions, 175 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;