]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unused imports 20170/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 25 Mar 2020 21:08:08 +0000 (22:08 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 25 Mar 2020 21:08:08 +0000 (22:08 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
197 files changed:
apps/accessibility/lib/Controller/ConfigController.php
apps/cloud_federation_api/lib/Config.php
apps/comments/lib/Controller/Notifications.php
apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php
apps/contactsinteraction/lib/AppInfo/Application.php
apps/dav/lib/CalDAV/Activity/Provider/Event.php
apps/dav/lib/CalDAV/Calendar.php
apps/dav/lib/CalDAV/Integration/ICalendarProvider.php
apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php
apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
apps/dav/lib/CardDAV/Integration/IAddressBookProvider.php
apps/dav/lib/Command/ListCalendars.php
apps/dav/lib/Command/MoveCalendar.php
apps/dav/lib/Connector/Sabre/Node.php
apps/dav/lib/Connector/Sabre/Principal.php
apps/dav/lib/Connector/Sabre/QuotaPlugin.php
apps/dav/lib/Connector/Sabre/ShareeList.php
apps/dav/lib/DAV/CustomPropertiesBackend.php
apps/dav/lib/Migration/Version1011Date20190725113607.php
apps/dav/lib/Upload/UploadFolder.php
apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php
apps/dav/tests/unit/CalDAV/CalendarHomeTest.php
apps/dav/tests/unit/CalDAV/Reminder/BackendTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/PushProviderTest.php
apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php
apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php
apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
apps/dav/tests/unit/CardDAV/ConverterTest.php
apps/dav/tests/unit/Command/ListCalendarsTest.php
apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php
apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php
apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
apps/dav/tests/unit/Files/FileSearchBackendTest.php
apps/dav/tests/unit/ServerTest.php
apps/encryption/lib/Command/RecoverUser.php
apps/encryption/tests/RecoveryTest.php
apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php
apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
apps/files/lib/Capabilities.php
apps/files/lib/Controller/ApiController.php
apps/files/lib/Controller/DirectEditingController.php
apps/files/lib/Notification/Notifier.php
apps/files/tests/HelperTest.php
apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php
apps/files_external/lib/AppInfo/Application.php
apps/files_external/lib/Lib/Backend/InvalidBackend.php
apps/files_external/lib/Lib/Backend/Swift.php
apps/files_external/lib/Migration/StorageMigrator.php
apps/files_external/tests/Controller/GlobalStoragesControllerTest.php
apps/files_sharing/lib/Controller/PublicPreviewController.php
apps/files_sharing/lib/Controller/ShareesAPIController.php
apps/files_sharing/lib/Helper.php
apps/files_sharing/lib/Hooks.php
apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
apps/files_sharing/tests/TestCase.php
apps/files_trashbin/lib/AppInfo/Application.php
apps/files_trashbin/lib/Sabre/AbstractTrash.php
apps/files_trashbin/lib/Sabre/PropfindPlugin.php
apps/files_trashbin/lib/Storage.php
apps/files_trashbin/lib/Trash/ITrashBackend.php
apps/files_trashbin/lib/Trash/TrashManager.php
apps/files_trashbin/tests/TrashbinTest.php
apps/files_versions/lib/BackgroundJob/ExpireVersions.php
apps/files_versions/lib/Sabre/RestoreFolder.php
apps/files_versions/lib/Sabre/VersionCollection.php
apps/files_versions/lib/Versions/IVersionBackend.php
apps/files_versions/tests/Controller/PreviewControllerTest.php
apps/files_versions/tests/VersioningTest.php
apps/settings/lib/AppInfo/Application.php
apps/settings/lib/Controller/AuthSettingsController.php
apps/settings/lib/Controller/UsersController.php
apps/settings/lib/Mailer/NewUserMailHelper.php
apps/settings/lib/Settings/Admin/Sharing.php
apps/settings/tests/Mailer/NewUserMailHelperTest.php
apps/theming/lib/Controller/ThemingController.php
apps/theming/tests/Controller/IconControllerTest.php
apps/theming/tests/Controller/ThemingControllerTest.php
apps/theming/tests/ImageManagerTest.php
apps/theming/tests/ThemingDefaultsTest.php
apps/theming/tests/UtilTest.php
apps/twofactor_backupcodes/lib/AppInfo/Application.php
apps/twofactor_backupcodes/lib/Db/BackupCodeMapper.php
apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php
apps/updatenotification/lib/Settings/Admin.php
apps/updatenotification/tests/Settings/AdminTest.php
apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php
apps/user_ldap/tests/Jobs/SyncTest.php
apps/user_ldap/tests/Settings/AdminTest.php
apps/user_ldap/tests/User_ProxyTest.php
apps/workflowengine/lib/Check/FileSize.php
build/integration/features/bootstrap/CapabilitiesContext.php
build/integration/features/bootstrap/Download.php
build/integration/features/bootstrap/FederationContext.php
build/integration/features/bootstrap/FilesDropContext.php
build/integration/features/bootstrap/ShareesContext.php
build/integration/features/bootstrap/SharingContext.php
core/Application.php
core/Command/App/CheckCode.php
core/Command/TwoFactorAuth/Disable.php
core/Controller/CssController.php
core/Controller/RecommendedAppsController.php
core/Controller/SetupController.php
core/Migrations/Version15000Date20181015062942.php
core/Migrations/Version18000Date20191204114856.php
lib/private/App/AppStore/Fetcher/AppFetcher.php
lib/private/App/AppStore/Fetcher/Fetcher.php
lib/private/App/CodeChecker/InfoChecker.php
lib/private/App/DependencyAnalyzer.php
lib/private/AppFramework/Middleware/PublicShare/PublicShareMiddleware.php
lib/private/AppFramework/Middleware/Security/FeaturePolicyMiddleware.php
lib/private/AppFramework/Middleware/SessionMiddleware.php
lib/private/AppFramework/OCS/BaseResponse.php
lib/private/Authentication/Events/ARemoteWipeEvent.php
lib/private/Authentication/Listeners/RemoteWipeActivityListener.php
lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php
lib/private/Authentication/Token/RemoteWipe.php
lib/private/Authentication/TwoFactorAuth/Manager.php
lib/private/Authentication/TwoFactorAuth/ProviderManager.php
lib/private/Collaboration/Resources/Manager.php
lib/private/DB/AdapterPgSql.php
lib/private/DB/Connection.php
lib/private/DirectEditing/Manager.php
lib/private/Files/Filesystem.php
lib/private/Files/Type/Loader.php
lib/private/Lock/DBLockingProvider.php
lib/private/Log/Systemdlog.php
lib/private/Preview/Generator.php
lib/private/Preview/GeneratorHelper.php
lib/private/Session/Internal.php
lib/private/Settings/Manager.php
lib/private/Setup.php
lib/private/Share/Share.php
lib/private/Share20/DefaultShareProvider.php
lib/private/Share20/ProviderFactory.php
lib/private/User/Database.php
lib/private/legacy/files.php
lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
lib/public/AppFramework/Http/Template/LinkMenuAction.php
lib/public/Group/Events/BeforeGroupCreatedEvent.php
lib/public/IUser.php
lib/public/Share/IProviderFactory.php
lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php
tests/Core/Command/Maintenance/UpdateTheme.php
tests/Core/Controller/OCSControllerTest.php
tests/acceptance/features/bootstrap/FileListAncestorSetter.php
tests/lib/App/CodeChecker/InfoCheckerTest.php
tests/lib/AppFramework/Controller/AuthPublicShareControllerTest.php
tests/lib/AppFramework/Controller/ControllerTest.php
tests/lib/AppFramework/Controller/PublicShareControllerTest.php
tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
tests/lib/AppFramework/Middleware/MiddlewareDispatcherTest.php
tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/FeaturePolicyMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php
tests/lib/Authentication/Listeners/RemoteWipeActivityListenerTest.php
tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php
tests/lib/Authentication/Login/UidLoginCommandTest.php
tests/lib/Authentication/Token/ManagerTest.php
tests/lib/Authentication/TwoFactorAuth/ManagerTest.php
tests/lib/Authentication/TwoFactorAuth/ProviderLoaderTest.php
tests/lib/Collaboration/Collaborators/SearchResultTest.php
tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php
tests/lib/DirectEditing/ManagerTest.php
tests/lib/Encryption/DecryptAllTest.php
tests/lib/Files/Cache/UpdaterLegacyTest.php
tests/lib/Files/Cache/UpdaterTest.php
tests/lib/Files/EtagTest.php
tests/lib/Files/FileInfoTest.php
tests/lib/Files/Node/FolderTest.php
tests/lib/Files/Node/NodeTest.php
tests/lib/Files/Node/RootTest.php
tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
tests/lib/Files/SimpleFS/SimpleFileTest.php
tests/lib/Files/SimpleFS/SimpleFolderTest.php
tests/lib/Group/GroupTest.php
tests/lib/InstallerTest.php
tests/lib/Log/LogFactoryTest.php
tests/lib/Mail/MailerTest.php
tests/lib/Notification/ManagerTest.php
tests/lib/Preview/BackgroundCleanupJobTest.php
tests/lib/Preview/GeneratorTest.php
tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
tests/lib/Security/CertificateManagerTest.php
tests/lib/Security/FeaturePolicy/FeaturePolicyManagerTest.php
tests/lib/Security/IdentityProof/ManagerTest.php
tests/lib/Security/RateLimiting/LimiterTest.php
tests/lib/Settings/ManagerTest.php
tests/lib/Share/ShareTest.php
tests/lib/SystemTag/SystemTagManagerTest.php
tests/lib/Template/IconsCacherTest.php
tests/lib/Template/JSCombinerTest.php
tests/lib/Template/SCSSCacherTest.php

index a84281501cad59b67d38c99a33829a20042c78ca..750a1fbe11de06cfa5615b4665a35cb710893cf2 100644 (file)
@@ -30,7 +30,6 @@ declare(strict_types=1);
 namespace OCA\Accessibility\Controller;
 
 use OCA\Accessibility\AccessibilityProvider;
-use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCS\OCSBadRequestException;
 use OCP\AppFramework\OCSController;
index 7addd27e18baf357d82848efd4fd990733bed939..cd2b333c237efb94aecb2c05adef9f1651beeca1 100644 (file)
@@ -23,8 +23,6 @@
 
 namespace OCA\CloudFederationAPI;
 use OCP\Federation\ICloudFederationProviderManager;
-use OCP\GlobalScale\IConfig as IGsConfig;
-use OCP\IConfig;
 
 /**
  * Class config
index eab5a842fa69423d597813e9d2816450dcc14bfc..6610b56b689184efe3abcfcd3f6eca43c37caef1 100644 (file)
@@ -30,7 +30,6 @@ use OCP\AppFramework\Http\RedirectResponse;
 use OCP\AppFramework\Http\Response;
 use OCP\Comments\IComment;
 use OCP\Comments\ICommentsManager;
-use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
 use OCP\IRequest;
 use OCP\IURLGenerator;
index 63d4b06b4226f68e4913520a3cdbd821ee751a3a..7223019b96ad14af9078cc3db0d06f72e4dff81c 100644 (file)
@@ -28,7 +28,6 @@ namespace OCA\Comments\Tests\Unit\Collaboration;
 use OCA\Comments\Collaboration\CommentersSorter;
 use OCP\Comments\IComment;
 use OCP\Comments\ICommentsManager;
-use OCP\IConfig;
 use Test\TestCase;
 
 class CommentersSorterTest extends TestCase {
index 674034cbe48e601991bd67a73bb260398c64760e..3a7e0111f6c7e22a4f4e556b5600133fc3d73c8d 100644 (file)
@@ -25,15 +25,10 @@ declare(strict_types=1);
 
 namespace OCA\ContactsInteraction\AppInfo;
 
-use OCA\ContactsInteraction\AddressBook;
 use OCA\ContactsInteraction\Listeners\ContactInteractionListener;
-use OCA\ContactsInteraction\Store;
 use OCP\AppFramework\App;
-use OCP\AppFramework\IAppContainer;
 use OCP\Contacts\Events\ContactInteractedWithEvent;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\EventDispatcher\IEventListener;
-use OCP\IL10N;
 
 class Application extends App {
 
index 46e3a95d95e942668befa695250a70c91192ce8b..c554b2b6d20605f9e7dc91e08ffcd0053ddd683b 100644 (file)
@@ -24,7 +24,6 @@
 
 namespace OCA\DAV\CalDAV\Activity\Provider;
 
-use OCA\DAV\CalDAV\CalDavBackend;
 use OCP\Activity\IEvent;
 use OCP\Activity\IEventMerger;
 use OCP\Activity\IManager;
index e3147062b1a18488c588bfda80684fb828ee34b3..7a46060290363353d24d48fe76988dbab6e0ef58 100644 (file)
@@ -27,7 +27,6 @@
 
 namespace OCA\DAV\CalDAV;
 
-use OCA\DAV\CalDAV\Proxy\ProxyMapper;
 use OCA\DAV\DAV\Sharing\IShareable;
 use OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException;
 use OCP\IConfig;
index 29f5f113ef50fb6e976220b48d3df047af4b6488..806d0f13a036f5ec9262efaaefe2d0a132e3f0f7 100644 (file)
@@ -22,7 +22,6 @@
  */
 namespace OCA\DAV\CalDAV\Integration;
 
-use Sabre\CalDAV\ICalendar;
 
 /**
  * Interface ICalendarProvider
index bad549960d981e047174de3182ea960d9c0e9153..5a25fbaa22e78f52d895f8fb8cbddd9e69af6ecf 100644 (file)
@@ -30,7 +30,6 @@ use OCP\IDBConnection;
 use OCP\IGroupManager;
 use OCP\ILogger;
 use OCP\IUserSession;
-use Sabre\DAV\Exception;
 use Sabre\DAV\PropPatch;
 use Sabre\DAVACL\PrincipalBackend\BackendInterface;
 
index a057e29eb2c67a908a699e102de6381835865fc7..3b53487facdbbc831fdd1856cbf224b7d4f7d5a3 100644 (file)
@@ -32,7 +32,6 @@ use Exception;
 use GuzzleHttp\HandlerStack;
 use GuzzleHttp\Middleware;
 use OCA\DAV\CalDAV\CalDavBackend;
-use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\ILogger;
index 4410a7486bf91fbb26fa78349cf8eaa33517e3ad..1299d935c5706052373ffa1a8e1197f7e9644147 100644 (file)
@@ -4,7 +4,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\CardDAV\Integration;
 
-use Sabre\CardDAV\IAddressBook;
 
 /**
  * @since 19.0.0
index fc7d123a27231bef8bda8ffc4b46a6ce2aa68b51..768486a07ebb92011e24297387ccfbbc6bcf1341 100644 (file)
@@ -27,13 +27,7 @@ namespace OCA\DAV\Command;
 
 use OCA\DAV\CalDAV\BirthdayService;
 use OCA\DAV\CalDAV\CalDavBackend;
-use OCA\DAV\Connector\Sabre\Principal;
-use OCP\IConfig;
-use OCP\IDBConnection;
-use OCP\IGroupManager;
 use OCP\IUserManager;
-use OCP\IUserSession;
-use OCP\Share\IManager;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Helper\Table;
 use Symfony\Component\Console\Input\InputArgument;
index 1c43190c4e2752f2fde0c4aff5fa9a86095a3172..f74a5062c2b7349cd907af7258ca2df1ec84a690 100644 (file)
@@ -27,13 +27,10 @@ namespace OCA\DAV\Command;
 
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\CalDAV\Calendar;
-use OCA\DAV\Connector\Sabre\Principal;
 use OCP\IConfig;
-use OCP\IDBConnection;
 use OCP\IGroupManager;
 use OCP\IL10N;
 use OCP\IUserManager;
-use OCP\IUserSession;
 use OCP\Share\IManager as IShareManager;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputArgument;
index f178b2fbfbdfe7742682550100537e69a5b89859..225024a11366835ce85109dda3d233298b65be44 100644 (file)
@@ -45,7 +45,6 @@ use OCP\Files\StorageNotAvailableException;
 use OCP\Share;
 use OCP\Share\Exceptions\ShareNotFound;
 use OCP\Share\IManager;
-use OCP\Share\IShare;
 
 abstract class Node implements \Sabre\DAV\INode {
 
index 41b85f162c8d4bcf6e919933adc13582842d1735..6be21eda3f6a9e7af2cff7f4721251de8a0f069e 100644 (file)
 namespace OCA\DAV\Connector\Sabre;
 
 use OCA\Circles\Exceptions\CircleDoesNotExistException;
-use OCA\DAV\CalDAV\Proxy\Proxy;
 use OCA\DAV\CalDAV\Proxy\ProxyMapper;
 use OCA\DAV\Traits\PrincipalProxyTrait;
 use OCP\App\IAppManager;
 use OCP\AppFramework\QueryException;
 use OCP\IConfig;
-use OCP\IGroup;
 use OCP\IGroupManager;
 use OCP\IUser;
 use OCP\IUserManager;
index 305ce5154a6aeb062f2bd066bd3e1d62cbad0627..39bee3a6656d104998200de6a90fa956060ad8b2 100644 (file)
@@ -28,7 +28,6 @@
 
 namespace OCA\DAV\Connector\Sabre;
 use OCA\DAV\Upload\FutureFile;
-use OCP\Files\FileInfo;
 use OCP\Files\StorageNotAvailableException;
 use Sabre\DAV\Exception\InsufficientStorage;
 use Sabre\DAV\Exception\ServiceUnavailable;
index 48cc0540378a8bfc7aea4f1bdfcc54c2306b3926..67b42aad919a4b23f45ea231573315e4a2f68fea 100644 (file)
@@ -28,8 +28,6 @@ declare(strict_types=1);
 namespace OCA\DAV\Connector\Sabre;
 
 use OCP\Share\IShare;
-use Sabre\Xml\Element;
-use Sabre\Xml\Reader;
 use Sabre\Xml\Writer;
 use Sabre\Xml\XmlSerializable;
 
index 8b0408a461b30ba33d3ce4492198a2874a070282..81fb63dd856e12161e8527f521d07de34b076bdf 100644 (file)
@@ -30,9 +30,6 @@ namespace OCA\DAV\DAV;
 use OCA\DAV\Connector\Sabre\Node;
 use OCP\IDBConnection;
 use OCP\IUser;
-use Sabre\DAV\Exception\NotFound;
-use Sabre\DAV\Exception\ServiceUnavailable;
-use Sabre\DAV\INode;
 use Sabre\DAV\PropertyStorage\Backend\BackendInterface;
 use Sabre\DAV\PropFind;
 use Sabre\DAV\PropPatch;
index 12796334d6b547bdcc4a5ded61a729744e0691ae..c2604c8e274dcf82a6abed797fca37506d3cd787 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
  */
 namespace OCA\DAV\Migration;
 
-use Closure;
 use Doctrine\DBAL\Types\Type;
 use OCP\DB\ISchemaWrapper;
 use OCP\Migration\IOutput;
index 737e7e0b557d8b83b0fb4b0c4d093200ea1e02c1..6778a30b8a2cb4459955944b15d1f428d35ed763 100644 (file)
@@ -24,9 +24,7 @@
 
 namespace OCA\DAV\Upload;
 
-use OCA\DAV\BackgroundJob\UploadCleanup;
 use OCA\DAV\Connector\Sabre\Directory;
-use OCP\BackgroundJob\IJobList;
 use Sabre\DAV\Exception\Forbidden;
 use Sabre\DAV\ICollection;
 
index f0357f203e2169e943d5303bc5692fdadd53219e..99c4db3dfcb76050579c6ce60250e6900ae59458 100644 (file)
@@ -26,8 +26,6 @@ namespace OCA\DAV\Tests\unit\CalDAV;
 
 use OCA\DAV\CalDAV\CachedSubscriptionObject;
 use OCA\DAV\CalDAV\CalDavBackend;
-use OCA\DAV\CalDAV\Calendar;
-use OCA\DAV\CalDAV\CalendarImpl;
 
 class CachedSubscriptionObjectTest extends \Test\TestCase {
 
index 364286edd4b620718bf0f14e3fff026c84ae4a85..53cdad1ad6f817dda5d109cda4937d21ba0240b3 100644 (file)
@@ -31,7 +31,6 @@ use OCA\DAV\CalDAV\Integration\ExternalCalendar;
 use OCA\DAV\CalDAV\Integration\ICalendarProvider;
 use OCA\DAV\CalDAV\Outbox;
 use Sabre\CalDAV\Schedule\Inbox;
-use Sabre\DAV\Exception\NotFound;
 use Sabre\DAV\MkCol;
 use Test\TestCase;
 
index 88300e2ffec900054b8dfc277390857f92e0d921..6a49909902345b1c458f08a13c9ee32554824db2 100644 (file)
@@ -31,7 +31,6 @@ namespace OCA\DAV\Tests\unit\CalDAV\Reminder;
 
 use OCA\DAV\CalDAV\Reminder\Backend as ReminderBackend;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\DB\QueryBuilder\IQueryBuilder;
 use Test\TestCase;
 
 class BackendTest extends TestCase {
index 2d04c605fcf77021bfcfa6a12d8c841891bb8393..3b20acd6dffa09736e3522416971d334f4cbd077 100644 (file)
@@ -36,12 +36,10 @@ use OCP\ILogger;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory as L10NFactory;
-use OCP\Mail\IAttachment;
 use OCP\Mail\IEMailTemplate;
 use OCP\Mail\IMailer;
 use OCP\Mail\IMessage;
 use Sabre\VObject\Component\VCalendar;
-use Test\TestCase;
 
 class EmailProviderTest extends AbstractNotificationProviderTest {
 
index 92ccbfb08f8034f5c1b9b7027c1c3a7b4a3dffa8..0003b5bb6b3d2bb6cf251d1d7e465922982285ec 100644 (file)
@@ -29,7 +29,6 @@ declare(strict_types=1);
 
 namespace OCA\DAV\Tests\unit\CalDAV\Reminder\NotificationProvider;
 
-use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CalDAV\Reminder\NotificationProvider\PushProvider;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\IConfig;
@@ -40,7 +39,6 @@ use OCP\IUser;
 use OCP\L10N\IFactory as L10NFactory;
 use OCP\Notification\IManager;
 use OCP\Notification\INotification;
-use Test\TestCase;
 
 class PushProviderTest extends AbstractNotificationProviderTest {
 
index 7e8ee32cec6478efc81de781bfc78e80e0cb2249..28f44fbf1c08e2b15a9080d8e491d49705239dc4 100644 (file)
@@ -29,15 +29,11 @@ declare(strict_types=1);
 namespace OCA\DAV\Tests\unit\CalDAV\Reminder;
 
 use OCA\DAV\CalDAV\CalDavBackend;
-use OCA\DAV\CalDAV\Reminder\AbstractNotificationProvider;
 use OCA\DAV\CalDAV\Reminder\Backend;
 use OCA\DAV\CalDAV\Reminder\INotificationProvider;
-use OCA\DAV\CalDAV\Reminder\NotificationProvider\EmailProvider;
-use OCA\DAV\CalDAV\Reminder\NotificationProvider\PushProvider;
 use OCA\DAV\CalDAV\Reminder\NotificationProviderManager;
 use OCA\DAV\CalDAV\Reminder\ReminderService;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\IGroup;
 use OCP\IGroupManager;
 use OCP\IUser;
 use OCP\IUserManager;
index 148e7627af6aaa34400b7f367567e01fd707bafd..a31968377fb5b9e8fb5e4b8667484f2a12674a84 100644 (file)
@@ -26,7 +26,6 @@ namespace OCA\DAV\Tests\unit\CalDAV\ResourceBooking;
 
 use OCA\DAV\CalDAV\Proxy\Proxy;
 use OCA\DAV\CalDAV\Proxy\ProxyMapper;
-use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IGroupManager;
 use OCP\ILogger;
 use OCP\IUser;
index b1da96f4c037c32b26a5f7a91c37d0cc0527c91d..7b65009cb364612fc0a947bc2b93f1033dca42b4 100644 (file)
@@ -28,7 +28,6 @@
 
 namespace OCA\DAV\Tests\unit\CalDAV\Schedule;
 
-use OC\Mail\Mailer;
 use OCA\DAV\CalDAV\Schedule\IMipPlugin;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\DB\QueryBuilder\IQueryBuilder;
index 251ce88457b08896fcc86256e43d862fcd7669a8..9298edb53ad7386299a1e87b36825acc8ad71958 100644 (file)
@@ -32,7 +32,6 @@
 
 namespace OCA\DAV\Tests\unit\CardDAV;
 
-use InvalidArgumentException;
 use OCA\DAV\CalDAV\Proxy\ProxyMapper;
 use OCA\DAV\CardDAV\AddressBook;
 use OCA\DAV\CardDAV\CardDavBackend;
index 110e8ad7bf830832bbe9aacab5328c8539d6e47f..0c129b0de7d51c0ac9c55a98bc2dd114ff2830bc 100644 (file)
@@ -29,7 +29,6 @@ namespace OCA\DAV\Tests\unit\CardDAV;
 
 use OC\Accounts\AccountManager;
 use OCA\DAV\CardDAV\Converter;
-use OCP\IDBConnection;
 use OCP\IImage;
 use OCP\IUser;
 use PHPUnit_Framework_MockObject_MockObject;
index 42e24be5cd3506a7ebd58306311459056f0b74e6..7d2fdc6b1577263430a8e57b6c3ae742742e368a 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OCA\DAV\Tests\Command;
 
-use InvalidArgumentException;
 use OCA\DAV\CalDAV\BirthdayService;
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\Command\ListCalendars;
index 56ad3b36f73e24ed47bdd6bd0c79e2f7b8fee768..c1acc22f13627bc01a501d0cccd501033f355476 100644 (file)
 
 namespace OCA\DAV\Tests\unit\Connector\Sabre;
 use OC\Files\View;
-use OCA\DAV\Connector\Sabre\Directory;
 use OCA\DAV\Connector\Sabre\QuotaPlugin;
-use OCA\DAV\Files\FilesHome;
 use OCP\Files\FileInfo;
-use Sabre\DAV\Exception\InsufficientStorage;
-use Sabre\DAV\Tree;
 use Test\TestCase;
 
 /**
index 3769399b6243b3984982373ca46288772db6ea23..07396f6f53559d7656ab79e26b7598f94212df09 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;
 
-use OC\Connector\Sabre\Exception\FileLocked;
 use OCP\AppFramework\Http;
 use OCP\Lock\ILockingProvider;
 
index 811c4cac2838d1775551263d4c5d830e9a04d8b4..a6b89b2137c3cb40f8d13f36eeaee14cb0b1ae1a 100644 (file)
@@ -29,7 +29,6 @@ declare(strict_types=1);
 namespace OCA\DAV\Tests\Unit\DAV\Controller;
 
 use OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer;
-use OCA\DAV\CalDAV\Schedule\Plugin;
 use OCA\DAV\Controller\InvitationResponseController;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Utility\ITimeFactory;
index 45aab9af1f562dca720cbaca338a0c1e0003e86f..ea3f2e51b07d598247918930bc7b55e86837bda3 100644 (file)
 
 namespace OCA\DAV\Tests\DAV;
 
-use OCA\DAV\Connector\Sabre\Node;
 use OCA\DAV\DAV\CustomPropertiesBackend;
 use OCP\IDBConnection;
 use OCP\IUser;
-use Sabre\DAV\Exception\NotFound;
-use Sabre\DAV\INode;
 use Sabre\DAV\PropFind;
 use Sabre\DAV\PropPatch;
 use Sabre\DAV\Tree;
index 2f8dec6248074625b968713570273a87ef5ecc87..7d06eecea89af9a242abeb1321a8dcbab87d756c 100644 (file)
@@ -43,10 +43,7 @@ use OCP\Share\IManager;
 use SearchDAV\Backend\SearchPropertyDefinition;
 use SearchDAV\Query\Limit;
 use SearchDAV\Query\Query;
-use SearchDAV\XML\BasicSearch;
-use SearchDAV\XML\Literal;
 use SearchDAV\XML\Operator;
-use SearchDAV\XML\Scope;
 use Test\TestCase;
 
 class FileSearchBackendTest extends TestCase {
index a880e898479fc0b83263028dc1637e4c42a4b5c1..c9bdb2627c507b7b92ba7bd1cd9182efa5d7f504 100644 (file)
@@ -26,7 +26,6 @@
 
 namespace OCA\DAV\Tests\unit;
 
-use OCA\DAV\AppInfo\PluginManager;
 use OCA\DAV\Server;
 use OCP\IRequest;
 
index 5d7909a3e9862540747a9ea69cae74db64338f43..fee9195cf1e75104a27840f13ad010ca7538ca70 100644 (file)
 namespace OCA\Encryption\Command;
 
 
-use OC\Files\Filesystem;
-use OC\User\NoUserException;
-use OCA\Encryption\Crypto\Crypt;
-use OCA\Encryption\KeyManager;
-use OCA\Encryption\Recovery;
 use OCA\Encryption\Util;
 use OCP\IConfig;
 use OCP\IUserManager;
index a76d5f7d5627b61a7f70b528583e42bb2bec422a..b949034270706a2906f07f986904fa88bb91bf26 100644 (file)
@@ -33,11 +33,9 @@ use OCA\Encryption\Crypto\Crypt;
 use OCA\Encryption\KeyManager;
 use OCA\Encryption\Recovery;
 use OCP\Encryption\IFile;
-use OCP\Encryption\Keys\IStorage;
 use OCP\IConfig;
 use OCP\IUser;
 use OCP\IUserSession;
-use OCP\Security\ISecureRandom;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
 
index c0c9ce9bc8c94283949d5678325c75b5b1e813cf..bf2948b0f64cd033b93fdd529f91b50661a86104 100644 (file)
 
 namespace OCA\FederatedFileSharing\Controller;
 
-use OC\Files\Filesystem;
 use OC\HintException;
-use OC\Share\Helper;
 use OCA\FederatedFileSharing\AddressHandler;
 use OCA\FederatedFileSharing\FederatedShareProvider;
-use OCA\Files_Sharing\External\Manager;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\JSONResponse;
 use OCP\Federation\ICloudIdManager;
-use OCP\Files\StorageInvalidException;
 use OCP\Http\Client\IClientService;
 use OCP\IL10N;
 use OCP\ILogger;
@@ -47,7 +43,6 @@ use OCP\IRequest;
 use OCP\ISession;
 use OCP\IUserSession;
 use OCP\Share\IManager;
-use OCP\Util;
 
 /**
  * Class MountPublicLinkController
index 805b79f4396ed816c1ea507578fcaf76aa62b1ba..a99dfb55801e6e186269c32bc0efbb26cb4319a1 100644 (file)
 
 namespace OCA\FederatedFileSharing\Tests;
 
-use OC\AppFramework\Http;
-use OC\Federation\CloudIdManager;
-use OC\Files\Filesystem;
 use OCA\FederatedFileSharing\Controller\RequestHandlerController;
-use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\Federation\ICloudFederationFactory;
 use OCP\Federation\ICloudFederationProvider;
 use OCP\Federation\ICloudFederationProviderManager;
 use OCP\Federation\ICloudFederationShare;
 use OCP\Federation\ICloudIdManager;
-use OCP\Http\Client\IClient;
-use OCP\Http\Client\IClientService;
-use OCP\Http\Client\IResponse;
-use OCP\IConfig;
 use OCP\IDBConnection;
 use OCP\ILogger;
 use OCP\IRequest;
 use OCP\IUserManager;
 use OCP\Share;
 use OCP\Share\IShare;
-use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
 
 /**
  * Class RequestHandlerTest
index 7e6d5521fd7cfaebb5178b849883acbbfe34dbea..ad5c4e1b773d6be02ab4c64b95d37e99366406ae 100644 (file)
 
 namespace OCA\Files;
 
-use OC\DirectEditing\Manager;
 use OCA\Files\Service\DirectEditingService;
 use OCP\Capabilities\ICapability;
-use OCP\DirectEditing\ACreateEmpty;
-use OCP\DirectEditing\ACreateFromTemplate;
-use OCP\DirectEditing\IEditor;
-use OCP\DirectEditing\RegisterDirectEditorEvent;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IConfig;
 use OCP\IURLGenerator;
 
index 9e6b6b550fc3529ca20447adb2543913acee8ade..3819e07909dd14b3c56fcf78eed3402b115fbb7e 100644 (file)
@@ -52,7 +52,6 @@ use OCP\IPreview;
 use OCP\IRequest;
 use OCP\IUserSession;
 use OCP\Share\IManager;
-use Sabre\VObject\Property\Boolean;
 
 /**
  * Class ApiController
index 099c65f73e64596a17c56b84a6d4b905ee55f9df..ccef73b6a06eb70a332c7412e6acc038979ecf17 100644 (file)
@@ -29,9 +29,6 @@ use OCA\Files\Service\DirectEditingService;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\OCSController;
-use OCP\DirectEditing\ACreateEmpty;
-use OCP\DirectEditing\ACreateFromTemplate;
-use OCP\DirectEditing\IEditor;
 use OCP\DirectEditing\IManager;
 use OCP\DirectEditing\RegisterDirectEditorEvent;
 use OCP\EventDispatcher\IEventDispatcher;
index 604408eee1026e4c6f4381d2dc7df00b8555eff9..529eb7cbc77ec33dfee6d1fd2d90dc8c45f87635 100644 (file)
@@ -30,8 +30,6 @@ namespace OCA\Files\Notification;
 
 use OCA\Files\Db\TransferOwnershipMapper;
 use OCP\AppFramework\Db\DoesNotExistException;
-use OCP\AppFramework\Http;
-use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\IURLGenerator;
 use OCP\L10N\IFactory;
index b756386a2bf48420458f2e951be06039aece1637..979894ec0c65e26d93895ada3fc331eb74f7700e 100644 (file)
@@ -25,7 +25,6 @@
  *
  */
 
-use OCA\Files\Tests;
 
 /**
  * Class Helper
index 5a79c49fecf551bec53b605bb0b0c09c742b1765..a48de62e69dc6d369ac5f5f0bf51053399c010ce 100644 (file)
@@ -13,14 +13,11 @@ use Icewind\SMB\Exception\DependencyException;
 use Icewind\SMB\Exception\FileInUseException;
 use Icewind\SMB\Exception\InvalidTypeException;
 use Icewind\SMB\Exception\NotFoundException;
-use Icewind\SMB\Exception\InvalidRequestException;
 use Icewind\SMB\IFileInfo;
 use Icewind\SMB\INotifyHandler;
 use Icewind\SMB\IServer;
 use Icewind\SMB\ISystem;
 use Icewind\Streams\CallbackWrapper;
-use Icewind\SMB\Native\NativeShare;
-use Icewind\SMB\Native\NativeServer;
 
 class Share extends AbstractShare {
        /**
index 761eeff113f67ef32a511d8b3b9d15643d7c005d..47f52fbcb8767552afca7a98eb1dddd46711ed41 100644 (file)
@@ -62,8 +62,6 @@ use OCA\Files_External\Lib\Config\IAuthMechanismProvider;
 use OCA\Files_External\Lib\Config\IBackendProvider;
 use OCA\Files_External\Service\BackendService;
 use OCP\AppFramework\App;
-use OCP\AppFramework\IAppContainer;
-use OCP\Files\Config\IUserMountCache;
 use OCP\IGroup;
 use OCP\IUser;
 use Symfony\Component\EventDispatcher\GenericEvent;
index 5b574d8cd00b56eca8cff998ee264ab474655880..fc9b0992197fe400ec1f583a56f3360e3513aee0 100644 (file)
@@ -24,7 +24,6 @@
 
 namespace OCA\Files_External\Lib\Backend;
 
-use OCA\Files_External\Lib\Storage\InvalidStorage;
 use OCA\Files_External\Lib\StorageConfig;
 use OCP\Files\StorageNotAvailableException;
 use OCP\IUser;
index e2d6c6848c4fad90f571e7fe5eac29369a9363ff..86238b542b1d49295d40c62a3e3051d4d9c346b5 100644 (file)
@@ -30,7 +30,6 @@ use OCA\Files_External\Lib\Auth\OpenStack\OpenStackV2;
 use OCA\Files_External\Lib\Auth\OpenStack\Rackspace;
 use OCA\Files_External\Lib\DefinitionParameter;
 use OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
-use OCA\Files_External\Service\BackendService;
 use OCP\IL10N;
 
 class Swift extends Backend {
index 8802e7b82b91ee085cfc4a55c327ebbc1016277c..5fef0d3ac38400cee2e213d1aa9260298de0cd4d 100644 (file)
@@ -26,7 +26,6 @@ namespace OCA\Files_External\Migration;
 
 use OCA\Files_External\Service\BackendService;
 use OCA\Files_External\Service\DBConfigService;
-use OCA\Files_External\Service\GlobalLegacyStoragesService;
 use OCA\Files_External\Service\LegacyStoragesService;
 use OCA\Files_External\Service\StoragesService;
 use OCA\Files_External\Service\UserLegacyStoragesService;
index f784a7266944202cb3c968619464cee80c097287..b829525b516316029c5c0ed5e9c3e5cff2ac57f9 100644 (file)
@@ -28,7 +28,6 @@ namespace OCA\Files_External\Tests\Controller;
 
 use OCA\Files_External\Controller\GlobalStoragesController;
 use OCA\Files_External\Service\BackendService;
-use OCP\AppFramework\Http;
 use OCP\IL10N;
 use OCP\ILogger;
 use OCP\IRequest;
index 076b3a381f8e11eceb671e9ad6a6188d719e1274..d0c2296f0dbfec290bf86f5eff8070fcca215832 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OCA\Files_Sharing\Controller;
 
-use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Http\FileDisplayResponse;
index 14ed90411498d8dba6d745ba626ddd4655816e3b..63c96151ebc5ebbd42082a73abfdff8df096bb19 100644 (file)
@@ -34,7 +34,6 @@ declare(strict_types=1);
 
 namespace OCA\Files_Sharing\Controller;
 
-use function array_filter;
 use function array_slice;
 use function array_values;
 use Generator;
index b487aab6d7f84581f040f5516f1afd74e9fbafff..3efb4e25eef4285b559fe8bbeb6c37613d34d7be 100644 (file)
@@ -29,9 +29,6 @@ namespace OCA\Files_Sharing;
 
 use OC\Files\Filesystem;
 use OC\Files\View;
-use OCP\Files\NotFoundException;
-use OCP\Share\Exceptions\ShareNotFound;
-use OCP\User;
 
 class Helper {
 
index 831e37e7e06e69b84331e64dd22c07514b167f59..cb9e20bb869216ce057847687f700fcfefdc814f 100644 (file)
@@ -29,7 +29,6 @@
 namespace OCA\Files_Sharing;
 
 use OC\Files\Filesystem;
-use OCA\FederatedFileSharing\DiscoveryManager;
 
 class Hooks {
 
index de168c43f5279a6fda354cc9e35f8f41d1bced4c..4f0b547e4334581e8104a91678bd0e129ad1d08b 100644 (file)
@@ -27,7 +27,6 @@
 namespace OCA\Files_Sharing\Middleware;
 
 use OCA\Files_Sharing\Controller\ExternalSharesController;
-use OCA\Files_Sharing\Controller\ShareController;
 use OCA\Files_Sharing\Exceptions\S2SException;
 use OCP\App\IAppManager;
 use OCP\AppFramework\Controller;
index 8ea72943be47fc3e6d904bcd445ca452298593c9..c9f024cd67a4f9c2cda74d9dc51c61e792fe7ac7 100644 (file)
@@ -32,7 +32,6 @@
 
 namespace OCA\Files_Sharing\Tests;
 
-use OC\Files\Cache\Scanner;
 use OC\Files\Filesystem;
 use OCA\Files_Sharing\AppInfo\Application;
 use OCP\Share\IShare;
index e6954a7e0baf6f1fe905ed099a22aa6ad63a87b1..59f1b1d8c561169fdd834662d3ce9686b4ef3b5e 100644 (file)
@@ -34,7 +34,6 @@ use OCA\Files_Trashbin\Trash\ITrashManager;
 use OCA\Files_Trashbin\Trash\TrashManager;
 use OCP\AppFramework\App;
 use OCP\AppFramework\IAppContainer;
-use OCP\AppFramework\Utility\ITimeFactory;
 
 class Application extends App {
        public function __construct (array $urlParams = []) {
index a32b42429a5199b959bfa00b17182fb9417ad88d..b1088f132216f7ab33f85ab3a7e37107f5f3d61f 100644 (file)
@@ -29,7 +29,6 @@ namespace OCA\Files_Trashbin\Sabre;
 use OCA\Files_Trashbin\Trash\ITrashItem;
 use OCA\Files_Trashbin\Trash\ITrashManager;
 use OCP\Files\FileInfo;
-use OCP\IUser;
 
 abstract class AbstractTrash implements ITrash {
        /** @var ITrashItem */
index e27400372d39cb7143ad4e346ced43522691d53e..53619c6e85c2d559425d9ef9efff9bed775e561b 100644 (file)
@@ -28,7 +28,6 @@ declare(strict_types=1);
 namespace OCA\Files_Trashbin\Sabre;
 
 use OCA\DAV\Connector\Sabre\FilesPlugin;
-use OCP\Constants;
 use OCP\IPreview;
 use Sabre\DAV\INode;
 use Sabre\DAV\PropFind;
index c9f1a928f3b5df060ec23fcb37f692867f059238..9cf154e9bfdf4a114fbe772d4c17fa306e4a74b9 100644 (file)
@@ -31,7 +31,6 @@ namespace OCA\Files_Trashbin;
 
 use OC\Files\Filesystem;
 use OC\Files\Storage\Wrapper\Wrapper;
-use OC\Files\View;
 use OCA\Files_Trashbin\Events\MoveToTrashEvent;
 use OCA\Files_Trashbin\Trash\ITrashManager;
 use OCP\Encryption\Exceptions\GenericEncryptionException;
index 478dfa3971c95986b2dd7a1daf0d0b3a623d9fbb..e0d7ea50ac80d0cf4fe4758b23a424a33db4c8b5 100644 (file)
@@ -23,9 +23,7 @@
 
 namespace OCA\Files_Trashbin\Trash;
 
-use OCP\Files\FileInfo;
 use OCP\Files\Node;
-use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\Storage\IStorage;
 use OCP\IUser;
 
index d5f8eb1330fd492fea1b883d2fd2859ebab55e60..8d75ac21658dead9b7a95865d6521b2bf8677cbf 100644 (file)
@@ -23,8 +23,6 @@
 
 namespace OCA\Files_Trashbin\Trash;
 
-use OCP\Files\FileInfo;
-use OCP\Files\Mount\IMountPoint;
 use OCP\Files\Storage\IStorage;
 use OCP\IUser;
 
index e682d0dd51f40fa5e120bebf0c0c1ecb889e34d0..2e2065383841f3153493467b8d2de8f8979c5029 100644 (file)
@@ -28,7 +28,6 @@
  *
  */
 
-use OCA\Files_Trashbin\Tests;
 use OCA\Files_Sharing\AppInfo\Application;
 
 /**
index c45e7c4a244413eb45d909b9b608b9d1ab6c4483..cb2e0abb0c47326b91c8ba5a00c9d88d3b5fc584 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OCA\Files_Versions\BackgroundJob;
 
-use OCA\Files_Versions\AppInfo\Application;
 use OCA\Files_Versions\Expiration;
 use OCA\Files_Versions\Storage;
 use OCP\IUser;
index eef12dcfd1814297cec40eb2007afbd9e69ee9f6..89f379e3c1cfff00580165b9f71b339513919823 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 
 namespace OCA\Files_Versions\Sabre;
 
-use OCP\IUser;
 use Sabre\DAV\Exception\Forbidden;
 use Sabre\DAV\ICollection;
 use Sabre\DAV\IMoveTarget;
index eeb5453e9a047151d59ccdec0ffeb6c1ce8f9887..e2ad562e8bcb724c13f6aef0c5080599cbb071c2 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 
 namespace OCA\Files_Versions\Sabre;
 
-use OCA\Files_Versions\Storage;
 use OCA\Files_Versions\Versions\IVersion;
 use OCA\Files_Versions\Versions\IVersionManager;
 use OCP\Files\File;
index d526df6996776e94cf4f7c83ebf68fdfeaa3e7fc..dd7e5f96398d190ab407ce522ae63a04c94c11b4 100644 (file)
@@ -29,7 +29,6 @@ namespace OCA\Files_Versions\Versions;
 use OCP\Files\File;
 use OCP\Files\FileInfo;
 use OCP\Files\NotFoundException;
-use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\Storage\IStorage;
 use OCP\IUser;
 
index e5461d230708d7954a63f850e178089e83c32b3e..084bb25da82cd7b63f35c92688dd747efa3dfab5 100644 (file)
@@ -24,7 +24,6 @@
 
 namespace OCA\Files_Versions\Tests\Controller;
 
-use OC\User\User;
 use OCA\Files_Versions\Controller\PreviewController;
 use OCA\Files_Versions\Versions\IVersionManager;
 use OCP\AppFramework\Http;
index e07a1816c306202ca92aca09a8fe498be14456bc..7517ec88e4872743753b181a8c18deee0e245863 100644 (file)
@@ -38,7 +38,6 @@ require_once __DIR__ . '/../appinfo/app.php';
 use OC\Files\Storage\Temporary;
 use OCP\IConfig;
 use OCP\IUser;
-use OCP\Share\IShare;
 
 /**
  * Class Test_Files_versions
index 4d837500c4ccac15fae54f6b2a067e558ce963ce..96c8734129017d239f37c32b2fcf863192bd720c 100644 (file)
@@ -37,13 +37,7 @@ use OC\AppFramework\Utility\TimeFactory;
 use OC\Authentication\Token\IProvider;
 use OC\Authentication\Token\IToken;
 use OC\Server;
-use OCA\Settings\Activity\GroupProvider;
-use OCA\Settings\Activity\GroupSetting;
 use OCA\Settings\Activity\Provider;
-use OCA\Settings\Activity\SecurityFilter;
-use OCA\Settings\Activity\SecurityProvider;
-use OCA\Settings\Activity\SecuritySetting;
-use OCA\Settings\Activity\Setting;
 use OCA\Settings\Hooks;
 use OCA\Settings\Mailer\NewUserMailHelper;
 use OCA\Settings\Middleware\SubadminMiddleware;
index 7f6d74e5fc76c42a8f67ca05acff4f973a0ccc90..405044746a376b79f884df5be6581484900e023b 100644 (file)
@@ -40,7 +40,6 @@ use OC\Authentication\Exceptions\WipeTokenException;
 use OC\Authentication\Token\INamedToken;
 use OC\Authentication\Token\IProvider;
 use OC\Authentication\Token\IToken;
-use OC\Authentication\Token\IWipeableToken;
 use OC\Authentication\Token\RemoteWipe;
 use OCA\Settings\Activity\Provider;
 use OCP\Activity\IManager;
index cfbe35eb201c71ebffa43ddd9fb7d6933be46def..cb9435e493962358d1463a2cbbb819c4c639bb1b 100644 (file)
@@ -35,7 +35,6 @@ use OC\AppFramework\Http;
 use OC\Encryption\Exceptions\ModuleDoesNotExistsException;
 use OC\ForbiddenException;
 use OC\Security\IdentityProof\Manager;
-use OCA\Settings\AppInfo\Application;
 use OCA\Settings\BackgroundJobs\VerifyUserData;
 use OCA\User_LDAP\User_Proxy;
 use OCP\App\IAppManager;
index 7352ac0ec6f123fc03a32a21881cbf3534d4fa84..ca6a59475270d2a328d733bf93af9d420b01ad44 100644 (file)
@@ -33,7 +33,6 @@ namespace OCA\Settings\Mailer;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Defaults;
 use OCP\IConfig;
-use OCP\IL10N;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory;
index 980e579d3608dcca89f627370425fe32aac12af3..080f866ae564ba2738d520064e02fadad8cc870d 100644 (file)
@@ -34,7 +34,6 @@ use OCP\AppFramework\Http\TemplateResponse;
 use OCP\Constants;
 use OCP\IConfig;
 use OCP\IL10N;
-use OCP\L10N\IFactory;
 use OCP\Settings\ISettings;
 use OCP\Share\IManager;
 use OCP\Util;
index a6371c37a9225725b05db81c228669523c87ce52..7e2fc5141681e83611137a2dc7cc5b97426ebe82 100644 (file)
@@ -32,7 +32,6 @@ namespace OCA\Settings\Tests\Mailer;
 
 use OC\Mail\EMailTemplate;
 use OC\Mail\Message;
-use OCA\Settings\Mailer\NewUserMailHelper;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Defaults;
 use OCP\IConfig;
index d043c64f853dda9f4ca7e98d40dbadf901614271..6a17b23722e3b38b50ad531a18a8d022ecbc1ca8 100644 (file)
@@ -48,8 +48,6 @@ use OCP\AppFramework\Http\DataDownloadResponse;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Http\FileDisplayResponse;
 use OCP\AppFramework\Http\NotFoundResponse;
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\Files\File;
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
 use OCP\Files\NotPermittedException;
index 7f41e8cc6d96f30b3d400bad2703059b46ff1d67..c159c7237ead48dcc8d51cc935a1d6b4caf35607 100644 (file)
@@ -34,7 +34,6 @@ use OCA\Theming\Controller\IconController;
 use OCA\Theming\IconBuilder;
 use OCA\Theming\ImageManager;
 use OCA\Theming\ThemingDefaults;
-use OCA\Theming\Util;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataDisplayResponse;
 use OCP\AppFramework\Http\FileDisplayResponse;
index 8c5f111acee56f9c1f7c0023daf99b860f1c4765..608a03e7bd597ce3dd41baaf61bd53c18456b684 100644 (file)
@@ -35,7 +35,6 @@
 
 namespace OCA\Theming\Tests\Controller;
 
-use OC\Files\AppData\Factory;
 use OC\L10N\L10N;
 use OC\Template\SCSSCacher;
 use OCA\Theming\Controller\ThemingController;
@@ -47,13 +46,11 @@ use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Files\IAppData;
-use OCP\Files\IRootFolder;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\IConfig;
 use OCP\IL10N;
-use OCP\ILogger;
 use OCP\IRequest;
 use OCP\ITempManager;
 use OCP\IURLGenerator;
index 2360006958e894fa73d6a82ad96d044b41251716..fbdadf697e1d313dedc03ecbd37dbc7fb6a86fe8 100644 (file)
@@ -27,7 +27,6 @@
 namespace OCA\Theming\Tests;
 
 use OCA\Theming\ImageManager;
-use OCA\Theming\ThemingDefaults;
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
index 458b602d62b89d4cdb6fa879dc753e70446d3cc1..a06cdb8f7a8e0a941f7b10e7f4767c4dd395065a 100644 (file)
@@ -41,7 +41,6 @@ use OCP\App\IAppManager;
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
-use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\ICache;
 use OCP\ICacheFactory;
 use OCP\IConfig;
index f0f7089b6249a18341b63e9eba8036cfe67aa32f..969d35f7d2787d2c220dbda9cd6d8ca4425bb53b 100644 (file)
@@ -30,7 +30,6 @@ namespace OCA\Theming\Tests;
 use OCA\Theming\Util;
 use OCP\App\IAppManager;
 use OCP\Files\IAppData;
-use OCP\Files\IRootFolder;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\ISimpleFolder;
index d71e7654cb50b62d58cd95c947961dcbea0ad192..4c5d852f9564849b682ee9421ee38e4e212b392a 100644 (file)
@@ -36,7 +36,6 @@ use OCA\TwoFactorBackupCodes\Notifications\Notifier;
 use OCP\AppFramework\App;
 use OCP\Authentication\TwoFactorAuth\IRegistry;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IL10N;
 use OCP\Notification\IManager;
 use OCP\Util;
 
index 8316e9d922312db500e4463c46c065d198f334ff..73883b3eb30c6319ec8a2cd3e852077fa74a5301 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OCA\TwoFactorBackupCodes\Db;
 
-use OCP\AppFramework\Db\Mapper;
 use OCP\AppFramework\Db\QBMapper;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
index c77c6b01d8cda10931825011def43c5deb9645a9..ffb456792a4b8c2516c9d086b7e933e788a33e52 100644 (file)
 
 namespace OCA\TwoFactorBackupCodes\Service;
 
-use BadMethodCallException;
 use OCA\TwoFactorBackupCodes\Db\BackupCode;
 use OCA\TwoFactorBackupCodes\Db\BackupCodeMapper;
 use OCA\TwoFactorBackupCodes\Event\CodesGenerated;
-use OCP\Activity\IManager;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\ILogger;
 use OCP\IUser;
 use OCP\Security\IHasher;
 use OCP\Security\ISecureRandom;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 
 class BackupCodeStorage {
 
index 8d36e774b06a2e34d2d6b2a82d13a20c38ff1476..db2efffc46bf06786035468b8a8d958bfdd6b54b 100644 (file)
@@ -33,7 +33,6 @@ use OCP\AppFramework\Http\TemplateResponse;
 use OCP\IConfig;
 use OCP\IDateTimeFormatter;
 use OCP\IGroupManager;
-use OCP\IUserSession;
 use OCP\L10N\IFactory;
 use OCP\Settings\ISettings;
 use OCP\Support\Subscription\IRegistry;
index af5db66795a55da6a31cccffa804bfdfb2dc68d9..7ac404be57f73e5e0855464cb8a1e205eef877da 100644 (file)
@@ -36,7 +36,6 @@ use OCP\IConfig;
 use OCP\IDateTimeFormatter;
 use OCP\IGroup;
 use OCP\IGroupManager;
-use OCP\IUserSession;
 use OCP\L10N\IFactory;
 use OCP\L10N\ILanguageIterator;
 use OCP\Support\Subscription\IRegistry;
index 4bb5bd71647306b319f433140688c0a3b7ee46b2..b656b50ef50fa1a24fb7877cb8955df9e4d5e03c 100644 (file)
@@ -23,7 +23,6 @@
 
 namespace OCA\User_LDAP\Tests\Integration\Lib\User;
 
-use OC\User\NoUserException;
 use OCA\User_LDAP\Jobs\CleanUp;
 use OCA\User_LDAP\Mapping\UserMapping;
 use OCA\User_LDAP\Tests\Integration\AbstractIntegrationTest;
index dc21255da39ba5d56a1fecfe32e4b149d6307137..8cab95fc801fa23e8e18af7240ae0631cb4b8c0b 100644 (file)
@@ -38,7 +38,6 @@ use OCP\IConfig;
 use OCP\IDBConnection;
 use OCP\IUserManager;
 use OCP\Notification\IManager;
-use function Sodium\memcmp;
 use Test\TestCase;
 
 class SyncTest extends TestCase {
index 54008e3def72f96d0b8608a9a2677baecf644520..8f3a699af5ddde7d6d7a67109ff8c6f515b31f40 100644 (file)
@@ -27,7 +27,6 @@
 namespace OCA\User_LDAP\Tests\Settings;
 
 use OCA\User_LDAP\Configuration;
-use OCA\User_LDAP\Helper;
 use OCA\User_LDAP\Settings\Admin;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\IL10N;
index f2e49d4dbec17737e5d2d8d180f98eafd63a5bee..0a073b3948e8807514b6d1a6bcf24e054410f863 100644 (file)
@@ -27,7 +27,6 @@
 
 namespace OCA\User_LDAP\Tests;
 
-use OCA\User_LDAP\ILDAPUserPlugin;
 use OCA\User_LDAP\ILDAPWrapper;
 use OCA\User_LDAP\User_Proxy;
 use OCA\User_LDAP\UserPluginManager;
index 736a3d932fb5ab2fb65ef5a8b6a6b273b390633a..ce1bd4718f98962b89cc10d192ac10adf4bd3e53 100644 (file)
@@ -27,7 +27,6 @@ use OCP\IL10N;
 use OCP\IRequest;
 use OCP\Util;
 use OCP\WorkflowEngine\ICheck;
-use OCP\WorkflowEngine\IEntity;
 
 class FileSize implements ICheck {
 
index 1de5001d13646794c426dfbe18ed57276299049a..f38ba17551aa5a6987d02c3e936215d14844807c 100644 (file)
  */
 use Behat\Behat\Context\Context;
 use Behat\Behat\Context\SnippetAcceptingContext;
-use Behat\Behat\Hook\Scope\AfterScenarioScope;
-use Behat\Behat\Hook\Scope\BeforeScenarioScope;
-use GuzzleHttp\Client;
-use GuzzleHttp\Message\ResponseInterface;
 use PHPUnit\Framework\Assert;
 
 require __DIR__ . '/../../vendor/autoload.php';
index e3b47b3ef33e4c143623c286043a3482c6859c1b..71a96eb585fcdc62e8361dec3b7c6b03b5566e91 100644 (file)
@@ -22,8 +22,6 @@
  *
  */
 
-use GuzzleHttp\Client;
-use GuzzleHttp\Message\ResponseInterface;
 use PHPUnit\Framework\Assert;
 
 require __DIR__ . '/../../vendor/autoload.php';
index 092f0326d3a01168ed7b501ef1e00194b006715e..d710b9e502d804a6a9d2a39e01dd3d58bbf5d636 100644 (file)
@@ -26,8 +26,6 @@
  */
 use Behat\Behat\Context\Context;
 use Behat\Behat\Context\SnippetAcceptingContext;
-use GuzzleHttp\Client;
-use GuzzleHttp\Message\ResponseInterface;
 
 require __DIR__ . '/../../vendor/autoload.php';
 
index bc54f51cc819e4d7685070e674905f3124d07d38..8f522d6f2ce2227fc660ab0784a6391c57d88c19 100644 (file)
@@ -24,7 +24,6 @@
  */
 use Behat\Behat\Context\Context;
 use Behat\Behat\Context\SnippetAcceptingContext;
-use Behat\Behat\Tester\Exception\PendingException;
 use GuzzleHttp\Client;
 
 require __DIR__ . '/../../vendor/autoload.php';
index 4042bb64f5cd4b33c666c3f06342b00cb2a8e7b7..cf472e0321ed098aab0d6d0122e81ed1ea6cdc56 100644 (file)
@@ -26,8 +26,6 @@
  */
 use Behat\Behat\Context\Context;
 use Behat\Behat\Context\SnippetAcceptingContext;
-use PHPUnit\Framework\Assert;
-use Psr\Http\Message\ResponseInterface;
 
 require __DIR__ . '/../../vendor/autoload.php';
 
index cace64e4f8af595d99a6a62efcb37b18d2301633..ec03283de5a37b37883d83c2bc4f0376cf5ce873 100644 (file)
@@ -22,8 +22,6 @@
  */
 use Behat\Behat\Context\Context;
 use Behat\Behat\Context\SnippetAcceptingContext;
-use PHPUnit\Framework\Assert;
-use Psr\Http\Message\ResponseInterface;
 
 require __DIR__ . '/../../vendor/autoload.php';
 
index 879ac1cff744695e672d5d293db175ff57926ff3..c2da7f8d19467b32e859b6ca0505a0bb79f98635 100644 (file)
@@ -44,7 +44,6 @@ use OC\DB\SchemaWrapper;
 use OCP\AppFramework\App;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IDBConnection;
-use OCP\IServerContainer;
 use OCP\User\Events\UserDeletedEvent;
 use OCP\Util;
 use Symfony\Component\EventDispatcher\GenericEvent;
index b658ccbe2ea18cc40f4fa52102c88fd07e4545aa..3a17114261f884dc64ccbe00839a278e60d4c839 100644 (file)
@@ -34,7 +34,6 @@ use OC\App\CodeChecker\InfoChecker;
 use OC\App\CodeChecker\LanguageParseChecker;
 use OC\App\CodeChecker\PrivateCheck;
 use OC\App\CodeChecker\StrongComparisonCheck;
-use OC\App\InfoParser;
 use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
 use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
 use Symfony\Component\Console\Command\Command;
index d08bf7b767ee71479da20c7955eeb5a93914707d..1dd3a2cf64d655c4ac1c435f17ccaaee78ab96d6 100644 (file)
@@ -23,7 +23,6 @@
 
 namespace OC\Core\Command\TwoFactorAuth;
 
-use OC\Authentication\TwoFactorAuth\Manager;
 use OC\Authentication\TwoFactorAuth\ProviderManager;
 use OCP\IUserManager;
 use Symfony\Component\Console\Input\InputArgument;
index b332ee1aa2698184457157d809e0229ac8ea820d..3e7215966bc02f2a7ab25d50c37bf76083e2bb78 100644 (file)
@@ -41,7 +41,6 @@ use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\ISimpleFolder;
-use OCP\IConfig;
 use OCP\IRequest;
 
 class CssController extends Controller {
index f0860f46a3f4205bd59ed636380a4565a6676f22..fe3435d9be8a3086c6001a2e3b438091da429a46 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OC\Core\Controller;
 
 use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\ContentSecurityPolicy;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Http\StandaloneTemplateResponse;
 use OCP\IInitialStateService;
index 302edccf7a64df7fec97c2dc2d8d912a5c0f569c..fc589392aca5bb59eada5f1b9083de33c9a4a8b9 100644 (file)
@@ -34,7 +34,6 @@ namespace OC\Core\Controller;
 
 use OC\Setup;
 use OCP\ILogger;
-use function urlencode;
 
 class SetupController {
        /** @var Setup */
index 22c430f7a9681e07c20c1aa48e8c10f73b4f0fee..eaeaf0dd268517c9aaee055533c1514da66a858b 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use Doctrine\DBAL\Types\Type;
 use OCP\DB\ISchemaWrapper;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
index 995af4de2f1845f904662ddedf39ac251757663b..256b42f9597854e4928c87805506800d206525ac 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OC\Core\Migrations;
 
 use Closure;
-use Doctrine\DBAL\Types\Type;
 use OCP\DB\ISchemaWrapper;
 use OCP\IDBConnection;
 use OCP\Migration\SimpleMigrationStep;
index d6affe4f09b2c3e9dcbf0fab7fb152c0d612eefc..c0917b17469a83b23c564a68061e987c3510f9c4 100644 (file)
@@ -35,7 +35,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\ILogger;
-use OCP\Util;
 
 class AppFetcher extends Fetcher {
 
index e2876dd28c649311f0adfbd88631b8ddb5e4e21e..fd0600a3ce440a6b432b2bacd9a8b4101398e404 100644 (file)
@@ -38,7 +38,6 @@ use OCP\Files\NotFoundException;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\ILogger;
-use OCP\Util;
 
 abstract class Fetcher {
        const INVALIDATE_AFTER_SECONDS = 300;
index 0db9571d48a9c64c35f9206b794a3946da16c5ed..038fd34f436bcb9269f7ae03e555301627452dfc 100644 (file)
@@ -24,8 +24,6 @@
 namespace OC\App\CodeChecker;
 
 use OC\Hooks\BasicEmitter;
-use OCP\App\AppPathNotFoundException;
-use OCP\App\IAppManager;
 
 class InfoChecker extends BasicEmitter {
 
index a59e8c21735e00b516f84dff5d87aa9ab53f9051..1ebf4c8e292be9aacc839d6928e54a9e3daa1cc5 100644 (file)
@@ -29,7 +29,6 @@
 
 namespace OC\App;
 
-use OCP\IConfig;
 use OCP\IL10N;
 
 class DependencyAnalyzer {
index 131612848cb1740d15763e82222727cb1f5b5691..b6e2611179f6a0bbb902fa7b0da826d4dc09ee58 100644 (file)
@@ -26,7 +26,6 @@ namespace OC\AppFramework\Middleware\PublicShare;
 use OC\AppFramework\Middleware\PublicShare\Exceptions\NeedAuthenticationException;
 use OCP\AppFramework\AuthPublicShareController;
 use OCP\AppFramework\Http\NotFoundResponse;
-use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Middleware;
 use OCP\AppFramework\PublicShareController;
 use OCP\Files\NotFoundException;
index 67d2480a1f252ea5738ec518a6e902812063c22a..63f665f512d11fee8c39c7316d62797f17f84e25 100644 (file)
@@ -26,14 +26,9 @@ declare(strict_types=1);
 
 namespace OC\AppFramework\Middleware\Security;
 
-use OC\Security\CSP\ContentSecurityPolicyManager;
-use OC\Security\CSP\ContentSecurityPolicyNonceManager;
-use OC\Security\CSRF\CsrfTokenManager;
 use OC\Security\FeaturePolicy\FeaturePolicy;
 use OC\Security\FeaturePolicy\FeaturePolicyManager;
 use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\ContentSecurityPolicy;
-use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
 use OCP\AppFramework\Http\EmptyFeaturePolicy;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Middleware;
index 00ead5f2476ff84792c0eeee03969d67311fbe74..1f4ba123104038492ba84df1bb23435a816d9263 100644 (file)
@@ -29,7 +29,6 @@ use OC\AppFramework\Utility\ControllerMethodReflector;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Middleware;
-use OCP\IRequest;
 use OCP\ISession;
 
 class SessionMiddleware extends Middleware {
index c7aa5ad073b102d8224d4338afd62767ba96048f..d6a30c900cc88f6576029d59f3c772ba926dc9f2 100644 (file)
@@ -26,7 +26,6 @@ namespace OC\AppFramework\OCS;
 
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
-use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
 use OCP\AppFramework\Http\Response;
 
 abstract class BaseResponse extends Response   {
index 9dfd740c2209088d3a2ff16586f5b8fc9239d6f0..111c6cfeeef9b595e122d1ae3e0a4ac8bbb263c7 100644 (file)
@@ -28,7 +28,6 @@ namespace OC\Authentication\Events;
 
 use OC\Authentication\Token\IToken;
 use OCP\EventDispatcher\Event;
-use Symfony\Component\EventDispatcher\GenericEvent;
 
 abstract class ARemoteWipeEvent extends Event {
 
index 57ea002c6abaf5263abe0db94d72d44b53a509bb..f7d3693acc9adfbf3294999c1fbb7a86c66f920f 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OC\Authentication\Listeners;
 
 use BadMethodCallException;
-use OC\Authentication\Events\ARemoteWipeEvent;
 use OC\Authentication\Events\RemoteWipeFinished;
 use OC\Authentication\Events\RemoteWipeStarted;
 use OC\Authentication\Token\IToken;
index f97d8da735156f6bdc4adfcc5ad8570598c2408a..9eab3e74e9cebd6a9416344d0e62ef3b40e0937d 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 
 namespace OC\Authentication\Listeners;
 
-use OC\Authentication\Events\ARemoteWipeEvent;
 use OC\Authentication\Events\RemoteWipeFinished;
 use OC\Authentication\Events\RemoteWipeStarted;
 use OC\Authentication\Token\IToken;
index e0fbf0734f5c1494977139d3540b7b5cb96eb8c0..b16246319e150c1ee981ef1e14174cdd27515811 100644 (file)
@@ -30,7 +30,6 @@ namespace OC\Authentication\Token;
 use function array_filter;
 use OC\Authentication\Events\RemoteWipeFinished;
 use OC\Authentication\Events\RemoteWipeStarted;
-use OC\Authentication\Exceptions\ExpiredTokenException;
 use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Exceptions\WipeTokenException;
 use OCP\EventDispatcher\IEventDispatcher;
index b048d4e1f3c208c27753f89d2dd5573115bddaec..170048f451b712770bb342ded00984de60e3fd15 100644 (file)
@@ -31,13 +31,11 @@ use function array_diff;
 use function array_filter;
 use BadMethodCallException;
 use Exception;
-use OC\Authentication\Exceptions\ExpiredTokenException;
 use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Token\IProvider as TokenProvider;
 use OCP\Activity\IManager;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Authentication\TwoFactorAuth\IActivatableAtLogin;
-use OCP\Authentication\TwoFactorAuth\ILoginSetupProvider;
 use OCP\Authentication\TwoFactorAuth\IProvider;
 use OCP\Authentication\TwoFactorAuth\IRegistry;
 use OCP\IConfig;
index 8c41ac30bfdcec467244f21728f68fd643a285ec..26c1af0ae17be0ccc6db8b2ecb5ed4c89fab0bfd 100644 (file)
@@ -28,7 +28,6 @@ namespace OC\Authentication\TwoFactorAuth;
 
 use OC\Authentication\Exceptions\InvalidProviderException;
 use OCP\Authentication\TwoFactorAuth\IActivatableByAdmin;
-use OCP\Authentication\TwoFactorAuth\IDeactivableByAdmin;
 use OCP\Authentication\TwoFactorAuth\IDeactivatableByAdmin;
 use OCP\Authentication\TwoFactorAuth\IProvider;
 use OCP\Authentication\TwoFactorAuth\IRegistry;
index 82731cbdb44bae6b34d1e512e977136bc99a4f4f..35ae0330e51b6377c8b4b7124290c15173770984 100644 (file)
@@ -30,7 +30,6 @@ namespace OC\Collaboration\Resources;
 
 
 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
-use OCP\AppFramework\QueryException;
 use OCP\Collaboration\Resources\CollectionException;
 use OCP\Collaboration\Resources\ICollection;
 use OCP\Collaboration\Resources\IManager;
index 6cfd1d458bc0ef8acc3019b093e5397d4ae373a9..628c91dbb9e598d7009f57478020e41bcec0b97c 100644 (file)
@@ -26,7 +26,6 @@
 
 namespace OC\DB;
 
-use Doctrine\DBAL\DBALException;
 
 class AdapterPgSql extends Adapter {
        protected $compatModePre9_5 = null;
index 8150f08593fd3314bd36e90436470bf836be4476..0795e3299ce48d14ba613603a3f3b1c93d3bd55a 100644 (file)
@@ -41,7 +41,6 @@ use Doctrine\DBAL\Driver;
 use Doctrine\DBAL\Exception\ConstraintViolationException;
 use Doctrine\DBAL\Platforms\MySqlPlatform;
 use Doctrine\DBAL\Schema\Schema;
-use Doctrine\DBAL\TransactionIsolationLevel;
 use OC\DB\QueryBuilder\QueryBuilder;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
index 5e3f77559385684e036fdc24f30c0d2d641d1393..e342863d52f37e4bf3a7f1b3eef381b8331b734d 100644 (file)
@@ -34,8 +34,6 @@ use OCP\DirectEditing\ACreateFromTemplate;
 use OCP\DirectEditing\IEditor;
 use \OCP\DirectEditing\IManager;
 use OCP\DirectEditing\IToken;
-use OCP\DirectEditing\RegisterDirectEditorEvent;
-use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\File;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
index 24d21ad604920c2cf315ed69bd7b4bb2f9c77975..06e7db7986f46f0fd05d9576376c62607b286e11 100644 (file)
@@ -62,7 +62,6 @@ namespace OC\Files;
 use OC\Cache\CappedMemoryCache;
 use OC\Files\Config\MountProviderCollection;
 use OC\Files\Mount\MountPoint;
-use OC\Files\Storage\StorageFactory;
 use OC\Lockdown\Filesystem\NullStorage;
 use OCP\Files\Config\IMountProvider;
 use OCP\Files\NotFoundException;
index 616994d0c7bebf9eb176d7042946752faf819021..348de2d88442926e8a74693628a3b16866fbcf5d 100644 (file)
@@ -26,7 +26,6 @@
 
 namespace OC\Files\Type;
 
-use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
 use OCP\Files\IMimeTypeLoader;
 use OCP\IDBConnection;
 
index 974b0b55c89b20696fc9ba8230599d7b314bb0cb..a8c22b59cb17884f4fe4c2c62f0eb3d7d4f5168c 100644 (file)
@@ -28,7 +28,6 @@
 
 namespace OC\Lock;
 
-use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
 use OC\DB\QueryBuilder\Literal;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\DB\QueryBuilder\IQueryBuilder;
index 5dc6ab875b80bb1bfbf10c5bb9419865f0957680..e74cab40fd6fbba219941e564934797ab82c53c2 100644 (file)
@@ -27,7 +27,6 @@ namespace OC\Log;
 
 use OC\HintException;
 use OC\SystemConfig;
-use OCP\IConfig;
 use OCP\ILogger;
 use OCP\Log\IWriter;
 
index dcd4ccd130c80ba5731fcdaaad6bcd4c58987ae2..bb597460f9d329eb6dab202afa492fd3352593a0 100644 (file)
@@ -26,7 +26,6 @@
 
 namespace OC\Preview;
 
-use OC\Preview\GeneratorHelper;
 use OCP\Files\File;
 use OCP\Files\IAppData;
 use OCP\Files\NotFoundException;
@@ -36,7 +35,6 @@ use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\IConfig;
 use OCP\IImage;
 use OCP\IPreview;
-use OCP\Preview\IProvider;
 use OCP\Preview\IProviderV2;
 use OCP\Preview\IVersionedPreviewFile;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
index 470cad2d0a656e1cfbd2c608e0bb87804201b964..28611005b2971e4e50fb2619fd7be5df4b59fe74 100644 (file)
@@ -25,7 +25,6 @@
 
 namespace OC\Preview;
 
-use OC\Files\View;
 use OCP\Files\File;
 use OCP\Files\IRootFolder;
 use OCP\Files\SimpleFS\ISimpleFile;
index b9aae76c3b036129b632a52ab61a5ee597916492..7990c4a7dae57b18271c73dced1f96bcf7ec87e7 100644 (file)
@@ -36,8 +36,6 @@ namespace OC\Session;
 
 use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Token\IProvider;
-use OC\SystemConfig;
-use OCP\IConfig;
 use OCP\Session\Exceptions\SessionNotAvailableException;
 
 /**
index ed1d2f45cd7f41d0023739db09c66e390e0a5fd5..d9f50185620b1e6292bdfd22d9e3ce7a0608c22f 100644 (file)
@@ -33,7 +33,6 @@
 namespace OC\Settings;
 
 use Closure;
-use OC\Settings\Personal\PersonalInfo;
 use OCP\AppFramework\QueryException;
 use OCP\IL10N;
 use OCP\ILogger;
index 26299aaa0399063544ed9ba883e67c3020742a46..2fffdfbb214120010f0ea35ac1e433dfa811552c 100644 (file)
@@ -59,7 +59,6 @@ use OCP\Defaults;
 use OCP\IGroup;
 use OCP\IL10N;
 use OCP\ILogger;
-use OCP\IUser;
 use OCP\Security\ISecureRandom;
 
 class Setup {
index ed876022bdd8e9ebcbe4182c5c9a1a884a06b11c..2e328970b8b3c95feb9e9c7e9a302fa05c4bb079 100644 (file)
@@ -37,9 +37,7 @@
 namespace OC\Share;
 
 use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IConfig;
 use OCP\ILogger;
-use OCP\Util;
 
 /**
  * This class provides the ability for apps to share their content between users.
index e7f077f4022afb0bf4699a4ef2f9f50b38ef9e60..3ebe5784cc864b0661ef3ee2243ea6ff862a71cd 100644 (file)
@@ -53,7 +53,6 @@ use OCP\IUserManager;
 use OCP\Mail\IMailer;
 use OCP\Share\Exceptions\ShareNotFound;
 use OCP\Share\IShare;
-use OCP\Share\IShareHelper;
 use OCP\Share\IShareProvider;
 
 /**
index 5a91202a1d02a476564bd0c31529ba4cbbd34144..cdfd40c87038c133745a96b15d481bd03792460b 100644 (file)
@@ -36,7 +36,6 @@ use OC\Share20\Exception\ProviderException;
 use OCA\FederatedFileSharing\AddressHandler;
 use OCA\FederatedFileSharing\FederatedShareProvider;
 use OCA\FederatedFileSharing\Notifications;
-use OCA\FederatedFileSharing\OCM\CloudFederationProvider;
 use OCA\FederatedFileSharing\TokenHandler;
 use OCA\ShareByMail\Settings\SettingsManager;
 use OCA\ShareByMail\ShareByMailProvider;
index 905a66f3797250cb60bba4c06284287c8f4d8c5a..856959a4596dd9ee8436da438cb64043d1e8135b 100644 (file)
@@ -72,7 +72,6 @@ use OCP\User\Backend\IGetHomeBackend;
 use OCP\User\Backend\IGetRealUIDBackend;
 use OCP\User\Backend\ISetDisplayNameBackend;
 use OCP\User\Backend\ISetPasswordBackend;
-use Symfony\Component\EventDispatcher\GenericEvent;
 
 /**
  * Class for user management in a SQL Database (e.g. MySQL, SQLite)
index adc793ba9b7155c8f1feb3a177db9b233401a9a0..dd0fdc90dc059568316186e7754127e3daf9e8d7 100644 (file)
@@ -42,7 +42,6 @@
 
 use OC\Files\View;
 use OC\Streamer;
-use OCP\ILogger;
 use OCP\Lock\ILockingProvider;
 
 /**
index af112a7076dc288c10a5f8c4dc36a65a65139d0a..7866f19d430678792e059a3525e328e001ef438e 100644 (file)
@@ -26,7 +26,6 @@
 
 namespace OCP\AppFramework\Http\Template;
 
-use OCP\AppFramework\Http\Template\SimpleMenuAction;
 use OCP\Util;
 
 /**
index 1ddb1a46e94d3cb5bdaa21042815938f94b01e63..489a7d534ad6886a57791e55840beb702811d451 100644 (file)
@@ -24,7 +24,6 @@
 
 namespace OCP\AppFramework\Http\Template;
 
-use OCP\AppFramework\Http\Template\SimpleMenuAction;
 use OCP\Util;
 
 /**
index b9bb1788f8456fd82c3bb5819f3744426daf0676..3385d1a9397981eb7c2d82cf5da103759ab952cb 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OCP\Group\Events;
 
 use OCP\EventDispatcher\Event;
-use OCP\IGroup;
 
 /**
  * @since 18.0.0
index c05403cc236fa8915e7e4cc02fd1186150af9b5d..a5e94bf8ac4162cbcb1ed1a38796fb3e65fc2b47 100644 (file)
@@ -28,7 +28,6 @@
 
 namespace OCP;
 
-use OCP\UserInterface;
 
 /**
  * Interface IUser
index 120d46258ff99d7b9940ea19bc113e232b6696ef..b2587459d8571c776753f64dabe030b52280e207 100644 (file)
@@ -24,7 +24,6 @@
 namespace OCP\Share;
 
 use OC\Share20\Exception\ProviderException;
-use OCP\IServerContainer;
 
 /**
  * Interface IProviderFactory
index fd7463bc0f95e7fb781020011097c49088d8b9f5..1bcf3231829199c11b8821cc96c8088065d8f911 100644 (file)
@@ -27,7 +27,6 @@ declare(strict_types=1);
 namespace OCP\User\Events;
 
 use OCP\EventDispatcher\Event;
-use OCP\IUser;
 
 /**
  * @since 18.0.0
index ace756b26470b23e4ece3325e7df9e72af3a898e..bb6f5f45095f309f84061352d578fd34af0c54c6 100644 (file)
 
 namespace Tests\Core\Command\Maintenance;
 
-use OC\Core\Command\Maintenance\Mimetype\UpdateDB;
 use OC\Core\Command\Maintenance\UpdateTheme;
 use OC\Files\Type\Detection;
-use OC\Files\Type\Loader;
 use OCP\Files\IMimeTypeDetector;
-use OCP\Files\IMimeTypeLoader;
 use OCP\ICache;
 use OCP\ICacheFactory;
 use Symfony\Component\Console\Input\InputInterface;
index f0fbce86b8c49dcd164e2b149dd6c4fbcc5c7a24..96339cbf5e1456b4386131457595269649f85564 100644 (file)
@@ -24,7 +24,6 @@
 namespace OC\Core\Controller;
 
 use OC\CapabilitiesManager;
-use OC\Security\Bruteforce\Throttler;
 use OC\Security\IdentityProof\Key;
 use OC\Security\IdentityProof\Manager;
 use OCP\AppFramework\Http\DataResponse;
index 2f8d3ad00e55b5c1ceea9cb404ebd133169a9f7f..d914edf234faedbf991a8e234b5687fd03e74e13 100644 (file)
@@ -21,7 +21,6 @@
  *
  */
 
-use Behat\Behat\Context\Context;
 use Behat\Behat\Hook\Scope\BeforeScenarioScope;
 
 /**
index 531066a54c6e1b896b91e3ef0b71c9674c53566f..3b5060ae69465c17ff08b61ce822e38ff1a660be 100644 (file)
@@ -22,7 +22,6 @@
 namespace Test\App\CodeChecker;
 
 use OC\App\CodeChecker\InfoChecker;
-use OC\App\InfoParser;
 use Test\TestCase;
 
 class InfoCheckerTest extends TestCase {
index 8eb76d3cb27b6c985d737444dc9176c801138319..b2d31205f94819dbda1a55048b041ae9411d8829 100644 (file)
 
 namespace Test\AppFramework\Controller;
 
-use OC\AppFramework\Middleware\PublicShare\Exceptions\NeedAuthenticationException;
-use OC\AppFramework\Middleware\PublicShare\PublicShareMiddleware;
 use OCP\AppFramework\AuthPublicShareController;
-use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\NotFoundResponse;
 use OCP\AppFramework\Http\RedirectResponse;
 use OCP\AppFramework\Http\TemplateResponse;
-use OCP\AppFramework\PublicShareController;
-use OCP\Files\NotFoundException;
-use OCP\IConfig;
 use OCP\IRequest;
 use OCP\ISession;
 use OCP\IURLGenerator;
index b1cb1ceab6fc69d8cedfabf9537c0177f64e9c50..8f4a9ee46d4aa9dca1babb47c41b646d5edcf60a 100644 (file)
@@ -27,7 +27,6 @@ use OC\AppFramework\Http\Request;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\DataResponse;
 use OCP\AppFramework\Http\JSONResponse;
-use OCP\AppFramework\Http\TemplateResponse;
 use OCP\IConfig;
 
 class ChildController extends Controller {
index 318647ca8448fad2ac6e865ba5e8e931ec366fc8..388d5fbeef20368d83ea8d3563a0d8c909c284d2 100644 (file)
 
 namespace Test\AppFramework\Controller;
 
-use OC\AppFramework\Middleware\PublicShare\Exceptions\NeedAuthenticationException;
-use OC\AppFramework\Middleware\PublicShare\PublicShareMiddleware;
-use OCP\AppFramework\AuthPublicShareController;
-use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\NotFoundResponse;
-use OCP\AppFramework\Http\RedirectResponse;
 use OCP\AppFramework\PublicShareController;
-use OCP\Files\NotFoundException;
-use OCP\IConfig;
 use OCP\IRequest;
 use OCP\ISession;
-use OCP\IURLGenerator;
 
 class PublicShareControllerTest extends \Test\TestCase {
 
index 6acc21550d1c59154cb89cfaf2e42ffc0f7dd289..0c8d125d96045f76c9d8bfbd848e7d91dcda7810 100644 (file)
@@ -8,7 +8,6 @@
 
 namespace Test\AppFramework\Http;
 
-use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\ContentSecurityPolicy;
 
 /**
index c19caad23c7480268b17bae541a7d8aba914ff7a..121bb904d18bffd482ed8d17ba97093c8136e22d 100644 (file)
@@ -8,7 +8,6 @@
 
 namespace Test\AppFramework\Http;
 
-use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
 
 /**
index 965637cb4c492e3e072cf3a1dfe223d40e8136d0..af68961b18333a46a6f6e6bcf93f9b6fd96ef9d4 100644 (file)
@@ -25,7 +25,6 @@ namespace Test\AppFramework\Middleware;
 
 use OC\AppFramework\Http\Request;
 use OC\AppFramework\Middleware\MiddlewareDispatcher;
-use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Middleware;
 use OCP\IConfig;
index f6ce5c27b22ca1e57cc7f55736993e716b7de592..55c874ccdb52bab8225993ed9f4267c8a47f31b6 100644 (file)
@@ -26,7 +26,6 @@ use OC\AppFramework\Utility\ControllerMethodReflector;
 use OC\Security\Bruteforce\Throttler;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
-use OCP\Http\Client\IResponse;
 use OCP\IRequest;
 use Test\TestCase;
 
index e136d7836162f27767380d10d1f6cbe281d501ba..62be8037cfc5bf1c5fd80cdef83c2f39145e2d9d 100644 (file)
@@ -25,12 +25,9 @@ declare(strict_types=1);
 namespace Test\AppFramework\Middleware\Security;
 
 use OC\AppFramework\Middleware\Security\FeaturePolicyMiddleware;
-use OC\Security\CSP\ContentSecurityPolicy;
-use OC\Security\CSRF\CsrfToken;
 use OC\Security\FeaturePolicy\FeaturePolicy;
 use OC\Security\FeaturePolicy\FeaturePolicyManager;
 use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
 use OCP\AppFramework\Http\EmptyFeaturePolicy;
 use OCP\AppFramework\Http\Response;
 use PHPUnit\Framework\MockObject\MockObject;
index ae0e6ff484da928702fadfe54c41cfac5bfbf31a..fb6dee20065ea602180f3f6405fa2c9000ad8219 100644 (file)
@@ -32,17 +32,10 @@ use OC\AppFramework\Middleware\Security\Exceptions\SecurityException;
 use OC\Appframework\Middleware\Security\Exceptions\StrictCookieMissingException;
 use OC\AppFramework\Middleware\Security\SecurityMiddleware;
 use OC\AppFramework\Utility\ControllerMethodReflector;
-use OC\Security\CSP\ContentSecurityPolicy;
-use OC\Security\CSP\ContentSecurityPolicyManager;
-use OC\Security\CSP\ContentSecurityPolicyNonceManager;
-use OC\Security\CSRF\CsrfToken;
-use OC\Security\CSRF\CsrfTokenManager;
 use OCP\App\IAppManager;
 use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
 use OCP\AppFramework\Http\JSONResponse;
 use OCP\AppFramework\Http\RedirectResponse;
-use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\IConfig;
 use OCP\IL10N;
index db2a9d5b62507a962facfd2c7c88503384c980f6..940112311c31babd03c466a832ef3992fd7bd895 100644 (file)
 
 namespace Test\AppFramework\Middleware;
 
-use OC\AppFramework\Http\Request;
 use OC\AppFramework\Middleware\SessionMiddleware;
 use OC\AppFramework\Utility\ControllerMethodReflector;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
-use OCP\IConfig;
 
 class SessionMiddlewareTest extends \Test\TestCase {
 
index 47d1d53a74c99dd109ed1d3fdfb2af2219fba481..4f203b368c0273e655bb5b5d5fe27704e6367a2c 100644 (file)
@@ -32,7 +32,6 @@ use OCP\Activity\IManager as IActivityManager;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
 use OCP\ILogger;
-use OCP\IUser;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
 
index 0d3b7acfa2d31eac62954695990e11825ca08aaa..9c14c2a3fb2a2da2e57134c285df13f1d1276da9 100644 (file)
@@ -27,7 +27,6 @@ namespace Test\Authentication\Login;
 
 use lib\Authentication\Login\ALoginCommandTest;
 use OC\Authentication\Login\ClearLostPasswordTokensCommand;
-use OC\Authentication\Login\LoginData;
 use OCP\IConfig;
 use PHPUnit\Framework\MockObject\MockObject;
 
index c4dd3f10381d189010710a54f43a0d585aa51530..1d477921677410cd1d9f6fc782824d6923114a53 100644 (file)
@@ -25,7 +25,6 @@ declare(strict_types=1);
 
 namespace lib\Authentication\Login;
 
-use OC\Authentication\Login\UidCheckCommand;
 use OC\Authentication\Login\UidLoginCommand;
 use OC\User\Manager;
 use PHPUnit\Framework\MockObject\MockObject;
index 6f64424364e3a5d808a3e80307c33f2c467ec640..8cac7d5be5c1ba3ac1712171d6258cd2a7538a8a 100644 (file)
@@ -29,7 +29,6 @@ use OC\Authentication\Exceptions\InvalidTokenException;
 use OC\Authentication\Exceptions\PasswordlessTokenException;
 use OC\Authentication\Token\DefaultToken;
 use OC\Authentication\Token\DefaultTokenProvider;
-use OC\Authentication\Token\ExpiredTokenException;
 use OC\Authentication\Token\IToken;
 use OC\Authentication\Token\Manager;
 use OC\Authentication\Token\PublicKeyToken;
index 63d0e993f3b570a963f7c65c9d22efb3295598c1..0d5bfeed2699f80a926f1517b87ce3f3692e3622 100644 (file)
@@ -22,7 +22,6 @@
 
 namespace Test\Authentication\TwoFactorAuth;
 
-use Exception;
 use OC;
 use OC\Authentication\Token\IProvider as TokenProvider;
 use OC\Authentication\TwoFactorAuth\Manager;
index f37629768371c42e4b313517cbc582071b9093df..bff4a33dffc46c326462e36b012831cf216d7328 100644 (file)
@@ -25,7 +25,6 @@ declare(strict_types=1);
 
 namespace lib\Authentication\TwoFactorAuth;
 
-use Exception;
 use OC\Authentication\TwoFactorAuth\ProviderLoader;
 use OCP\App\IAppManager;
 use OCP\Authentication\TwoFactorAuth\IProvider;
index 4367234522696ca090bddb92208bc5238c1ffbd1..3d09a9b632decad0dd275c168d03fd3324cdd63b 100644 (file)
@@ -27,10 +27,8 @@ namespace Test\Collaboration\Collaborators;
 use OC\Collaboration\Collaborators\Search;
 use OC\Collaboration\Collaborators\SearchResult;
 use OCP\Collaboration\Collaborators\ISearch;
-use OCP\Collaboration\Collaborators\ISearchPlugin;
 use OCP\Collaboration\Collaborators\SearchResultType;
 use OCP\IContainer;
-use OCP\Share;
 use Test\TestCase;
 
 class SearchResultTest extends TestCase {
index 10584812c41e3826ab5f0fc7b394c3756ad63b9a..e88acb915d7e5281cb04cb67820fb2d2ec7f34ea 100644 (file)
@@ -24,7 +24,6 @@
 
 namespace Tests\Contacts\ContactsMenu;
 
-use Exception;
 use OC\App\AppManager;
 use OC\Contacts\ContactsMenu\ActionProviderStore;
 use OC\Contacts\ContactsMenu\Providers\EMailProvider;
index 737a41425e199bb92880f332d8d41e7c26b92800..004292eb47f735a53d3481e629da51f376f1275d 100644 (file)
@@ -12,7 +12,6 @@ use OCP\DirectEditing\IEditor;
 use OCP\DirectEditing\IToken;
 use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
-use OCP\Files\NotFoundException;
 use OCP\IDBConnection;
 use OCP\IL10N;
 use OCP\IUserSession;
index e2c76db7ed9bb5cf44890b68d3222e49b13869a7..3365b1fedca4afa6c3a2712134515cd335bd0409 100644 (file)
@@ -33,7 +33,6 @@ use OCP\UserInterface;
 use Symfony\Component\Console\Formatter\OutputFormatterInterface;
 use Symfony\Component\Console\Helper\ProgressBar;
 use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 use Test\TestCase;
 
index a3b1a428c28f9a97112168b4162cc33c6891c90e..64a901a688e0773de221ac08b83eafbe40904632 100644 (file)
@@ -9,7 +9,6 @@
 namespace Test\Files\Cache;
 
 use OC\Files\Filesystem as Filesystem;
-use OC\Files\Storage\Temporary;
 use OC\Files\View;
 
 /**
index 8dc5893007bb3186c477e42163b5876c78a84c83..c6a3c4a3491e88abf020d64a967aac145be97531 100644 (file)
@@ -10,7 +10,6 @@ namespace Test\Files\Cache;
 
 use OC\Files\Filesystem;
 use OC\Files\Storage\Temporary;
-use OC\Files\View;
 
 /**
  * Class UpdaterTest
index d3b372fe1376245d79eb4af9bf66b62e7e7c21b6..d315ef3d344f0abd493bd12410e6198060c3b465 100644 (file)
@@ -10,7 +10,6 @@ namespace Test\Files;
 
 use OC\Files\Filesystem;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Share;
 use OCA\Files_Sharing\AppInfo\Application;
 
 /**
index 0037941b6294216bd8493a7f6f5b1cf06718a6dd..fd2b506beb9cb274d3a716ea944847e3635a5697 100644 (file)
@@ -8,11 +8,9 @@
 
 namespace Test\Files;
 
-use OC\AllConfig;
 use OC\Files\FileInfo;
 use OC\Files\Storage\Home;
 use OC\Files\Storage\Temporary;
-use OC\User\User;
 use OCP\IConfig;
 use OCP\IUser;
 use Test\TestCase;
index d33fb4f68f88ed9d54472c2a5b2a8b027d77a782..a9193cfd6728f5a4496d3a669efcefea12bb75d6 100644 (file)
@@ -19,7 +19,6 @@ use OC\Files\Node\Root;
 use OC\Files\Storage\Temporary;
 use OC\Files\Storage\Wrapper\Jail;
 use OC\Files\View;
-use OC\User\User;
 use OCP\Files\Mount\IMountPoint;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage;
index 7c8ddee6b5f6af0ea8d63db7ec2c4489f1d74194..25a5fdc27cf550caea2649a7f8b5594e0c6d41db 100644 (file)
@@ -11,14 +11,11 @@ namespace Test\Files\Node;
 use OC\Files\FileInfo;
 use OC\Files\Mount\Manager;
 use OC\Files\View;
-use OCP\Files\Config\IUserMountCache;
 use OCP\Files\IRootFolder;
 use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\Files\Storage;
-use OCP\IConfig;
 use OCP\ILogger;
-use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 
index 5067236ec58278e1ff4a00e3ba3e636611852092..86cce910f86f9fbf14696c16baa9be8569bcbf4a 100644 (file)
@@ -13,9 +13,7 @@ use OC\Files\FileInfo;
 use OC\Files\Mount\Manager;
 use OC\Files\Node\Folder;
 use OC\Files\View;
-use OCP\IConfig;
 use OCP\ILogger;
-use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
 
index b8c7b15e039681fd9073cb0e23ed9ea6a37c0a0b..25ce5525361e1e9b7f146a95919d18c3c299444b 100644 (file)
@@ -20,7 +20,6 @@
 
 namespace Test\Files\ObjectStore;
 
-use OC\Files\ObjectStore\ObjectStoreStorage;
 use OC\Files\ObjectStore\StorageObjectStore;
 use OC\Files\Storage\Temporary;
 use OCP\Files\ObjectStore\IObjectStore;
index 07a7e79c7a36219afefc4cce56d02e4f2ee8af45..8de5cf50aa37650aea068b1c16fc5b32752f7c07 100644 (file)
@@ -27,7 +27,6 @@ use OC\Files\SimpleFS\SimpleFile;
 use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\NotFoundException;
-use OCP\Files\NotPermittedException;
 
 class SimpleFileTest extends \Test\TestCase  {
        /** @var File|\PHPUnit_Framework_MockObject_MockObject */
index b902cac77cc2bbc9d8998a8c2fe77c162e897abb..4cab1136d8223a0d728e22ddac2ced4ecf2367d7 100644 (file)
@@ -25,10 +25,7 @@ namespace Test\File\SimpleFS;
 
 use OC\Files\SimpleFS\SimpleFolder;
 use OC\Files\Storage\Temporary;
-use OC\Files\View;
-use OCP\Files\File;
 use OCP\Files\Folder;
-use OCP\Files\Node;
 use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use Test\Traits\MountProviderTrait;
index 61e4b39c8f308ee90b0360d15303b1a643dafbe5..e6cd6ca8e6e407e388f37824d27bf8209bb41fb5 100644 (file)
@@ -10,8 +10,6 @@
 namespace Test\Group;
 
 use OC\User\User;
-use OCP\IConfig;
-use OCP\IURLGenerator;
 use OCP\IUser;
 use PHPUnit\Framework\MockObject\MockObject;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
index 4530784e8e2f2270c33af007f6886d8f4aae8684..7a91fcab2708be3c7a480a5017f17ffd8950fb43 100644 (file)
@@ -9,7 +9,6 @@
 namespace Test;
 
 
-use OC\App\AppStore\Bundles\Bundle;
 use OC\App\AppStore\Fetcher\AppFetcher;
 use OC\Archive\ZIP;
 use OC\Installer;
index 37dbf1d97b8ed873700b28cc40c70a5b7e26e254..4a3997dbf2097044a8beb83fa72ed7b134c517f5 100644 (file)
@@ -29,7 +29,6 @@ use OC\Log\LogFactory;
 use OC\Log\Syslog;
 use OC\Log\Systemdlog;
 use OC\SystemConfig;
-use OCP\IConfig;
 use OCP\IServerContainer;
 use Test\TestCase;
 
index 1d19929fe00863b9ac3392f2397460ac101349cc..4c6341eef0f80648b0686577a68e783f22038892 100644 (file)
@@ -22,7 +22,6 @@ use OCP\IL10N;
 use OCP\ILogger;
 use OCP\IURLGenerator;
 use OCP\Mail\Events\BeforeMessageSent;
-use OCP\Mail\IMessage;
 use Test\TestCase;
 use Swift_SwiftException;
 
index 6ca83b4b36748ddbf0cb46a5919fb59790a0562f..a8a946311373ceea6c78110baac1f1b69cedeb62 100644 (file)
@@ -23,10 +23,8 @@ namespace Test\Notification;
 
 use OC\Notification\Manager;
 use OCP\ILogger;
-use OCP\Notification\IApp;
 use OCP\Notification\IManager;
 use OCP\Notification\INotification;
-use OCP\Notification\INotifier;
 use OCP\RichObjectStrings\IValidator;
 use PHPUnit\Framework\MockObject\MockObject;
 use Test\TestCase;
index 09c4a16f87ac3d01d01c7d31d8c8f2f9aec063a3..5536204dd20c28b026eb4658c197c585d30ff6d0 100644 (file)
@@ -25,7 +25,6 @@ namespace Test\Preview;
 use OC\Files\AppData\Factory;
 use OC\Preview\BackgroundCleanupJob;
 use OC\PreviewManager;
-use OC\SystemConfig;
 use OCP\Files\IRootFolder;
 use OCP\IDBConnection;
 use Test\Traits\MountProviderTrait;
index cfb78a05da5e8befaa390912d969edd7d3c5d4e0..a36e18fab882d7cf825c4ba6e65431de6645c2ef 100644 (file)
@@ -33,7 +33,6 @@ use OCP\Files\SimpleFS\ISimpleFolder;
 use OCP\IConfig;
 use OCP\IImage;
 use OCP\IPreview;
-use OCP\Preview\IProvider;
 use OCP\Preview\IProviderV2;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 use Symfony\Component\EventDispatcher\GenericEvent;
index 009613fbe3295b9e4c596ad0ecb2247eea7a6faa..c474951314023e20d8dda3be525e57dbd890bc2b 100644 (file)
@@ -25,8 +25,6 @@ namespace Test\Security\CSP;
 use OC\Security\CSP\ContentSecurityPolicyManager;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Security\CSP\AddContentSecurityPolicyEvent;
-use PHPUnit\Framework\MockObject\MockObject;
-use Symfony\Component\EventDispatcher\EventDispatcher;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 use Test\TestCase;
 
index 136c3160413a12be494bc7add9d8a0940f4d4bc3..1dddb2ae0922151adedaacb250ccffd217f9d70e 100644 (file)
@@ -8,7 +8,6 @@
 
 namespace Test\Security;
 
-use OC\Files\Storage\Temporary;
 use OC\Files\View;
 use OC\Security\CertificateManager;
 use OCP\IConfig;
index 179bd6630ba0bc28f4255e690938eda59f5663df..d2be124a482cd9dac41cd65a7f1f2fe00cac8b21 100644 (file)
@@ -24,14 +24,10 @@ declare(strict_types=1);
 
 namespace Test\Security\CSP;
 
-use OC\Security\CSP\ContentSecurityPolicyManager;
 use OC\Security\FeaturePolicy\FeaturePolicyManager;
 use OCP\AppFramework\Http\FeaturePolicy;
 use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Security\CSP\AddContentSecurityPolicyEvent;
 use OCP\Security\FeaturePolicy\AddFeaturePolicyEvent;
-use PHPUnit\Framework\MockObject\MockObject;
-use Symfony\Component\EventDispatcher\EventDispatcher;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 use Test\TestCase;
 
index aff6d3ed5c73b362b41419c62920944b43ba6ed5..5f96782bae868df96ccb7e02ac246c4321ae7bca 100644 (file)
@@ -33,7 +33,6 @@ use OCP\ILogger;
 use OCP\IUser;
 use OCP\Security\ICrypto;
 use PHPUnit\Framework\MockObject\MockObject;
-use SebastianBergmann\Comparator\MockObjectComparator;
 use Test\TestCase;
 
 class ManagerTest extends TestCase  {
index 20b35029050bea14ef4932f6df1bbce299d4f1a3..ea74f476f3ce81a3fcdfb8c7e2b587fc7f03306d 100644 (file)
@@ -24,10 +24,7 @@ namespace Test\Security\RateLimiting;
 use OC\Security\RateLimiting\Backend\IBackend;
 use OC\Security\RateLimiting\Limiter;
 use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\ICacheFactory;
-use OCP\IRequest;
 use OCP\IUser;
-use OCP\IUserSession;
 use Test\TestCase;
 
 class LimiterTest extends TestCase {
index bce547c9a29a223f57de8a2a6cb2c06f34d1595d..c10ad819b3fc3ffb808b85d7d1cabe54394f1bed 100644 (file)
@@ -24,7 +24,6 @@
 namespace OCA\Settings\Tests\AppInfo;
 
 use OC\Settings\Manager;
-use OCA\Settings\Admin\Sharing;
 use OCP\IDBConnection;
 use OCP\IL10N;
 use OCP\ILogger;
index af05d0c4bdd1a5f5ce73b01669ed7e468c716c2d..8a1320f79adbb433dedd61d4308cac2f38bf56d3 100644 (file)
@@ -23,7 +23,6 @@ namespace Test\Share;
 use OC\Share\Share;
 use OCP\IGroup;
 use OCP\IGroupManager;
-use OCP\ILogger;
 use OCP\IUser;
 use OCP\IUserManager;
 
index a5a54fce09f6899c4455d83e38c3776c78c0bae3..e0bc41c8b6ba0fe8e21728262800c50c45afb990 100644 (file)
@@ -15,7 +15,6 @@ use OC\SystemTag\SystemTagObjectMapper;
 use OCP\IDBConnection;
 use OCP\IGroupManager;
 use OCP\IUser;
-use OCP\IUserManager;
 use OCP\SystemTag\ISystemTag;
 use OCP\SystemTag\ISystemTagManager;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
index 8e36426393f3ebd3a4960862a6ca6361e4d5e560..488fe9c045f07d57ddaf21afed98f743051e8f06 100644 (file)
@@ -27,16 +27,10 @@ namespace Test\Template;
 use OC\Files\AppData\AppData;
 use OC\Files\AppData\Factory;
 use OC\Template\IconsCacher;
-use OC_App;
-use OCA\Theming\ThemingDefaults;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Files\IAppData;
-use OCP\Files\NotFoundException;
 use OCP\Files\SimpleFS\ISimpleFile;
 use OCP\Files\SimpleFS\ISimpleFolder;
-use OCP\ICache;
-use OCP\ICacheFactory;
-use OCP\IConfig;
 use OCP\ILogger;
 use OCP\IURLGenerator;
 
index b12124ea5a91883bf192cc0bf4741ddbc2b4bcdd..45d4d4d0275839cbec4d45c379324be4112ff708 100644 (file)
@@ -23,7 +23,6 @@
 
 namespace Test\Template;
 
-use function foo\func;
 use OC\SystemConfig;
 use OC\Template\JSCombiner;
 use OCP\Files\IAppData;
index 6f9fdf1e7fbd030f62f8c4622bb3671d0e2a2d49..472698fbfeea6ec4ed6935a3ce1412ec4906ad53 100644 (file)
@@ -27,7 +27,6 @@ use OC\Files\AppData\AppData;
 use OC\Files\AppData\Factory;
 use OC\Template\IconsCacher;
 use OC\Template\SCSSCacher;
-use OC_App;
 use OCA\Theming\ThemingDefaults;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Files\IAppData;