Browse Source

Remove unused import statements

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/8335/head
Morris Jobke 8 years ago
parent
commit
d3d045dd5c
No known key found for this signature in database GPG Key ID: FE03C3A163FEDE68
  1. 1
      apps/comments/lib/Activity/Listener.php
  2. 1
      apps/comments/lib/EventHandler.php
  3. 2
      apps/dav/lib/CalDAV/CalDavBackend.php
  4. 2
      apps/dav/lib/CalDAV/Plugin.php
  5. 1
      apps/dav/lib/CalDAV/Principal/Collection.php
  6. 1
      apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
  7. 1
      apps/dav/lib/CardDAV/CardDavBackend.php
  8. 1
      apps/dav/lib/CardDAV/ImageExportPlugin.php
  9. 1
      apps/dav/lib/CardDAV/Plugin.php
  10. 1
      apps/dav/lib/Connector/LegacyDAVACL.php
  11. 1
      apps/dav/lib/Connector/Sabre/ObjectTree.php
  12. 1
      apps/dav/lib/Connector/Sabre/Principal.php
  13. 3
      apps/dav/lib/Connector/Sabre/QuotaPlugin.php
  14. 1
      apps/dav/lib/Connector/Sabre/ServerFactory.php
  15. 1
      apps/dav/lib/DAV/SystemPrincipalBackend.php
  16. 1
      apps/dav/lib/Files/FilesHome.php
  17. 1
      apps/dav/lib/Files/RootCollection.php
  18. 2
      apps/dav/lib/Server.php
  19. 2
      apps/dav/lib/Upload/ChunkingPlugin.php
  20. 1
      apps/encryption/lib/AppInfo/Application.php
  21. 1
      apps/encryption/lib/Hooks/UserHooks.php
  22. 1
      apps/federation/lib/BackgroundJob/GetSharedSecret.php
  23. 1
      apps/federation/lib/BackgroundJob/RequestSharedSecret.php
  24. 1
      apps/federation/lib/SyncJob.php
  25. 1
      apps/files_external/lib/AppInfo/Application.php
  26. 2
      apps/files_external/lib/Controller/AjaxController.php
  27. 1
      apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php
  28. 3
      apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
  29. 1
      apps/files_external/lib/Lib/Auth/Password/UserProvided.php
  30. 4
      apps/files_external/lib/Lib/Backend/AmazonS3.php
  31. 3
      apps/files_external/lib/Lib/Backend/DAV.php
  32. 3
      apps/files_external/lib/Lib/Backend/FTP.php
  33. 1
      apps/files_external/lib/Lib/Backend/LegacyBackend.php
  34. 1
      apps/files_external/lib/Lib/Backend/Local.php
  35. 3
      apps/files_external/lib/Lib/Backend/OwnCloud.php
  36. 3
      apps/files_external/lib/Lib/Backend/SFTP_Key.php
  37. 2
      apps/files_external/lib/Lib/Backend/SMB.php
  38. 2
      apps/files_external/lib/Lib/Backend/SMB_OC.php
  39. 2
      apps/files_external/lib/Lib/Backend/Swift.php
  40. 2
      apps/files_external/lib/Lib/DependencyTrait.php
  41. 2
      apps/files_external/lib/Lib/FrontendDefinitionTrait.php
  42. 1
      apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
  43. 1
      apps/files_external/lib/Lib/SessionStorageWrapper.php
  44. 1
      apps/files_external/lib/Lib/Storage/Swift.php
  45. 2
      apps/files_external/lib/Lib/StorageModifierTrait.php
  46. 1
      apps/files_external/lib/Migration/StorageMigrator.php
  47. 2
      apps/files_external/lib/Service/UserStoragesService.php
  48. 1
      apps/files_external/lib/Settings/Personal.php
  49. 1
      apps/files_sharing/lib/Controller/ShareController.php
  50. 1
      apps/files_sharing/lib/Controller/ShareInfoController.php
  51. 1
      apps/files_sharing/lib/Middleware/ShareInfoMiddleware.php
  52. 1
      apps/sharebymail/templates/settings-admin.php
  53. 1
      apps/systemtags/lib/Activity/Listener.php
  54. 2
      apps/theming/lib/Controller/ThemingController.php
  55. 1
      apps/theming/lib/Util.php
  56. 1
      apps/user_ldap/lib/Controller/RenewPasswordController.php
  57. 2
      apps/user_ldap/lib/Jobs/Sync.php
  58. 2
      apps/user_ldap/lib/Notification/Notifier.php
  59. 2
      core/Command/Group/AddUser.php
  60. 3
      core/Command/Group/ListCommand.php
  61. 2
      core/Command/Group/RemoveUser.php
  62. 4
      core/Command/Maintenance/UpdateHtaccess.php
  63. 3
      core/Command/Security/ImportCertificate.php
  64. 2
      core/Command/Security/ListCertificates.php
  65. 3
      core/Command/Security/RemoveCertificate.php
  66. 1
      core/Command/TwoFactorAuth/Base.php
  67. 1
      core/Command/Upgrade.php
  68. 1
      core/Command/User/Disable.php
  69. 1
      core/Command/User/Enable.php
  70. 2
      core/Command/User/Info.php
  71. 1
      core/Command/User/ListCommand.php
  72. 1
      core/Controller/AvatarController.php
  73. 1
      lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
  74. 1
      lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php
  75. 2
      lib/private/Contacts/ContactsMenu/ContactsStore.php
  76. 2
      lib/private/DB/MigrationService.php
  77. 1
      lib/private/DB/SchemaWrapper.php
  78. 1
      lib/private/Files/Config/UserMountCache.php
  79. 3
      lib/private/Files/ObjectStore/S3ObjectTrait.php
  80. 5
      lib/private/Installer.php
  81. 2
      lib/private/Repair.php
  82. 5
      lib/private/Share/Share.php
  83. 1
      lib/private/Share20/DefaultShareProvider.php
  84. 1
      lib/private/User/Session.php
  85. 1
      lib/public/Util.php
  86. 1
      settings/Controller/CheckSetupController.php
  87. 5
      settings/Controller/LogSettingsController.php

