Browse Source
Merge pull request #20170 from nextcloud/techdebt/remove-unused-imports
Remove unused imports
pull/20214/head
Christoph Wurst
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
197 changed files with
0 additions and
332 deletions
-
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
|
|
|
@ -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'; |
|
|
|
|
|
|
|
|
|
|
|
@ -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; |
|
|
|
|