Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>tags/v19.0.0beta1
@@ -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; |
@@ -23,8 +23,6 @@ | |||
namespace OCA\CloudFederationAPI; | |||
use OCP\Federation\ICloudFederationProviderManager; | |||
use OCP\GlobalScale\IConfig as IGsConfig; | |||
use OCP\IConfig; | |||
/** | |||
* Class config |
@@ -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; |
@@ -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 { |
@@ -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 { | |||
@@ -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; |
@@ -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; |
@@ -22,7 +22,6 @@ | |||
*/ | |||
namespace OCA\DAV\CalDAV\Integration; | |||
use Sabre\CalDAV\ICalendar; | |||
/** | |||
* Interface ICalendarProvider |
@@ -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; | |||
@@ -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; |
@@ -4,7 +4,6 @@ declare(strict_types=1); | |||
namespace OCA\DAV\CardDAV\Integration; | |||
use Sabre\CardDAV\IAddressBook; | |||
/** | |||
* @since 19.0.0 |
@@ -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; |
@@ -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; |
@@ -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 { | |||
@@ -33,13 +33,11 @@ | |||
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; |
@@ -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; |
@@ -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; | |||
@@ -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; |
@@ -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; |
@@ -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; | |||
@@ -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 { | |||
@@ -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; | |||
@@ -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 { |
@@ -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 { | |||
@@ -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 { | |||
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -27,12 +27,8 @@ | |||
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; | |||
/** |
@@ -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; | |||
@@ -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; |
@@ -24,12 +24,9 @@ | |||
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; |
@@ -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 { |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit; | |||
use OCA\DAV\AppInfo\PluginManager; | |||
use OCA\DAV\Server; | |||
use OCP\IRequest; | |||
@@ -24,11 +24,6 @@ | |||
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; |
@@ -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; | |||
@@ -29,17 +29,13 @@ | |||
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 |
@@ -28,28 +28,19 @@ | |||
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 |
@@ -26,14 +26,8 @@ | |||
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; | |||
@@ -52,7 +52,6 @@ use OCP\IPreview; | |||
use OCP\IRequest; | |||
use OCP\IUserSession; | |||
use OCP\Share\IManager; | |||
use Sabre\VObject\Property\Boolean; | |||
/** | |||
* Class ApiController |
@@ -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; |
@@ -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; |
@@ -25,7 +25,6 @@ | |||
* | |||
*/ | |||
use OCA\Files\Tests; | |||
/** | |||
* Class Helper |
@@ -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 { | |||
/** |
@@ -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; |
@@ -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; |
@@ -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 { |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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 { | |||
@@ -29,7 +29,6 @@ | |||
namespace OCA\Files_Sharing; | |||
use OC\Files\Filesystem; | |||
use OCA\FederatedFileSharing\DiscoveryManager; | |||
class Hooks { | |||
@@ -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; |
@@ -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; |
@@ -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 = []) { |
@@ -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 */ |
@@ -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; |
@@ -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; |
@@ -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; | |||
@@ -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; | |||
@@ -28,7 +28,6 @@ | |||
* | |||
*/ | |||
use OCA\Files_Trashbin\Tests; | |||
use OCA\Files_Sharing\AppInfo\Application; | |||
/** |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; | |||
@@ -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; |
@@ -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 |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; | |||
@@ -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; |
@@ -25,17 +25,13 @@ | |||
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 { | |||
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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 { |
@@ -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; |
@@ -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; |
@@ -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 { | |||
@@ -26,10 +26,6 @@ | |||
*/ | |||
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'; |
@@ -22,8 +22,6 @@ | |||
* | |||
*/ | |||
use GuzzleHttp\Client; | |||
use GuzzleHttp\Message\ResponseInterface; | |||
use PHPUnit\Framework\Assert; | |||
require __DIR__ . '/../../vendor/autoload.php'; |
@@ -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'; | |||
@@ -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'; |
@@ -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'; | |||
@@ -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'; | |||