1
apps/comments/lib/Activity/Listener.php

@ -31,7 +31,6 @@ use OCP\Files\IRootFolder;
use OCP\Files\Node;
use OCP\IUser;
use OCP\IUserSession;
use OCP\Share;
use OCP\Share\IShareHelper;
class Listener {

1
apps/comments/lib/EventHandler.php

@ -24,7 +24,6 @@
namespace OCA\Comments;
use OCA\Comments\Activity\Listener as ActivityListener;
use OCA\Comments\AppInfo\Application;
use OCA\Comments\Notification\Listener as NotificationListener;
use OCP\Comments\CommentsEvent;
use OCP\Comments\ICommentsEventHandler;

2
apps/dav/lib/CalDAV/CalDavBackend.php

@ -51,10 +51,8 @@ use Sabre\DAV;
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\PropPatch;
use Sabre\HTTP\URLUtil;
use Sabre\VObject\Component;
use Sabre\VObject\Component\VCalendar;
use Sabre\VObject\Component\VEvent;
use Sabre\VObject\Component\VTimeZone;
use Sabre\VObject\DateTimeParser;
use Sabre\VObject\InvalidDataException;

2
apps/dav/lib/CalDAV/Plugin.php

@ -23,8 +23,6 @@
namespace OCA\DAV\CalDAV;
use Sabre\HTTP\URLUtil;
class Plugin extends \Sabre\CalDAV\Plugin {
/**

1
apps/dav/lib/CalDAV/Principal/Collection.php

@ -23,7 +23,6 @@
namespace OCA\DAV\CalDAV\Principal;
use OCA\DAV\CalDAV\Principal\User;
/**
* Class Collection

1
apps/dav/lib/CalDAV/Schedule/IMipPlugin.php

@ -35,7 +35,6 @@ use OCP\L10N\IFactory as L10NFactory;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use Sabre\CalDAV\Schedule\IMipPlugin as SabreIMipPlugin;
use Sabre\DAV\Xml\Element\Prop;
use Sabre\VObject\Component\VCalendar;
use Sabre\VObject\Component\VEvent;
use Sabre\VObject\DateTimeParser;

1
apps/dav/lib/CardDAV/CardDavBackend.php

@ -46,7 +46,6 @@ use Sabre\CardDAV\Backend\BackendInterface;
use Sabre\CardDAV\Backend\SyncSupport;
use Sabre\CardDAV\Plugin;
use Sabre\DAV\Exception\BadRequest;
use Sabre\HTTP\URLUtil;
use Sabre\VObject\Component\VCard;
use Sabre\VObject\Reader;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

1
apps/dav/lib/CardDAV/ImageExportPlugin.php

@ -24,7 +24,6 @@
namespace OCA\DAV\CardDAV;
use OCP\Files\NotFoundException;
use OCP\ILogger;
use Sabre\CardDAV\Card;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;

1
apps/dav/lib/CardDAV/Plugin.php

@ -27,7 +27,6 @@ use OCA\DAV\CardDAV\Xml\Groups;
use Sabre\DAV\INode;
use Sabre\DAV\PropFind;
use Sabre\DAV\Server;
use Sabre\HTTP\URLUtil;
class Plugin extends \Sabre\CardDAV\Plugin {

1
apps/dav/lib/Connector/LegacyDAVACL.php

@ -28,7 +28,6 @@ namespace OCA\DAV\Connector;
use OCA\DAV\Connector\Sabre\DavAclPlugin;
use Sabre\DAV\INode;
use Sabre\DAV\PropFind;
use Sabre\HTTP\URLUtil;
use Sabre\DAVACL\Xml\Property\Principal;
class LegacyDAVACL extends DavAclPlugin {

1
apps/dav/lib/Connector/Sabre/ObjectTree.php

@ -34,7 +34,6 @@ use OCA\DAV\Connector\Sabre\Exception\Forbidden;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCA\DAV\Connector\Sabre\Exception\FileLocked;
use OC\Files\FileInfo;
use OC\Files\Mount\MoveableMount;
use OCP\Files\ForbiddenException;
use OCP\Files\StorageInvalidException;
use OCP\Files\StorageNotAvailableException;

1
apps/dav/lib/Connector/Sabre/Principal.php

@ -39,7 +39,6 @@ use OCP\Share\IManager as IShareManager;
use Sabre\DAV\Exception;
use \Sabre\DAV\PropPatch;
use Sabre\DAVACL\PrincipalBackend\BackendInterface;
use Sabre\HTTP\URLUtil;
class Principal implements BackendInterface {

3
apps/dav/lib/Connector/Sabre/QuotaPlugin.php

@ -26,15 +26,12 @@
*
*/
namespace OCA\DAV\Connector\Sabre;
use OCA\DAV\Files\FilesHome;
use OCA\DAV\Upload\FutureFile;
use OCA\DAV\Upload\UploadFolder;
use OCP\Files\FileInfo;
use OCP\Files\StorageNotAvailableException;
use Sabre\DAV\Exception\InsufficientStorage;
use Sabre\DAV\Exception\ServiceUnavailable;
use Sabre\DAV\INode;
use Sabre\HTTP\URLUtil;
/**
* This plugin check user quota and deny creating files when they exceeds the quota.

1
apps/dav/lib/Connector/Sabre/ServerFactory.php

@ -39,7 +39,6 @@ use OCP\IPreview;
use OCP\IRequest;
use OCP\ITagManager;
use OCP\IUserSession;
use Sabre\DAV\Auth\Backend\BackendInterface;
use Sabre\DAV\Auth\Plugin;
class ServerFactory {

1
apps/dav/lib/DAV/SystemPrincipalBackend.php

@ -24,7 +24,6 @@
namespace OCA\DAV\DAV;
use Sabre\DAVACL\PrincipalBackend\AbstractBackend;
use Sabre\HTTP\URLUtil;
class SystemPrincipalBackend extends AbstractBackend {

1
apps/dav/lib/Files/FilesHome.php

@ -27,7 +27,6 @@ namespace OCA\DAV\Files;
use OCA\DAV\Connector\Sabre\Directory;
use OCP\Files\FileInfo;
use Sabre\DAV\Exception\Forbidden;
use Sabre\HTTP\URLUtil;
class FilesHome extends Directory {

1
apps/dav/lib/Files/RootCollection.php

@ -25,7 +25,6 @@ namespace OCA\DAV\Files;
use Sabre\DAV\INode;
use Sabre\DAVACL\AbstractPrincipalCollection;
use Sabre\HTTP\URLUtil;
use Sabre\DAV\SimpleCollection;
class RootCollection extends AbstractPrincipalCollection {

2
apps/dav/lib/Server.php

@ -32,9 +32,7 @@
*/
namespace OCA\DAV;
use OC\AppFramework\Utility\TimeFactory;
use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\Schedule\IMipPlugin;
use OCA\DAV\CardDAV\ImageExportPlugin;
use OCA\DAV\CardDAV\PhotoCache;
use OCA\DAV\Comments\CommentsPlugin;

2
apps/dav/lib/Upload/ChunkingPlugin.php

@ -22,8 +22,6 @@
namespace OCA\DAV\Upload;
use OCA\DAV\Connector\Sabre\File;
use Sabre\DAV\Exception\BadRequest;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;

1
apps/encryption/lib/AppInfo/Application.php

@ -40,7 +40,6 @@ use OCA\Encryption\Recovery;
use OCA\Encryption\Session;
use OCA\Encryption\Users\Setup;
use OCA\Encryption\Util;
use OCP\App;
use OCP\AppFramework\IAppContainer;
use OCP\Encryption\IManager;
use OCP\IConfig;

1
apps/encryption/lib/Hooks/UserHooks.php

@ -34,7 +34,6 @@ use OCA\Encryption\Hooks\Contracts\IHook;
use OCA\Encryption\KeyManager;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\Users\Setup;
use OCP\App;
use OCP\ILogger;
use OCP\IUserSession;
use OCA\Encryption\Util;

1
apps/federation/lib/BackgroundJob/GetSharedSecret.php

@ -31,7 +31,6 @@
namespace OCA\Federation\BackgroundJob;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Ring\Exception\RingException;
use OC\BackgroundJob\JobList;

1
apps/federation/lib/BackgroundJob/RequestSharedSecret.php

@ -32,7 +32,6 @@ namespace OCA\Federation\BackgroundJob;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Ring\Exception\RingException;
use OC\BackgroundJob\JobList;

1
apps/federation/lib/SyncJob.php

@ -24,7 +24,6 @@
namespace OCA\Federation;
use OC\BackgroundJob\TimedJob;
use OCA\Federation\AppInfo\Application;
use OCP\ILogger;
class SyncJob extends TimedJob {

1
apps/files_external/lib/AppInfo/Application.php

@ -31,7 +31,6 @@ namespace OCA\Files_External\AppInfo;
use \OCP\AppFramework\App;
use OCP\AppFramework\IAppContainer;
use \OCP\IContainer;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\Config\IBackendProvider;
use \OCA\Files_External\Lib\Config\IAuthMechanismProvider;

2
apps/files_external/lib/Controller/AjaxController.php

@ -30,8 +30,6 @@ namespace OCA\Files_External\Controller;
use OCA\Files_External\Lib\Auth\Password\GlobalAuth;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Response;
use OCP\IGroupManager;
use OCP\IRequest;
use OCP\AppFramework\Http\JSONResponse;

1
apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php

@ -29,7 +29,6 @@ use OCP\IUser;
use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\StorageConfig;
use OCP\Security\ICredentialsManager;
use OCP\Files\Storage;
use OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
/**

3
apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php

@ -24,13 +24,10 @@ namespace OCA\Files_External\Lib\Auth\Password;
use \OCP\IL10N;
use \OCP\IUser;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Lib\StorageConfig;
use \OCP\ISession;
use \OCP\Security\ICredentialsManager;
use \OCP\Files\Storage;
use \OCA\Files_External\Lib\SessionStorageWrapper;
use \OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
/**

1
apps/files_external/lib/Lib/Auth/Password/UserProvided.php

@ -30,7 +30,6 @@ use OCP\IUser;
use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\StorageConfig;
use OCP\Security\ICredentialsManager;
use OCP\Files\Storage;
use OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
/**

4
apps/files_external/lib/Lib/Backend/AmazonS3.php

@ -23,12 +23,8 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
use \OCA\Files_External\Lib\Auth\AmazonS3\AccessKey;
class AmazonS3 extends Backend {

3
apps/files_external/lib/Lib/Backend/DAV.php

@ -23,12 +23,9 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
use \OCA\Files_External\Lib\Auth\Password\Password;
class DAV extends Backend {

3
apps/files_external/lib/Lib/Backend/FTP.php

@ -23,12 +23,9 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
use \OCA\Files_External\Lib\Auth\Password\Password;
class FTP extends Backend {

1
apps/files_external/lib/Lib/Backend/LegacyBackend.php

@ -23,7 +23,6 @@
namespace OCA\Files_External\Lib\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\Auth\Builtin;
use \OCA\Files_External\Lib\MissingDependency;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;

1
apps/files_external/lib/Lib/Backend/Local.php

@ -23,7 +23,6 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;

3
apps/files_external/lib/Lib/Backend/OwnCloud.php

@ -24,11 +24,8 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\Auth\Password\Password;
class OwnCloud extends Backend {

3
apps/files_external/lib/Lib/Backend/SFTP_Key.php

@ -23,12 +23,9 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\Auth\PublicKey\RSA;
use \OCA\Files_External\Lib\Backend\SFTP;
class SFTP_Key extends Backend {

2
apps/files_external/lib/Lib/Backend/SMB.php

@ -23,10 +23,8 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;

2
apps/files_external/lib/Lib/Backend/SMB_OC.php

@ -23,14 +23,12 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\Auth\Password\SessionCredentials;
use \OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
use \OCA\Files_External\Lib\Backend\SMB;
use OCP\IUser;
/**

2
apps/files_external/lib/Lib/Backend/Swift.php

@ -23,10 +23,8 @@
namespace OCA\Files_External\Lib\Backend;
use \OCP\IL10N;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Lib\Auth\OpenStack\OpenStack;
use \OCA\Files_External\Lib\Auth\OpenStack\Rackspace;
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;

2
apps/files_external/lib/Lib/DependencyTrait.php

@ -22,8 +22,6 @@
namespace OCA\Files_External\Lib;
use \OCA\Files_External\Lib\MissingDependency;
/**
* Trait for objects that have dependencies for use
*/

2
apps/files_external/lib/Lib/FrontendDefinitionTrait.php

@ -24,8 +24,6 @@
namespace OCA\Files_External\Lib;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Lib\StorageConfig;
/**
* Trait for objects that have a frontend representation

1
apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php

@ -22,7 +22,6 @@
namespace OCA\Files_External\Lib;
use \OCA\Files_External\Lib\MissingDependency;
/**
* Polyfill for checking dependencies using legacy Storage::checkDependencies()

1
apps/files_external/lib/Lib/SessionStorageWrapper.php

@ -22,7 +22,6 @@
namespace OCA\Files_External\Lib;
use \OCP\Files\Storage;
use \OC\Files\Storage\Wrapper\PermissionsMask;
use \OCP\Constants;

1
apps/files_external/lib/Lib/Storage/Swift.php

@ -49,7 +49,6 @@ use OpenCloud\Common\Exceptions;
use OpenCloud\OpenStack;
use OpenCloud\Rackspace;
use OpenCloud\ObjectStore\Resource\DataObject;
use OpenCloud\ObjectStore\Exception;
class Swift extends \OC\Files\Storage\Common {

2
apps/files_external/lib/Lib/StorageModifierTrait.php

@ -24,8 +24,6 @@ namespace OCA\Files_External\Lib;
use \OCP\IUser;
use \OCP\Files\Storage;
use \OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
use \OCP\Files\StorageNotAvailableException;
/**

1
apps/files_external/lib/Migration/StorageMigrator.php

@ -27,7 +27,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\GlobalStoragesService;
use OCA\Files_External\Service\LegacyStoragesService;
use OCA\Files_External\Service\StoragesService;
use OCA\Files_External\Service\UserLegacyStoragesService;

2
apps/files_external/lib/Service/UserStoragesService.php

@ -32,8 +32,6 @@ use \OC\Files\Filesystem;
use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\NotFoundException;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Service\UserTrait;
/**
* Service class to manage user external storages

1
apps/files_external/lib/Settings/Personal.php

@ -25,7 +25,6 @@ namespace OCA\Files_External\Settings;
use OCA\Files_External\Lib\Auth\Password\GlobalAuth;
use OCA\Files_External\Service\BackendService;
use OCA\Files_External\Service\GlobalStoragesService;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Encryption\IManager;

1
apps/files_sharing/lib/Controller/ShareController.php

@ -35,7 +35,6 @@
namespace OCA\Files_Sharing\Controller;
use OC\Files\Node\Folder;
use OC_Files;
use OC_Util;
use OCA\FederatedFileSharing\FederatedShareProvider;

1
apps/files_sharing/lib/Controller/ShareInfoController.php

@ -31,7 +31,6 @@ use OCP\Constants;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\Node;
use OCP\ILogger;
use OCP\IRequest;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IManager;

1
apps/files_sharing/lib/Middleware/ShareInfoMiddleware.php

@ -23,7 +23,6 @@
*/
namespace OCA\Files_Sharing\Middleware;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCA\Files_Sharing\Controller\ShareInfoController;
use OCA\Files_Sharing\Exceptions\S2SException;
use OCP\AppFramework\Controller;

1
apps/sharebymail/templates/settings-admin.php

@ -1,6 +1,5 @@
<?php
/** @var array $_ */
use OCA\Federation\TrustedServers;
/** @var \OCP\IL10N $l */
script('sharebymail', 'settings-admin');

1
apps/systemtags/lib/Activity/Listener.php

@ -34,7 +34,6 @@ use OCP\IGroup;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserSession;
use OCP\Share;
use OCP\Share\IShareHelper;
use OCP\SystemTag\ISystemTag;
use OCP\SystemTag\ISystemTagManager;

2
apps/theming/lib/Controller/ThemingController.php

@ -32,7 +32,6 @@
namespace OCA\Theming\Controller;
use OC\Files\AppData\Factory;
use OC\Template\SCSSCacher;
use OCA\Theming\ThemingDefaults;
use OCP\AppFramework\Controller;
@ -48,7 +47,6 @@ use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\IConfig;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IRequest;
use OCA\Theming\Util;
use OCP\ITempManager;

1
apps/theming/lib/Util.php

@ -31,7 +31,6 @@ use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
use OCP\Files\SimpleFS\ISimpleFile;
use OCP\IConfig;
use OCP\Files\IRootFolder;
use Leafo\ScssPhp\Compiler;
class Util {

1
apps/user_ldap/lib/Controller/RenewPasswordController.php

@ -24,7 +24,6 @@
namespace OCA\User_LDAP\Controller;
use OC\HintException;
use OC_Util;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\TemplateResponse;

2
apps/user_ldap/lib/Jobs/Sync.php

@ -25,10 +25,8 @@ namespace OCA\User_LDAP\Jobs;
use OC\BackgroundJob\TimedJob;
use OC\ServerNotAvailableException;
use OCA\User_LDAP\Access;
use OCA\User_LDAP\AccessFactory;
use OCA\User_LDAP\Configuration;
use OCA\User_LDAP\Connection;
use OCA\User_LDAP\ConnectionFactory;
use OCA\User_LDAP\FilesystemHelper;
use OCA\User_LDAP\Helper;

2
apps/user_ldap/lib/Notification/Notifier.php

@ -26,8 +26,6 @@
namespace OCA\User_LDAP\Notification;
use OCP\IUser;
use OCP\IUserManager;
use OCP\L10N\IFactory;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;

2
core/Command/Group/AddUser.php

@ -26,10 +26,8 @@ namespace OC\Core\Command\Group;
use OC\Core\Command\Base;
use OCP\IGroupManager;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class AddUser extends Base {

3
core/Command/Group/ListCommand.php

@ -26,9 +26,6 @@ namespace OC\Core\Command\Group;
use OC\Core\Command\Base;
use OCP\IGroup;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

2
core/Command/Group/RemoveUser.php

@ -26,10 +26,8 @@ namespace OC\Core\Command\Group;
use OC\Core\Command\Base;
use OCP\IGroupManager;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class RemoveUser extends Base {

4
core/Command/Maintenance/UpdateHtaccess.php

@ -22,12 +22,8 @@
*/
namespace OC\Core\Command\Maintenance;
use InvalidArgumentException;
use OC\Setup;
use OCP\IConfig;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class UpdateHtaccess extends Command {

3
core/Command/Security/ImportCertificate.php

@ -24,11 +24,8 @@ namespace OC\Core\Command\Security;
use OC\Core\Command\Base;
use OCP\ICertificateManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ImportCertificate extends Base {

2
core/Command/Security/ListCertificates.php

@ -26,10 +26,8 @@ use OC\Core\Command\Base;
use OCP\ICertificate;
use OCP\ICertificateManager;
use OCP\IL10N;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ListCertificates extends Base {

3
core/Command/Security/RemoveCertificate.php

@ -25,11 +25,8 @@ namespace OC\Core\Command\Security;
use OC\Core\Command\Base;
use OCP\ICertificateManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class RemoveCertificate extends Base {

1
core/Command/TwoFactorAuth/Base.php

@ -25,7 +25,6 @@ namespace OC\Core\Command\TwoFactorAuth;
use OCP\IUserManager;
use OCP\IUser;
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
class Base extends \OC\Core\Command\Base {

1
core/Command/Upgrade.php

@ -44,7 +44,6 @@ use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\EventDispatcher\GenericEvent;
class Upgrade extends Command {

1
core/Command/User/Disable.php

@ -22,7 +22,6 @@
namespace OC\Core\Command\User;
use OCP\IUser;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;

1
core/Command/User/Enable.php

@ -22,7 +22,6 @@
namespace OC\Core\Command\User;
use OCP\IUser;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;

2
core/Command/User/Info.php

@ -25,9 +25,7 @@ namespace OC\Core\Command\User;
use OC\Core\Command\Base;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;

1
core/Command/User/ListCommand.php

@ -26,7 +26,6 @@ namespace OC\Core\Command\User;
use OC\Core\Command\Base;
use OCP\IUser;
use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

1
core/Controller/AvatarController.php

@ -34,7 +34,6 @@ use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\File;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\IAvatarManager;
use OCP\ICache;
use OCP\ILogger;

1
lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php

@ -26,7 +26,6 @@ namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Utility\ControllerMethodReflector;
use OC\Security\Bruteforce\Throttler;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Middleware;
use OCP\IRequest;

1
lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php

@ -27,7 +27,6 @@ namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Utility\ControllerMethodReflector;
use OC\Security\RateLimiting\Exception\RateLimitExceededException;
use OC\Security\RateLimiting\Limiter;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Middleware;

2
lib/private/Contacts/ContactsMenu/ContactsStore.php

@ -27,14 +27,12 @@
namespace OC\Contacts\ContactsMenu;
use OC\Share\Share;
use OCP\Contacts\ContactsMenu\IEntry;
use OCP\Contacts\IManager;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
use OCP\Contacts\ContactsMenu\IContactsStore;
class ContactsStore implements IContactsStore {

2
lib/private/DB/MigrationService.php

@ -31,8 +31,6 @@ use OCP\AppFramework\QueryException;
use OCP\IDBConnection;
use OCP\Migration\IMigrationStep;
use OCP\Migration\IOutput;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type;
class MigrationService {

1
lib/private/DB/SchemaWrapper.php

@ -23,7 +23,6 @@
namespace OC\DB;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\Schema;
use OCP\DB\ISchemaWrapper;
use OCP\IDBConnection;

1
lib/private/Files/Config/UserMountCache.php

@ -25,7 +25,6 @@
namespace OC\Files\Config;
use OC\DB\QueryBuilder\Literal;
use OCA\Files_Sharing\SharedMount;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\Files\Config\ICachedMountFileInfo;

3
lib/private/Files/ObjectStore/S3ObjectTrait.php

@ -23,10 +23,7 @@
namespace OC\Files\ObjectStore;
use Aws\Exception\MultipartUploadException;
use Aws\S3\MultipartUploader;
use Aws\S3\S3Client;
use Psr\Http\Message\StreamInterface;
const S3_UPLOAD_PART_SIZE = 524288000; // 500MB

5
lib/private/Installer.php

@ -36,17 +36,12 @@
namespace OC;
use Doctrine\DBAL\Exception\TableExistsException;
use OC\App\AppManager;
use OC\App\AppStore\Bundles\Bundle;
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\App\CodeChecker\CodeChecker;
use OC\App\CodeChecker\EmptyCheck;
use OC\App\CodeChecker\PrivateCheck;
use OC\Archive\TAR;
use OC_App;
use OC_DB;
use OC_Helper;
use OCP\App\IAppManager;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\ILogger;

2
lib/private/Repair.php

@ -30,8 +30,6 @@
namespace OC;
use OC\App\AppStore\Bundles\BundleFetcher;
use OC\Files\AppData\Factory;
use OC\Repair\CleanTags;
use OC\Repair\ClearFrontendCaches;
use OC\Repair\Collation;

5
lib/private/Share/Share.php

@ -39,12 +39,7 @@
namespace OC\Share;
use OC\Files\Filesystem;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\ILogger;
use OCP\IUserManager;
use OCP\IUserSession;
use OCP\IDBConnection;
use OCP\IConfig;
use OCP\Util;

1
lib/private/Share20/DefaultShareProvider.php

@ -30,7 +30,6 @@
namespace OC\Share20;
use OC\Files\Cache\Cache;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Share\IShareProvider;
use OC\Share20\Exception\InvalidShare;

1
lib/private/User/Session.php

@ -55,7 +55,6 @@ use OCP\ILogger;
use OCP\IRequest;
use OCP\ISession;
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
use OCP\Lockdown\ILockdownManager;
use OCP\Security\ISecureRandom;

1
lib/public/Util.php

@ -51,7 +51,6 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP;
use DateTimeZone;
/**
* This class provides different helper functions to make the life of a developer easier

1
settings/Controller/CheckSetupController.php

@ -43,7 +43,6 @@ use OCP\IConfig;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IRequest;
use OC_Util;
use OCP\IURLGenerator;
/**

5
settings/Controller/LogSettingsController.php

@ -27,12 +27,7 @@
namespace OC\Settings\Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\StreamResponse;
use OCP\IL10N;
use OCP\IRequest;
use OCP\IConfig;
/**
* Class LogSettingsController

Loading…
Cancel
Save