summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-24 11:54:12 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-24 11:54:12 +0200
commitc60ef7deb88c44ebedf62f8387577642d4a486a1 (patch)
tree73b5442d4704d23d46ef77cfea9d3a119ccaf165 /apps/files_external
parentf8bbbba306d3db26715fe4150013000454fb42f0 (diff)
parent64538740ec3bc24501145140314cf110cf77b364 (diff)
downloadnextcloud-server-c60ef7deb88c44ebedf62f8387577642d4a486a1.tar.gz
nextcloud-server-c60ef7deb88c44ebedf62f8387577642d4a486a1.zip
Merge pull request #24619 from owncloud/files_external-psr4
Move files_external to PSR-4
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/appinfo/app.php2
-rw-r--r--apps/files_external/appinfo/info.xml2
-rw-r--r--apps/files_external/appinfo/register_command.php6
-rw-r--r--apps/files_external/appinfo/routes.php2
-rw-r--r--apps/files_external/appinfo/update.php4
-rw-r--r--apps/files_external/lib/AppInfo/Application.php (renamed from apps/files_external/appinfo/application.php)2
-rw-r--r--apps/files_external/lib/Command/Applicable.php (renamed from apps/files_external/command/applicable.php)9
-rw-r--r--apps/files_external/lib/Command/Backends.php (renamed from apps/files_external/command/backends.php)0
-rw-r--r--apps/files_external/lib/Command/Config.php (renamed from apps/files_external/command/config.php)6
-rw-r--r--apps/files_external/lib/Command/Create.php (renamed from apps/files_external/command/create.php)11
-rw-r--r--apps/files_external/lib/Command/Delete.php (renamed from apps/files_external/command/delete.php)10
-rw-r--r--apps/files_external/lib/Command/Export.php (renamed from apps/files_external/command/export.php)0
-rw-r--r--apps/files_external/lib/Command/Import.php (renamed from apps/files_external/command/import.php)12
-rw-r--r--apps/files_external/lib/Command/ListCommand.php (renamed from apps/files_external/command/listcommand.php)7
-rw-r--r--apps/files_external/lib/Command/Option.php (renamed from apps/files_external/command/option.php)12
-rw-r--r--apps/files_external/lib/Command/Verify.php (renamed from apps/files_external/command/verify.php)9
-rw-r--r--apps/files_external/lib/Config/ConfigAdapter.php (renamed from apps/files_external/lib/config/configadapter.php)4
-rw-r--r--apps/files_external/lib/Controller/AjaxController.php (renamed from apps/files_external/controller/ajaxcontroller.php)0
-rw-r--r--apps/files_external/lib/Controller/GlobalStoragesController.php (renamed from apps/files_external/controller/globalstoragescontroller.php)9
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php (renamed from apps/files_external/controller/storagescontroller.php)10
-rw-r--r--apps/files_external/lib/Controller/UserGlobalStoragesController.php (renamed from apps/files_external/controller/userglobalstoragescontroller.php)6
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php (renamed from apps/files_external/controller/userstoragescontroller.php)10
-rw-r--r--apps/files_external/lib/Lib/Api.php (renamed from apps/files_external/lib/api.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php (renamed from apps/files_external/lib/auth/amazons3/accesskey.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/AuthMechanism.php (renamed from apps/files_external/lib/auth/authmechanism.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/Builtin.php (renamed from apps/files_external/lib/auth/builtin.php)2
-rw-r--r--apps/files_external/lib/Lib/Auth/IUserProvided.php (renamed from apps/files_external/lib/auth/iuserprovided.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/NullMechanism.php (renamed from apps/files_external/lib/auth/nullmechanism.php)2
-rw-r--r--apps/files_external/lib/Lib/Auth/OAuth1/OAuth1.php (renamed from apps/files_external/lib/auth/oauth1/oauth1.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php (renamed from apps/files_external/lib/auth/oauth2/oauth2.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/OpenStack/OpenStack.php (renamed from apps/files_external/lib/auth/openstack/openstack.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/OpenStack/Rackspace.php (renamed from apps/files_external/lib/auth/openstack/rackspace.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/Password.php (renamed from apps/files_external/lib/auth/password/password.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/SessionCredentials.php (renamed from apps/files_external/lib/auth/password/sessioncredentials.php)0
-rw-r--r--apps/files_external/lib/Lib/Auth/PublicKey/RSA.php (renamed from apps/files_external/lib/auth/publickey/rsa.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/AmazonS3.php (renamed from apps/files_external/lib/backend/amazons3.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/Backend.php (renamed from apps/files_external/lib/backend/backend.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/DAV.php (renamed from apps/files_external/lib/backend/dav.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/Dropbox.php (renamed from apps/files_external/lib/backend/dropbox.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/FTP.php (renamed from apps/files_external/lib/backend/ftp.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/Google.php (renamed from apps/files_external/lib/backend/google.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/LegacyBackend.php (renamed from apps/files_external/lib/backend/legacybackend.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/Local.php (renamed from apps/files_external/lib/backend/local.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/OwnCloud.php (renamed from apps/files_external/lib/backend/owncloud.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP.php (renamed from apps/files_external/lib/backend/sftp.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP_Key.php (renamed from apps/files_external/lib/backend/sftp_key.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php (renamed from apps/files_external/lib/backend/smb.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB_OC.php (renamed from apps/files_external/lib/backend/smb_oc.php)0
-rw-r--r--apps/files_external/lib/Lib/Backend/Swift.php (renamed from apps/files_external/lib/backend/swift.php)0
-rw-r--r--apps/files_external/lib/Lib/DefinitionParameter.php (renamed from apps/files_external/lib/definitionparameter.php)0
-rw-r--r--apps/files_external/lib/Lib/DependencyTrait.php (renamed from apps/files_external/lib/dependencytrait.php)0
-rw-r--r--apps/files_external/lib/Lib/FrontendDefinitionTrait.php (renamed from apps/files_external/lib/frontenddefinitiontrait.php)0
-rw-r--r--apps/files_external/lib/Lib/IdentifierTrait.php (renamed from apps/files_external/lib/identifiertrait.php)0
-rw-r--r--apps/files_external/lib/Lib/InsufficientDataForMeaningfulAnswerException.php (renamed from apps/files_external/lib/insufficientdataformeaningfulanswerexception.php)0
-rw-r--r--apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php (renamed from apps/files_external/lib/legacydependencycheckpolyfill.php)0
-rw-r--r--apps/files_external/lib/Lib/MissingDependency.php (renamed from apps/files_external/lib/missingdependency.php)0
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php (renamed from apps/files_external/lib/personalmount.php)0
-rw-r--r--apps/files_external/lib/Lib/PriorityTrait.php (renamed from apps/files_external/lib/prioritytrait.php)0
-rw-r--r--apps/files_external/lib/Lib/SessionStorageWrapper.php (renamed from apps/files_external/lib/sessionstoragewrapper.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php (renamed from apps/files_external/lib/storage/amazons3.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/Dropbox.php (renamed from apps/files_external/lib/storage/dropbox.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/FTP.php (renamed from apps/files_external/lib/storage/ftp.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/Google.php (renamed from apps/files_external/lib/storage/google.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/OwnCloud.php (renamed from apps/files_external/lib/storage/owncloud.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTP.php (renamed from apps/files_external/lib/storage/sftp.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php (renamed from apps/files_external/lib/storage/smb.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/StreamWrapper.php (renamed from apps/files_external/lib/storage/streamwrapper.php)0
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php (renamed from apps/files_external/lib/storage/swift.php)0
-rw-r--r--apps/files_external/lib/Lib/StorageConfig.php (renamed from apps/files_external/lib/storageconfig.php)2
-rw-r--r--apps/files_external/lib/Lib/StorageModifierTrait.php (renamed from apps/files_external/lib/storagemodifiertrait.php)0
-rw-r--r--apps/files_external/lib/Lib/VisibilityTrait.php (renamed from apps/files_external/lib/visibilitytrait.php)0
-rw-r--r--apps/files_external/lib/Migration/DummyUserSession.php (renamed from apps/files_external/migration/dummyusersession.php)2
-rw-r--r--apps/files_external/lib/Migration/StorageMigrator.php (renamed from apps/files_external/migration/storagemigrator.php)15
-rw-r--r--apps/files_external/lib/NotFoundException.php (renamed from apps/files_external/lib/notfoundexception.php)2
-rw-r--r--apps/files_external/lib/Service/BackendService.php (renamed from apps/files_external/service/backendservice.php)0
-rw-r--r--apps/files_external/lib/Service/DBConfigService.php (renamed from apps/files_external/service/dbconfigservice.php)0
-rw-r--r--apps/files_external/lib/Service/GlobalLegacyStoragesService.php (renamed from apps/files_external/service/globallegacystoragesservice.php)2
-rw-r--r--apps/files_external/lib/Service/GlobalStoragesService.php (renamed from apps/files_external/service/globalstoragesservice.php)8
-rw-r--r--apps/files_external/lib/Service/ImportLegacyStoragesService.php (renamed from apps/files_external/service/importlegacystoragesservice.php)2
-rw-r--r--apps/files_external/lib/Service/LegacyStoragesService.php (renamed from apps/files_external/service/legacystoragesservice.php)4
-rw-r--r--apps/files_external/lib/Service/StoragesService.php (renamed from apps/files_external/service/storagesservice.php)6
-rw-r--r--apps/files_external/lib/Service/UserGlobalStoragesService.php (renamed from apps/files_external/service/userglobalstoragesservice.php)3
-rw-r--r--apps/files_external/lib/Service/UserLegacyStoragesService.php (renamed from apps/files_external/service/userlegacystoragesservice.php)2
-rw-r--r--apps/files_external/lib/Service/UserStoragesService.php (renamed from apps/files_external/service/userstoragesservice.php)6
-rw-r--r--apps/files_external/lib/Service/UserTrait.php (renamed from apps/files_external/service/usertrait.php)0
-rw-r--r--apps/files_external/lib/config.php4
-rw-r--r--apps/files_external/personal.php2
-rw-r--r--apps/files_external/settings.php2
-rw-r--r--apps/files_external/tests/AmazonS3MigrationTest.php (renamed from apps/files_external/tests/amazons3migration.php)2
-rw-r--r--apps/files_external/tests/Auth/AuthMechanismTest.php (renamed from apps/files_external/tests/auth/authmechanismtest.php)0
-rw-r--r--apps/files_external/tests/Backend/BackendTest.php (renamed from apps/files_external/tests/backend/backendtest.php)0
-rw-r--r--apps/files_external/tests/Backend/LegacyBackendTest.php (renamed from apps/files_external/tests/backend/legacybackendtest.php)0
-rw-r--r--apps/files_external/tests/Command/ApplicableTest.php (renamed from apps/files_external/tests/command/applicabletest.php)0
-rw-r--r--apps/files_external/tests/Command/CommandTest.php (renamed from apps/files_external/tests/command/commandtest.php)8
-rw-r--r--apps/files_external/tests/Command/ListCommandTest.php (renamed from apps/files_external/tests/command/listcommandtest.php)10
-rw-r--r--apps/files_external/tests/Controller/GlobalStoragesControllerTest.php (renamed from apps/files_external/tests/controller/globalstoragescontrollertest.php)8
-rw-r--r--apps/files_external/tests/Controller/StoragesControllerTest.php (renamed from apps/files_external/tests/controller/storagescontrollertest.php)10
-rw-r--r--apps/files_external/tests/Controller/UserStoragesControllerTest.php (renamed from apps/files_external/tests/controller/userstoragescontrollertest.php)9
-rw-r--r--apps/files_external/tests/DefinitionParameterTest.php (renamed from apps/files_external/tests/definitionparameterttest.php)0
-rw-r--r--apps/files_external/tests/FrontendDefinitionTraitTest.php (renamed from apps/files_external/tests/frontenddefinitiontraittest.php)0
-rw-r--r--apps/files_external/tests/LegacyDependencyCheckPolyfillTest.php (renamed from apps/files_external/tests/legacydependencycheckpolyfilltest.php)0
-rw-r--r--apps/files_external/tests/OwnCloudFunctionsTest.php (renamed from apps/files_external/tests/owncloudfunctions.php)2
-rw-r--r--apps/files_external/tests/PersonalMountTest.php (renamed from apps/files_external/tests/personalmounttest.php)2
-rw-r--r--apps/files_external/tests/Service/BackendServiceTest.php (renamed from apps/files_external/tests/service/backendservicetest.php)0
-rw-r--r--apps/files_external/tests/Service/DBConfigServiceTest.php (renamed from apps/files_external/tests/service/dbconfigservicetest.php)0
-rw-r--r--apps/files_external/tests/Service/GlobalStoragesServiceTest.php (renamed from apps/files_external/tests/service/globalstoragesservicetest.php)10
-rw-r--r--apps/files_external/tests/Service/StoragesServiceTest.php (renamed from apps/files_external/tests/service/storagesservicetest.php)12
-rw-r--r--apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php (renamed from apps/files_external/tests/service/userglobalstoragesservicetest.php)9
-rw-r--r--apps/files_external/tests/Service/UserStoragesServiceTest.php (renamed from apps/files_external/tests/service/userstoragesservicetest.php)15
-rw-r--r--apps/files_external/tests/Storage/AmazonS3Test.php (renamed from apps/files_external/tests/storage/amazons3test.php)0
-rw-r--r--apps/files_external/tests/Storage/DropboxTest.php (renamed from apps/files_external/tests/storage/dropboxtest.php)0
-rw-r--r--apps/files_external/tests/Storage/FTPTest.php (renamed from apps/files_external/tests/storage/ftptest.php)0
-rw-r--r--apps/files_external/tests/Storage/GoogleTest.php (renamed from apps/files_external/tests/storage/googletest.php)0
-rw-r--r--apps/files_external/tests/Storage/OwnCloudTest.php (renamed from apps/files_external/tests/storage/owncloudtest.php)0
-rw-r--r--apps/files_external/tests/Storage/SFTPTest.php (renamed from apps/files_external/tests/storage/sftptest.php)0
-rw-r--r--apps/files_external/tests/Storage/SFTP_KeyTest.php (renamed from apps/files_external/tests/storage/sftp_keytest.php)0
-rw-r--r--apps/files_external/tests/Storage/SMBTest.php (renamed from apps/files_external/tests/storage/smbtest.php)0
-rw-r--r--apps/files_external/tests/Storage/SwiftTest.php (renamed from apps/files_external/tests/storage/swifttest.php)0
-rw-r--r--apps/files_external/tests/Storage/WebDAVTest.php (renamed from apps/files_external/tests/storage/webdavtest.php)0
-rw-r--r--apps/files_external/tests/StorageConfigTest.php (renamed from apps/files_external/tests/storageconfigtest.php)4
120 files changed, 118 insertions, 182 deletions
diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php
index 18f8b2551fa..26358886c0b 100644
--- a/apps/files_external/appinfo/app.php
+++ b/apps/files_external/appinfo/app.php
@@ -31,7 +31,7 @@ OC::$CLASSPATH['OC_Mount_Config'] = 'files_external/lib/config.php';
require_once __DIR__ . '/../3rdparty/autoload.php';
// register Application object singleton
-\OC_Mount_Config::$app = new \OCA\Files_external\Appinfo\Application();
+\OC_Mount_Config::$app = new \OCA\Files_External\AppInfo\Application();
$appContainer = \OC_Mount_Config::$app->getContainer();
\OC_Mount_Config::$app->registerSettings();
diff --git a/apps/files_external/appinfo/info.xml b/apps/files_external/appinfo/info.xml
index 2b192c94aa4..25df58c6368 100644
--- a/apps/files_external/appinfo/info.xml
+++ b/apps/files_external/appinfo/info.xml
@@ -19,6 +19,8 @@
</types>
<ocsid>166048</ocsid>
+ <namespace>Files_External</namespace>
+
<dependencies>
<owncloud min-version="9.1" max-version="9.1" />
</dependencies>
diff --git a/apps/files_external/appinfo/register_command.php b/apps/files_external/appinfo/register_command.php
index 927ce9869f9..65ac2286fa0 100644
--- a/apps/files_external/appinfo/register_command.php
+++ b/apps/files_external/appinfo/register_command.php
@@ -37,9 +37,9 @@ $groupManager = OC::$server->getGroupManager();
$app = \OC_Mount_Config::$app;
-$globalStorageService = $app->getContainer()->query('\OCA\Files_external\Service\GlobalStoragesService');
-$userStorageService = $app->getContainer()->query('\OCA\Files_external\Service\UserStoragesService');
-$importLegacyStorageService = $app->getContainer()->query('\OCA\Files_external\Service\ImportLegacyStoragesService');
+$globalStorageService = $app->getContainer()->query('\OCA\Files_External\Service\GlobalStoragesService');
+$userStorageService = $app->getContainer()->query('\OCA\Files_External\Service\UserStoragesService');
+$importLegacyStorageService = $app->getContainer()->query('\OCA\Files_External\Service\ImportLegacyStoragesService');
$backendService = $app->getContainer()->query('OCA\Files_External\Service\BackendService');
/** @var Symfony\Component\Console\Application $application */
diff --git a/apps/files_external/appinfo/routes.php b/apps/files_external/appinfo/routes.php
index e2f55e652a8..703b2cd265f 100644
--- a/apps/files_external/appinfo/routes.php
+++ b/apps/files_external/appinfo/routes.php
@@ -26,8 +26,6 @@
*
*/
-namespace OCA\Files_External\AppInfo;
-
/**
* @var $this \OCP\Route\IRouter
**/
diff --git a/apps/files_external/appinfo/update.php b/apps/files_external/appinfo/update.php
index 8cc2422c7ff..62dfbadc936 100644
--- a/apps/files_external/appinfo/update.php
+++ b/apps/files_external/appinfo/update.php
@@ -21,10 +21,10 @@
$installedVersion = \OC::$server->getConfig()->getAppValue('files_external', 'installed_version');
-$app = new \OCA\Files_external\Appinfo\Application();
+$app = new \OCA\Files_External\AppInfo\Application();
// Migration to db config
if (version_compare($installedVersion, '0.5.0', '<')) {
- $migrator = $app->getContainer()->query('OCA\Files_external\Migration\StorageMigrator');
+ $migrator = $app->getContainer()->query('OCA\Files_External\Migration\StorageMigrator');
$migrator->migrateGlobal();
}
diff --git a/apps/files_external/appinfo/application.php b/apps/files_external/lib/AppInfo/Application.php
index 5d490c6091f..d7c650526b3 100644
--- a/apps/files_external/appinfo/application.php
+++ b/apps/files_external/lib/AppInfo/Application.php
@@ -34,7 +34,7 @@ use \OCA\Files_External\Lib\Config\IBackendProvider;
use \OCA\Files_External\Lib\Config\IAuthMechanismProvider;
/**
- * @package OCA\Files_External\Appinfo
+ * @package OCA\Files_External\AppInfo
*/
class Application extends App implements IBackendProvider, IAuthMechanismProvider {
diff --git a/apps/files_external/command/applicable.php b/apps/files_external/lib/Command/Applicable.php
index 7e6c99d2915..4e178edbbae 100644
--- a/apps/files_external/command/applicable.php
+++ b/apps/files_external/lib/Command/Applicable.php
@@ -22,14 +22,11 @@
namespace OCA\Files_External\Command;
use OC\Core\Command\Base;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\NotFoundException;
-use OCA\Files_external\Service\GlobalStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Service\GlobalStoragesService;
use OCP\IGroupManager;
use OCP\IUserManager;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
diff --git a/apps/files_external/command/backends.php b/apps/files_external/lib/Command/Backends.php
index 260ea210397..260ea210397 100644
--- a/apps/files_external/command/backends.php
+++ b/apps/files_external/lib/Command/Backends.php
diff --git a/apps/files_external/command/config.php b/apps/files_external/lib/Command/Config.php
index 1403c24b345..909b130f17b 100644
--- a/apps/files_external/command/config.php
+++ b/apps/files_external/lib/Command/Config.php
@@ -22,9 +22,9 @@
namespace OCA\Files_External\Command;
use OC\Core\Command\Base;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\NotFoundException;
-use OCA\Files_external\Service\GlobalStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Service\GlobalStoragesService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Helper\TableHelper;
diff --git a/apps/files_external/command/create.php b/apps/files_external/lib/Command/Create.php
index 315b23f9d3c..e5fd095d6f2 100644
--- a/apps/files_external/command/create.php
+++ b/apps/files_external/lib/Command/Create.php
@@ -27,21 +27,16 @@ use OC\User\NoUserException;
use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\Backend\Backend;
use OCA\Files_External\Lib\DefinitionParameter;
-use OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\Service\BackendService;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\ImportLegacyStoragesService;
-use OCA\Files_external\Service\UserStoragesService;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use OCP\IUserManager;
use OCP\IUserSession;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\Input;
use Symfony\Component\Console\Output\OutputInterface;
class Create extends Base {
diff --git a/apps/files_external/command/delete.php b/apps/files_external/lib/Command/Delete.php
index bdbfcf8bb55..64228b2033b 100644
--- a/apps/files_external/command/delete.php
+++ b/apps/files_external/lib/Command/Delete.php
@@ -22,15 +22,11 @@
namespace OCA\Files_External\Command;
use OC\Core\Command\Base;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\NotFoundException;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\UserStoragesService;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use OCP\IUserManager;
use OCP\IUserSession;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/apps/files_external/command/export.php b/apps/files_external/lib/Command/Export.php
index 09c5ea8a9df..09c5ea8a9df 100644
--- a/apps/files_external/command/export.php
+++ b/apps/files_external/lib/Command/Export.php
diff --git a/apps/files_external/command/import.php b/apps/files_external/lib/Command/Import.php
index 97bb9a937f0..4f881acb500 100644
--- a/apps/files_external/command/import.php
+++ b/apps/files_external/lib/Command/Import.php
@@ -23,21 +23,17 @@ namespace OCA\Files_External\Command;
use OC\Core\Command\Base;
use OC\User\NoUserException;
-use OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\Service\BackendService;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\ImportLegacyStoragesService;
-use OCA\Files_external\Service\UserStoragesService;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\ImportLegacyStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use OCP\IUserManager;
use OCP\IUserSession;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\Input;
use Symfony\Component\Console\Output\OutputInterface;
class Import extends Base {
diff --git a/apps/files_external/command/listcommand.php b/apps/files_external/lib/Command/ListCommand.php
index 5a0794be4c5..c1fb18b3bc2 100644
--- a/apps/files_external/command/listcommand.php
+++ b/apps/files_external/lib/Command/ListCommand.php
@@ -23,12 +23,11 @@ namespace OCA\Files_External\Command;
use OC\Core\Command\Base;
use OC\User\NoUserException;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\UserStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use OCP\IUserManager;
use OCP\IUserSession;
-use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/apps/files_external/command/option.php b/apps/files_external/lib/Command/Option.php
index 292005134cb..4f7733b25d8 100644
--- a/apps/files_external/command/option.php
+++ b/apps/files_external/lib/Command/Option.php
@@ -21,18 +21,8 @@
namespace OCA\Files_External\Command;
-use OC\Core\Command\Base;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\UserStoragesService;
-use OCP\IUserManager;
-use OCP\IUserSession;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
+use OCA\Files_External\Lib\StorageConfig;
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 Option extends Config {
diff --git a/apps/files_external/command/verify.php b/apps/files_external/lib/Command/Verify.php
index f985cb401af..dfc536530bb 100644
--- a/apps/files_external/command/verify.php
+++ b/apps/files_external/lib/Command/Verify.php
@@ -25,13 +25,10 @@ use OC\Core\Command\Base;
use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\Backend\Backend;
use OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\NotFoundException;
-use OCA\Files_external\Service\GlobalStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Service\GlobalStoragesService;
use OCP\Files\StorageNotAvailableException;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/Config/ConfigAdapter.php
index a19a111d3d9..a05ff555f72 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/Config/ConfigAdapter.php
@@ -24,14 +24,14 @@
namespace OCA\Files_External\Config;
use OC\Files\Storage\Wrapper\Availability;
-use OCA\Files_external\Migration\StorageMigrator;
+use OCA\Files_External\Migration\StorageMigrator;
use OCP\Files\Storage;
use OC\Files\Mount\MountPoint;
use OCP\Files\Storage\IStorageFactory;
use OCA\Files_External\Lib\PersonalMount;
use OCP\Files\Config\IMountProvider;
use OCP\IUser;
-use OCA\Files_external\Service\UserStoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCA\Files_External\Lib\StorageConfig;
use OC\Files\Storage\FailedStorage;
diff --git a/apps/files_external/controller/ajaxcontroller.php b/apps/files_external/lib/Controller/AjaxController.php
index c3df3fa8522..c3df3fa8522 100644
--- a/apps/files_external/controller/ajaxcontroller.php
+++ b/apps/files_external/lib/Controller/AjaxController.php
diff --git a/apps/files_external/controller/globalstoragescontroller.php b/apps/files_external/lib/Controller/GlobalStoragesController.php
index b443cf4ea8f..0ae9e1fd5e0 100644
--- a/apps/files_external/controller/globalstoragescontroller.php
+++ b/apps/files_external/lib/Controller/GlobalStoragesController.php
@@ -24,18 +24,13 @@
namespace OCA\Files_External\Controller;
-use \OCP\IConfig;
use OCP\ILogger;
-use \OCP\IUserSession;
use \OCP\IRequest;
use \OCP\IL10N;
use \OCP\AppFramework\Http\DataResponse;
-use \OCP\AppFramework\Controller;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\Service\GlobalStoragesService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_External\Service\BackendService;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\NotFoundException;
/**
* Global storages controller
diff --git a/apps/files_external/controller/storagescontroller.php b/apps/files_external/lib/Controller/StoragesController.php
index 09b83104700..a368169944e 100644
--- a/apps/files_external/controller/storagescontroller.php
+++ b/apps/files_external/lib/Controller/StoragesController.php
@@ -25,23 +25,19 @@
namespace OCA\Files_External\Controller;
-use \OCP\IConfig;
use OCP\ILogger;
-use OCP\IUser;
-use \OCP\IUserSession;
use \OCP\IRequest;
use \OCP\IL10N;
use \OCP\AppFramework\Http\DataResponse;
use \OCP\AppFramework\Controller;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\Service\StoragesService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Service\StoragesService;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCP\Files\StorageNotAvailableException;
use \OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException;
-use \OCA\Files_External\Service\BackendService;
/**
* Base class for storages controllers
diff --git a/apps/files_external/controller/userglobalstoragescontroller.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
index 36c3740eed3..ee4cd640018 100644
--- a/apps/files_external/controller/userglobalstoragescontroller.php
+++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
@@ -30,9 +30,9 @@ use \OCP\IRequest;
use \OCP\IL10N;
use \OCP\AppFramework\Http\DataResponse;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\Service\UserGlobalStoragesService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Service\UserGlobalStoragesService;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\Backend\Backend;
use OCP\IUserSession;
diff --git a/apps/files_external/controller/userstoragescontroller.php b/apps/files_external/lib/Controller/UserStoragesController.php
index e53ea21f005..1850d0087b3 100644
--- a/apps/files_external/controller/userstoragescontroller.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -25,19 +25,15 @@ namespace OCA\Files_External\Controller;
use OCA\Files_External\Lib\Auth\AuthMechanism;
-use \OCP\IConfig;
use OCP\ILogger;
-use OCP\IUser;
use \OCP\IUserSession;
use \OCP\IRequest;
use \OCP\IL10N;
use \OCP\AppFramework\Http\DataResponse;
-use \OCP\AppFramework\Controller;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\Service\UserStoragesService;
-use \OCA\Files_External\Service\BackendService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Service\UserStoragesService;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\Backend\Backend;
/**
diff --git a/apps/files_external/lib/api.php b/apps/files_external/lib/Lib/Api.php
index 589317dcf98..589317dcf98 100644
--- a/apps/files_external/lib/api.php
+++ b/apps/files_external/lib/Lib/Api.php
diff --git a/apps/files_external/lib/auth/amazons3/accesskey.php b/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php
index 296ed59a77a..296ed59a77a 100644
--- a/apps/files_external/lib/auth/amazons3/accesskey.php
+++ b/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php
diff --git a/apps/files_external/lib/auth/authmechanism.php b/apps/files_external/lib/Lib/Auth/AuthMechanism.php
index 68d6f023487..68d6f023487 100644
--- a/apps/files_external/lib/auth/authmechanism.php
+++ b/apps/files_external/lib/Lib/Auth/AuthMechanism.php
diff --git a/apps/files_external/lib/auth/builtin.php b/apps/files_external/lib/Lib/Auth/Builtin.php
index 8b43cb459cc..c5c3a19e54f 100644
--- a/apps/files_external/lib/auth/builtin.php
+++ b/apps/files_external/lib/Lib/Auth/Builtin.php
@@ -22,8 +22,6 @@
namespace OCA\Files_External\Lib\Auth;
use \OCP\IL10N;
-use \OCA\Files_External\Lib\Auth\AuthMechanism;
-use \OCA\Files_external\Lib\StorageConfig;
/**
* Builtin authentication mechanism, for legacy backends
diff --git a/apps/files_external/lib/auth/iuserprovided.php b/apps/files_external/lib/Lib/Auth/IUserProvided.php
index 6852c804be5..6852c804be5 100644
--- a/apps/files_external/lib/auth/iuserprovided.php
+++ b/apps/files_external/lib/Lib/Auth/IUserProvided.php
diff --git a/apps/files_external/lib/auth/nullmechanism.php b/apps/files_external/lib/Lib/Auth/NullMechanism.php
index 06083729e59..671a5ff66c5 100644
--- a/apps/files_external/lib/auth/nullmechanism.php
+++ b/apps/files_external/lib/Lib/Auth/NullMechanism.php
@@ -22,8 +22,6 @@
namespace OCA\Files_External\Lib\Auth;
use \OCP\IL10N;
-use \OCA\Files_External\Lib\Auth\AuthMechanism;
-use \OCA\Files_external\Lib\StorageConfig;
/**
* Null authentication mechanism
diff --git a/apps/files_external/lib/auth/oauth1/oauth1.php b/apps/files_external/lib/Lib/Auth/OAuth1/OAuth1.php
index 808681530ea..808681530ea 100644
--- a/apps/files_external/lib/auth/oauth1/oauth1.php
+++ b/apps/files_external/lib/Lib/Auth/OAuth1/OAuth1.php
diff --git a/apps/files_external/lib/auth/oauth2/oauth2.php b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
index d4bba8ef0eb..d4bba8ef0eb 100644
--- a/apps/files_external/lib/auth/oauth2/oauth2.php
+++ b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
diff --git a/apps/files_external/lib/auth/openstack/openstack.php b/apps/files_external/lib/Lib/Auth/OpenStack/OpenStack.php
index 80bbb1299f7..80bbb1299f7 100644
--- a/apps/files_external/lib/auth/openstack/openstack.php
+++ b/apps/files_external/lib/Lib/Auth/OpenStack/OpenStack.php
diff --git a/apps/files_external/lib/auth/openstack/rackspace.php b/apps/files_external/lib/Lib/Auth/OpenStack/Rackspace.php
index c968321ca6c..c968321ca6c 100644
--- a/apps/files_external/lib/auth/openstack/rackspace.php
+++ b/apps/files_external/lib/Lib/Auth/OpenStack/Rackspace.php
diff --git a/apps/files_external/lib/auth/password/password.php b/apps/files_external/lib/Lib/Auth/Password/Password.php
index 3b1942cc4a8..3b1942cc4a8 100644
--- a/apps/files_external/lib/auth/password/password.php
+++ b/apps/files_external/lib/Lib/Auth/Password/Password.php
diff --git a/apps/files_external/lib/auth/password/sessioncredentials.php b/apps/files_external/lib/Lib/Auth/Password/SessionCredentials.php
index 429c549d80a..429c549d80a 100644
--- a/apps/files_external/lib/auth/password/sessioncredentials.php
+++ b/apps/files_external/lib/Lib/Auth/Password/SessionCredentials.php
diff --git a/apps/files_external/lib/auth/publickey/rsa.php b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php
index 7732beeddf8..7732beeddf8 100644
--- a/apps/files_external/lib/auth/publickey/rsa.php
+++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php
diff --git a/apps/files_external/lib/backend/amazons3.php b/apps/files_external/lib/Lib/Backend/AmazonS3.php
index 449b6c0379d..449b6c0379d 100644
--- a/apps/files_external/lib/backend/amazons3.php
+++ b/apps/files_external/lib/Lib/Backend/AmazonS3.php
diff --git a/apps/files_external/lib/backend/backend.php b/apps/files_external/lib/Lib/Backend/Backend.php
index 8fb84b0e835..8fb84b0e835 100644
--- a/apps/files_external/lib/backend/backend.php
+++ b/apps/files_external/lib/Lib/Backend/Backend.php
diff --git a/apps/files_external/lib/backend/dav.php b/apps/files_external/lib/Lib/Backend/DAV.php
index c6e9630be9e..c6e9630be9e 100644
--- a/apps/files_external/lib/backend/dav.php
+++ b/apps/files_external/lib/Lib/Backend/DAV.php
diff --git a/apps/files_external/lib/backend/dropbox.php b/apps/files_external/lib/Lib/Backend/Dropbox.php
index 2133c274996..2133c274996 100644
--- a/apps/files_external/lib/backend/dropbox.php
+++ b/apps/files_external/lib/Lib/Backend/Dropbox.php
diff --git a/apps/files_external/lib/backend/ftp.php b/apps/files_external/lib/Lib/Backend/FTP.php
index 3960592d0bc..3960592d0bc 100644
--- a/apps/files_external/lib/backend/ftp.php
+++ b/apps/files_external/lib/Lib/Backend/FTP.php
diff --git a/apps/files_external/lib/backend/google.php b/apps/files_external/lib/Lib/Backend/Google.php
index b18b7bdb348..b18b7bdb348 100644
--- a/apps/files_external/lib/backend/google.php
+++ b/apps/files_external/lib/Lib/Backend/Google.php
diff --git a/apps/files_external/lib/backend/legacybackend.php b/apps/files_external/lib/Lib/Backend/LegacyBackend.php
index 752c501e1ec..752c501e1ec 100644
--- a/apps/files_external/lib/backend/legacybackend.php
+++ b/apps/files_external/lib/Lib/Backend/LegacyBackend.php
diff --git a/apps/files_external/lib/backend/local.php b/apps/files_external/lib/Lib/Backend/Local.php
index 1db707e7247..1db707e7247 100644
--- a/apps/files_external/lib/backend/local.php
+++ b/apps/files_external/lib/Lib/Backend/Local.php
diff --git a/apps/files_external/lib/backend/owncloud.php b/apps/files_external/lib/Lib/Backend/OwnCloud.php
index e92288b1354..e92288b1354 100644
--- a/apps/files_external/lib/backend/owncloud.php
+++ b/apps/files_external/lib/Lib/Backend/OwnCloud.php
diff --git a/apps/files_external/lib/backend/sftp.php b/apps/files_external/lib/Lib/Backend/SFTP.php
index fa33caeb576..fa33caeb576 100644
--- a/apps/files_external/lib/backend/sftp.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP.php
diff --git a/apps/files_external/lib/backend/sftp_key.php b/apps/files_external/lib/Lib/Backend/SFTP_Key.php
index 838cf6c52b2..838cf6c52b2 100644
--- a/apps/files_external/lib/backend/sftp_key.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP_Key.php
diff --git a/apps/files_external/lib/backend/smb.php b/apps/files_external/lib/Lib/Backend/SMB.php
index 7ea30dd11bd..7ea30dd11bd 100644
--- a/apps/files_external/lib/backend/smb.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
diff --git a/apps/files_external/lib/backend/smb_oc.php b/apps/files_external/lib/Lib/Backend/SMB_OC.php
index c543a19bdd8..c543a19bdd8 100644
--- a/apps/files_external/lib/backend/smb_oc.php
+++ b/apps/files_external/lib/Lib/Backend/SMB_OC.php
diff --git a/apps/files_external/lib/backend/swift.php b/apps/files_external/lib/Lib/Backend/Swift.php
index 58677575f52..58677575f52 100644
--- a/apps/files_external/lib/backend/swift.php
+++ b/apps/files_external/lib/Lib/Backend/Swift.php
diff --git a/apps/files_external/lib/definitionparameter.php b/apps/files_external/lib/Lib/DefinitionParameter.php
index 16c07f4b8cc..16c07f4b8cc 100644
--- a/apps/files_external/lib/definitionparameter.php
+++ b/apps/files_external/lib/Lib/DefinitionParameter.php
diff --git a/apps/files_external/lib/dependencytrait.php b/apps/files_external/lib/Lib/DependencyTrait.php
index eed3ba1b327..eed3ba1b327 100644
--- a/apps/files_external/lib/dependencytrait.php
+++ b/apps/files_external/lib/Lib/DependencyTrait.php
diff --git a/apps/files_external/lib/frontenddefinitiontrait.php b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php
index ccc2a75fd1b..ccc2a75fd1b 100644
--- a/apps/files_external/lib/frontenddefinitiontrait.php
+++ b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php
diff --git a/apps/files_external/lib/identifiertrait.php b/apps/files_external/lib/Lib/IdentifierTrait.php
index c49f4fcbc8d..c49f4fcbc8d 100644
--- a/apps/files_external/lib/identifiertrait.php
+++ b/apps/files_external/lib/Lib/IdentifierTrait.php
diff --git a/apps/files_external/lib/insufficientdataformeaningfulanswerexception.php b/apps/files_external/lib/Lib/InsufficientDataForMeaningfulAnswerException.php
index 1906057eb67..1906057eb67 100644
--- a/apps/files_external/lib/insufficientdataformeaningfulanswerexception.php
+++ b/apps/files_external/lib/Lib/InsufficientDataForMeaningfulAnswerException.php
diff --git a/apps/files_external/lib/legacydependencycheckpolyfill.php b/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
index 7d6c0c4b45b..7d6c0c4b45b 100644
--- a/apps/files_external/lib/legacydependencycheckpolyfill.php
+++ b/apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php
diff --git a/apps/files_external/lib/missingdependency.php b/apps/files_external/lib/Lib/MissingDependency.php
index a4a20dd1128..a4a20dd1128 100644
--- a/apps/files_external/lib/missingdependency.php
+++ b/apps/files_external/lib/Lib/MissingDependency.php
diff --git a/apps/files_external/lib/personalmount.php b/apps/files_external/lib/Lib/PersonalMount.php
index c3b71fbef32..c3b71fbef32 100644
--- a/apps/files_external/lib/personalmount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
diff --git a/apps/files_external/lib/prioritytrait.php b/apps/files_external/lib/Lib/PriorityTrait.php
index 9745015bef4..9745015bef4 100644
--- a/apps/files_external/lib/prioritytrait.php
+++ b/apps/files_external/lib/Lib/PriorityTrait.php
diff --git a/apps/files_external/lib/sessionstoragewrapper.php b/apps/files_external/lib/Lib/SessionStorageWrapper.php
index c592cb87a34..c592cb87a34 100644
--- a/apps/files_external/lib/sessionstoragewrapper.php
+++ b/apps/files_external/lib/Lib/SessionStorageWrapper.php
diff --git a/apps/files_external/lib/storage/amazons3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 42df1deffb0..42df1deffb0 100644
--- a/apps/files_external/lib/storage/amazons3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
diff --git a/apps/files_external/lib/storage/dropbox.php b/apps/files_external/lib/Lib/Storage/Dropbox.php
index 55ae7146572..55ae7146572 100644
--- a/apps/files_external/lib/storage/dropbox.php
+++ b/apps/files_external/lib/Lib/Storage/Dropbox.php
diff --git a/apps/files_external/lib/storage/ftp.php b/apps/files_external/lib/Lib/Storage/FTP.php
index 051c1873009..051c1873009 100644
--- a/apps/files_external/lib/storage/ftp.php
+++ b/apps/files_external/lib/Lib/Storage/FTP.php
diff --git a/apps/files_external/lib/storage/google.php b/apps/files_external/lib/Lib/Storage/Google.php
index 13e89299c22..13e89299c22 100644
--- a/apps/files_external/lib/storage/google.php
+++ b/apps/files_external/lib/Lib/Storage/Google.php
diff --git a/apps/files_external/lib/storage/owncloud.php b/apps/files_external/lib/Lib/Storage/OwnCloud.php
index 22ecb4c806a..22ecb4c806a 100644
--- a/apps/files_external/lib/storage/owncloud.php
+++ b/apps/files_external/lib/Lib/Storage/OwnCloud.php
diff --git a/apps/files_external/lib/storage/sftp.php b/apps/files_external/lib/Lib/Storage/SFTP.php
index 2375f84dcda..2375f84dcda 100644
--- a/apps/files_external/lib/storage/sftp.php
+++ b/apps/files_external/lib/Lib/Storage/SFTP.php
diff --git a/apps/files_external/lib/storage/smb.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 868c52a63b4..868c52a63b4 100644
--- a/apps/files_external/lib/storage/smb.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
diff --git a/apps/files_external/lib/storage/streamwrapper.php b/apps/files_external/lib/Lib/Storage/StreamWrapper.php
index 0b4dff78c4f..0b4dff78c4f 100644
--- a/apps/files_external/lib/storage/streamwrapper.php
+++ b/apps/files_external/lib/Lib/Storage/StreamWrapper.php
diff --git a/apps/files_external/lib/storage/swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 4578cd9a5c7..4578cd9a5c7 100644
--- a/apps/files_external/lib/storage/swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
diff --git a/apps/files_external/lib/storageconfig.php b/apps/files_external/lib/Lib/StorageConfig.php
index 590a5f53249..2a22b324ead 100644
--- a/apps/files_external/lib/storageconfig.php
+++ b/apps/files_external/lib/Lib/StorageConfig.php
@@ -23,7 +23,7 @@
*
*/
-namespace OCA\Files_external\Lib;
+namespace OCA\Files_External\Lib;
use OCA\Files_External\Lib\Auth\IUserProvided;
use \OCA\Files_External\Lib\Backend\Backend;
diff --git a/apps/files_external/lib/storagemodifiertrait.php b/apps/files_external/lib/Lib/StorageModifierTrait.php
index 30c2108feec..30c2108feec 100644
--- a/apps/files_external/lib/storagemodifiertrait.php
+++ b/apps/files_external/lib/Lib/StorageModifierTrait.php
diff --git a/apps/files_external/lib/visibilitytrait.php b/apps/files_external/lib/Lib/VisibilityTrait.php
index 916c8e69d9c..916c8e69d9c 100644
--- a/apps/files_external/lib/visibilitytrait.php
+++ b/apps/files_external/lib/Lib/VisibilityTrait.php
diff --git a/apps/files_external/migration/dummyusersession.php b/apps/files_external/lib/Migration/DummyUserSession.php
index bb4ef19dace..b2157aafebb 100644
--- a/apps/files_external/migration/dummyusersession.php
+++ b/apps/files_external/lib/Migration/DummyUserSession.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Migration;
+namespace OCA\Files_External\Migration;
use OCP\IUser;
use OCP\IUserSession;
diff --git a/apps/files_external/migration/storagemigrator.php b/apps/files_external/lib/Migration/StorageMigrator.php
index 48ab52768e2..3cd7be3f953 100644
--- a/apps/files_external/migration/storagemigrator.php
+++ b/apps/files_external/lib/Migration/StorageMigrator.php
@@ -20,22 +20,21 @@
*
*/
-namespace OCA\Files_external\Migration;
+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;
-use OCA\Files_external\Service\UserStoragesService;
+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;
+use OCA\Files_External\Service\UserStoragesService;
use OCP\Files\Config\IUserMountCache;
use OCP\IConfig;
use OCP\IDBConnection;
use OCP\ILogger;
use OCP\IUser;
-use OCP\IUserSession;
/**
* Migrate mount config from mount.json to the database
diff --git a/apps/files_external/lib/notfoundexception.php b/apps/files_external/lib/NotFoundException.php
index dd3dd1907a5..80333c103ca 100644
--- a/apps/files_external/lib/notfoundexception.php
+++ b/apps/files_external/lib/NotFoundException.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external;
+namespace OCA\Files_External;
/**
* Storage is not found
diff --git a/apps/files_external/service/backendservice.php b/apps/files_external/lib/Service/BackendService.php
index c3dc4da0177..c3dc4da0177 100644
--- a/apps/files_external/service/backendservice.php
+++ b/apps/files_external/lib/Service/BackendService.php
diff --git a/apps/files_external/service/dbconfigservice.php b/apps/files_external/lib/Service/DBConfigService.php
index 9f7061eb938..9f7061eb938 100644
--- a/apps/files_external/service/dbconfigservice.php
+++ b/apps/files_external/lib/Service/DBConfigService.php
diff --git a/apps/files_external/service/globallegacystoragesservice.php b/apps/files_external/lib/Service/GlobalLegacyStoragesService.php
index ed9b1bcf075..4c44881051a 100644
--- a/apps/files_external/service/globallegacystoragesservice.php
+++ b/apps/files_external/lib/Service/GlobalLegacyStoragesService.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
/**
* Read admin defined mounts from the legacy mount.json
diff --git a/apps/files_external/service/globalstoragesservice.php b/apps/files_external/lib/Service/GlobalStoragesService.php
index 62da314c5fa..592283444d1 100644
--- a/apps/files_external/service/globalstoragesservice.php
+++ b/apps/files_external/lib/Service/GlobalStoragesService.php
@@ -22,13 +22,11 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
-use \OCP\IUserSession;
-use \OC\Files\Filesystem;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_external\NotFoundException;
+use \OC\Files\Filesystem;
+use OCA\Files_External\Lib\StorageConfig;
/**
* Service class to manage global external storages
diff --git a/apps/files_external/service/importlegacystoragesservice.php b/apps/files_external/lib/Service/ImportLegacyStoragesService.php
index 8a790c5de9b..cb020fb495c 100644
--- a/apps/files_external/service/importlegacystoragesservice.php
+++ b/apps/files_external/lib/Service/ImportLegacyStoragesService.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
class ImportLegacyStoragesService extends LegacyStoragesService {
private $data;
diff --git a/apps/files_external/service/legacystoragesservice.php b/apps/files_external/lib/Service/LegacyStoragesService.php
index 158fc2b5137..365181d746c 100644
--- a/apps/files_external/service/legacystoragesservice.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -19,9 +19,9 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Lib\StorageConfig;
/**
* Read mount config from legacy mount.json
diff --git a/apps/files_external/service/storagesservice.php b/apps/files_external/lib/Service/StoragesService.php
index 6542be146d6..4fb0f65e760 100644
--- a/apps/files_external/service/storagesservice.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -23,11 +23,11 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use \OC\Files\Filesystem;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_external\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use OCP\Files\Config\IUserMountCache;
diff --git a/apps/files_external/service/userglobalstoragesservice.php b/apps/files_external/lib/Service/UserGlobalStoragesService.php
index 111d4586924..b5e2d13c712 100644
--- a/apps/files_external/service/userglobalstoragesservice.php
+++ b/apps/files_external/lib/Service/UserGlobalStoragesService.php
@@ -22,12 +22,9 @@
namespace OCA\Files_External\Service;
-use \OCA\Files_external\Service\GlobalStoragesService;
-use \OCA\Files_External\Service\BackendService;
use OCP\Files\Config\IUserMountCache;
use \OCP\IUserSession;
use \OCP\IGroupManager;
-use \OCA\Files_External\Service\UserTrait;
use \OCA\Files_External\Lib\StorageConfig;
/**
diff --git a/apps/files_external/service/userlegacystoragesservice.php b/apps/files_external/lib/Service/UserLegacyStoragesService.php
index 2f14857c633..c64520c8b02 100644
--- a/apps/files_external/service/userlegacystoragesservice.php
+++ b/apps/files_external/lib/Service/UserLegacyStoragesService.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use OCP\IUserSession;
diff --git a/apps/files_external/service/userstoragesservice.php b/apps/files_external/lib/Service/UserStoragesService.php
index c46846e76d6..a527acbba3a 100644
--- a/apps/files_external/service/userstoragesservice.php
+++ b/apps/files_external/lib/Service/UserStoragesService.php
@@ -21,14 +21,14 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use OCP\Files\Config\IUserMountCache;
use \OCP\IUserSession;
use \OC\Files\Filesystem;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_external\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
use \OCA\Files_External\Service\BackendService;
use \OCA\Files_External\Service\UserTrait;
diff --git a/apps/files_external/service/usertrait.php b/apps/files_external/lib/Service/UserTrait.php
index 536c0f67e1f..536c0f67e1f 100644
--- a/apps/files_external/service/usertrait.php
+++ b/apps/files_external/lib/Service/UserTrait.php
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 70f8550f39b..d581deab190 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -33,7 +33,7 @@
*/
use phpseclib\Crypt\AES;
-use \OCA\Files_External\Appinfo\Application;
+use \OCA\Files_External\AppInfo\Application;
use \OCA\Files_External\Lib\Backend\LegacyBackend;
use \OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Lib\Backend\Backend;
@@ -91,7 +91,7 @@ class OC_Mount_Config {
$userStoragesService->setUser($user);
foreach ($userGlobalStoragesService->getStorages() as $storage) {
- /** @var \OCA\Files_external\Lib\StorageConfig $storage */
+ /** @var \OCA\Files_External\Lib\StorageConfig $storage */
$mountPoint = '/'.$uid.'/files'.$storage->getMountPoint();
$mountEntry = self::prepareMountPointEntry($storage, false);
foreach ($mountEntry['options'] as &$option) {
diff --git a/apps/files_external/personal.php b/apps/files_external/personal.php
index 5c568f45b7d..195b826a4c2 100644
--- a/apps/files_external/personal.php
+++ b/apps/files_external/personal.php
@@ -29,7 +29,7 @@ use \OCA\Files_External\Service\BackendService;
// we must use the same container
$appContainer = \OC_Mount_Config::$app->getContainer();
$backendService = $appContainer->query('OCA\Files_External\Service\BackendService');
-$userStoragesService = $appContainer->query('OCA\Files_external\Service\UserStoragesService');
+$userStoragesService = $appContainer->query('OCA\Files_External\Service\UserStoragesService');
$tmpl = new OCP\Template('files_external', 'settings');
$tmpl->assign('encryptionEnabled', \OC::$server->getEncryptionManager()->isEnabled());
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php
index 0d83d26ff97..8f44c170ce6 100644
--- a/apps/files_external/settings.php
+++ b/apps/files_external/settings.php
@@ -31,7 +31,7 @@ use \OCA\Files_External\Service\BackendService;
// we must use the same container
$appContainer = \OC_Mount_Config::$app->getContainer();
$backendService = $appContainer->query('OCA\Files_External\Service\BackendService');
-$globalStoragesService = $appContainer->query('OCA\Files_external\Service\GlobalStoragesService');
+$globalStoragesService = $appContainer->query('OCA\Files_External\Service\GlobalStoragesService');
\OC_Util::addVendorScript('select2/select2');
\OC_Util::addVendorStyle('select2/select2');
diff --git a/apps/files_external/tests/amazons3migration.php b/apps/files_external/tests/AmazonS3MigrationTest.php
index 614d6ca33df..132d907ab14 100644
--- a/apps/files_external/tests/amazons3migration.php
+++ b/apps/files_external/tests/AmazonS3MigrationTest.php
@@ -35,7 +35,7 @@ use OCA\Files_External\Lib\Storage\AmazonS3;
*
* @package OCA\Files_External\Tests
*/
-class AmazonS3Migration extends \Test\TestCase {
+class AmazonS3MigrationTest extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage instance
diff --git a/apps/files_external/tests/auth/authmechanismtest.php b/apps/files_external/tests/Auth/AuthMechanismTest.php
index 789d1f62478..789d1f62478 100644
--- a/apps/files_external/tests/auth/authmechanismtest.php
+++ b/apps/files_external/tests/Auth/AuthMechanismTest.php
diff --git a/apps/files_external/tests/backend/backendtest.php b/apps/files_external/tests/Backend/BackendTest.php
index 50f6d975bf0..50f6d975bf0 100644
--- a/apps/files_external/tests/backend/backendtest.php
+++ b/apps/files_external/tests/Backend/BackendTest.php
diff --git a/apps/files_external/tests/backend/legacybackendtest.php b/apps/files_external/tests/Backend/LegacyBackendTest.php
index 465b79a6be6..465b79a6be6 100644
--- a/apps/files_external/tests/backend/legacybackendtest.php
+++ b/apps/files_external/tests/Backend/LegacyBackendTest.php
diff --git a/apps/files_external/tests/command/applicabletest.php b/apps/files_external/tests/Command/ApplicableTest.php
index 64d41f6f245..64d41f6f245 100644
--- a/apps/files_external/tests/command/applicabletest.php
+++ b/apps/files_external/tests/Command/ApplicableTest.php
diff --git a/apps/files_external/tests/command/commandtest.php b/apps/files_external/tests/Command/CommandTest.php
index 9a0afbd3681..2283cf97ace 100644
--- a/apps/files_external/tests/command/commandtest.php
+++ b/apps/files_external/tests/Command/CommandTest.php
@@ -21,8 +21,8 @@
namespace OCA\Files_External\Tests\Command;
-use OCA\Files_external\Lib\StorageConfig;
-use OCA\Files_external\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\Input;
@@ -32,10 +32,10 @@ use Test\TestCase;
abstract class CommandTest extends TestCase {
/**
* @param StorageConfig[] $mounts
- * @return \OCA\Files_external\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject
+ * @return \OCA\Files_External\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject
*/
protected function getGlobalStorageService(array $mounts = []) {
- $mock = $this->getMockBuilder('OCA\Files_external\Service\GlobalStoragesService')
+ $mock = $this->getMockBuilder('OCA\Files_External\Service\GlobalStoragesService')
->disableOriginalConstructor()
->getMock();
diff --git a/apps/files_external/tests/command/listcommandtest.php b/apps/files_external/tests/Command/ListCommandTest.php
index 3098906bcc6..fee53c9f143 100644
--- a/apps/files_external/tests/command/listcommandtest.php
+++ b/apps/files_external/tests/Command/ListCommandTest.php
@@ -26,7 +26,7 @@ use OCA\Files_External\Lib\Auth\NullMechanism;
use OCA\Files_External\Lib\Auth\Password\Password;
use OCA\Files_External\Lib\Auth\Password\SessionCredentials;
use OCA\Files_External\Lib\Backend\Local;
-use OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Lib\StorageConfig;
use Symfony\Component\Console\Output\BufferedOutput;
class ListCommandTest extends CommandTest {
@@ -34,10 +34,10 @@ class ListCommandTest extends CommandTest {
* @return \OCA\Files_External\Command\ListCommand|\PHPUnit_Framework_MockObject_MockObject
*/
private function getInstance() {
- /** @var \OCA\Files_external\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject $globalService */
- $globalService = $this->getMock('\OCA\Files_external\Service\GlobalStoragesService', null, [], '', false);
- /** @var \OCA\Files_external\Service\UserStoragesService|\PHPUnit_Framework_MockObject_MockObject $userService */
- $userService = $this->getMock('\OCA\Files_external\Service\UserStoragesService', null, [], '', false);
+ /** @var \OCA\Files_External\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject $globalService */
+ $globalService = $this->getMock('\OCA\Files_External\Service\GlobalStoragesService', null, [], '', false);
+ /** @var \OCA\Files_External\Service\UserStoragesService|\PHPUnit_Framework_MockObject_MockObject $userService */
+ $userService = $this->getMock('\OCA\Files_External\Service\UserStoragesService', null, [], '', false);
/** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject $userManager */
$userManager = $this->getMock('\OCP\IUserManager');
/** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject $userSession */
diff --git a/apps/files_external/tests/controller/globalstoragescontrollertest.php b/apps/files_external/tests/Controller/GlobalStoragesControllerTest.php
index 1021300399a..9761a4e23f9 100644
--- a/apps/files_external/tests/controller/globalstoragescontrollertest.php
+++ b/apps/files_external/tests/Controller/GlobalStoragesControllerTest.php
@@ -20,18 +20,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Controller;
+namespace OCA\Files_External\Tests\Controller;
-use \OCA\Files_external\Controller\GlobalStoragesController;
-use \OCA\Files_external\Service\GlobalStoragesService;
+use OCA\Files_External\Controller\GlobalStoragesController;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\NotFoundException;
use \OCA\Files_External\Service\BackendService;
class GlobalStoragesControllerTest extends StoragesControllerTest {
public function setUp() {
parent::setUp();
- $this->service = $this->getMockBuilder('\OCA\Files_external\Service\GlobalStoragesService')
+ $this->service = $this->getMockBuilder('\OCA\Files_External\Service\GlobalStoragesService')
->disableOriginalConstructor()
->getMock();
diff --git a/apps/files_external/tests/controller/storagescontrollertest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php
index 4c3c62d5d6f..4c3bd73fe4b 100644
--- a/apps/files_external/tests/controller/storagescontrollertest.php
+++ b/apps/files_external/tests/Controller/StoragesControllerTest.php
@@ -19,14 +19,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Controller;
+namespace OCA\Files_External\Tests\Controller;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\Controller\GlobalStoragesController;
-use \OCA\Files_external\Service\GlobalStoragesService;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_external\NotFoundException;
+use \OCA\Files_External\Controller\GlobalStoragesController;
+use \OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
abstract class StoragesControllerTest extends \Test\TestCase {
diff --git a/apps/files_external/tests/controller/userstoragescontrollertest.php b/apps/files_external/tests/Controller/UserStoragesControllerTest.php
index 804b752b6af..ac8d4663740 100644
--- a/apps/files_external/tests/controller/userstoragescontrollertest.php
+++ b/apps/files_external/tests/Controller/UserStoragesControllerTest.php
@@ -20,13 +20,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Controller;
+namespace OCA\Files_External\Tests\Controller;
-use \OCA\Files_external\Controller\UserStoragesController;
-use \OCA\Files_external\Service\UserStoragesService;
+use \OCA\Files_External\Controller\UserStoragesController;
use \OCP\AppFramework\Http;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_External\Lib\StorageConfig;
use \OCA\Files_External\Service\BackendService;
class UserStoragesControllerTest extends StoragesControllerTest {
@@ -38,7 +35,7 @@ class UserStoragesControllerTest extends StoragesControllerTest {
public function setUp() {
parent::setUp();
- $this->service = $this->getMockBuilder('\OCA\Files_external\Service\UserStoragesService')
+ $this->service = $this->getMockBuilder('\OCA\Files_External\Service\UserStoragesService')
->disableOriginalConstructor()
->getMock();
diff --git a/apps/files_external/tests/definitionparameterttest.php b/apps/files_external/tests/DefinitionParameterTest.php
index 2f4069af0bd..2f4069af0bd 100644
--- a/apps/files_external/tests/definitionparameterttest.php
+++ b/apps/files_external/tests/DefinitionParameterTest.php
diff --git a/apps/files_external/tests/frontenddefinitiontraittest.php b/apps/files_external/tests/FrontendDefinitionTraitTest.php
index b3846fa1510..b3846fa1510 100644
--- a/apps/files_external/tests/frontenddefinitiontraittest.php
+++ b/apps/files_external/tests/FrontendDefinitionTraitTest.php
diff --git a/apps/files_external/tests/legacydependencycheckpolyfilltest.php b/apps/files_external/tests/LegacyDependencyCheckPolyfillTest.php
index 4b1351a809d..4b1351a809d 100644
--- a/apps/files_external/tests/legacydependencycheckpolyfilltest.php
+++ b/apps/files_external/tests/LegacyDependencyCheckPolyfillTest.php
diff --git a/apps/files_external/tests/owncloudfunctions.php b/apps/files_external/tests/OwnCloudFunctionsTest.php
index 25aaa90d178..41ae0421ebf 100644
--- a/apps/files_external/tests/owncloudfunctions.php
+++ b/apps/files_external/tests/OwnCloudFunctionsTest.php
@@ -32,7 +32,7 @@ namespace OCA\Files_External\Tests;
*
* @package OCA\Files_External\Tests
*/
-class OwnCloudFunctions extends \Test\TestCase {
+class OwnCloudFunctionsTest extends \Test\TestCase {
function configUrlProvider() {
return array(
diff --git a/apps/files_external/tests/personalmounttest.php b/apps/files_external/tests/PersonalMountTest.php
index d82773ad749..8e8a299714f 100644
--- a/apps/files_external/tests/personalmounttest.php
+++ b/apps/files_external/tests/PersonalMountTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Tests;
+namespace OCA\Files_External\Tests;
use OC\Files\Mount\Manager;
use OCA\Files_External\Lib\PersonalMount;
diff --git a/apps/files_external/tests/service/backendservicetest.php b/apps/files_external/tests/Service/BackendServiceTest.php
index ba9a1f533f2..ba9a1f533f2 100644
--- a/apps/files_external/tests/service/backendservicetest.php
+++ b/apps/files_external/tests/Service/BackendServiceTest.php
diff --git a/apps/files_external/tests/service/dbconfigservicetest.php b/apps/files_external/tests/Service/DBConfigServiceTest.php
index b088a7078d1..b088a7078d1 100644
--- a/apps/files_external/tests/service/dbconfigservicetest.php
+++ b/apps/files_external/tests/Service/DBConfigServiceTest.php
diff --git a/apps/files_external/tests/service/globalstoragesservicetest.php b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php
index 6cdfbef82d4..b2cc7f59ed4 100644
--- a/apps/files_external/tests/service/globalstoragesservicetest.php
+++ b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php
@@ -20,13 +20,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Service;
+namespace OCA\Files_External\Tests\Service;
use \OC\Files\Filesystem;
-use \OCA\Files_external\Service\GlobalStoragesService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use \OCA\Files_External\Service\GlobalStoragesService;
/**
* @group DB
@@ -449,8 +447,8 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
$storage->setApplicableGroups($sourceApplicableGroups);
$storage = $this->service->addStorage($storage);
- $storage->setapplicableUsers($updatedApplicableUsers);
- $storage->setapplicableGroups($updatedApplicableGroups);
+ $storage->setApplicableUsers($updatedApplicableUsers);
+ $storage->setApplicableGroups($updatedApplicableGroups);
// reset calls
self::$hookCalls = [];
diff --git a/apps/files_external/tests/service/storagesservicetest.php b/apps/files_external/tests/Service/StoragesServiceTest.php
index f93c0134814..5d1094271e5 100644
--- a/apps/files_external/tests/service/storagesservicetest.php
+++ b/apps/files_external/tests/Service/StoragesServiceTest.php
@@ -20,15 +20,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Service;
+namespace OCA\Files_External\Tests\Service;
use \OC\Files\Filesystem;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\Service\BackendService;
use OCA\Files_External\Service\DBConfigService;
-use OCA\Files_external\Service\StoragesService;
+use OCA\Files_External\Service\StoragesService;
class CleaningDBConfig extends DBConfigService {
private $mountIds = [];
@@ -241,7 +241,7 @@ abstract class StoragesServiceTest extends \Test\TestCase {
/**
- * @expectedException \OCA\Files_external\NotFoundException
+ * @expectedException \OCA\Files_External\NotFoundException
*/
public function testNonExistingStorage() {
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
@@ -324,7 +324,7 @@ abstract class StoragesServiceTest extends \Test\TestCase {
}
/**
- * @expectedException \OCA\Files_external\NotFoundException
+ * @expectedException \OCA\Files_External\NotFoundException
*/
public function testDeleteUnexistingStorage() {
$this->service->removeStorage(255);
diff --git a/apps/files_external/tests/service/userglobalstoragesservicetest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
index baecf143c66..4a03b6194e9 100644
--- a/apps/files_external/tests/service/userglobalstoragesservicetest.php
+++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
@@ -22,12 +22,9 @@
*/
namespace OCA\Files_External\Tests\Service;
-use OCA\Files_external\NotFoundException;
-use OCA\Files_external\Service\StoragesService;
-use \OCA\Files_External\Service\UserGlobalStoragesService;
-use \OCP\IGroupManager;
-
-use \OCA\Files_External\Lib\StorageConfig;
+use OCA\Files_External\NotFoundException;
+use OCA\Files_External\Service\StoragesService;
+use OCA\Files_External\Service\UserGlobalStoragesService;
use OCP\IUser;
use Test\Traits\UserTrait;
diff --git a/apps/files_external/tests/service/userstoragesservicetest.php b/apps/files_external/tests/Service/UserStoragesServiceTest.php
index 37423cb8d74..6ae888d8274 100644
--- a/apps/files_external/tests/service/userstoragesservicetest.php
+++ b/apps/files_external/tests/Service/UserStoragesServiceTest.php
@@ -20,15 +20,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files_external\Tests\Service;
+namespace OCA\Files_External\Tests\Service;
use \OC\Files\Filesystem;
-use OCA\Files_external\Service\GlobalStoragesService;
-use OCA\Files_external\Service\StoragesService;
-use \OCA\Files_external\Service\UserStoragesService;
-use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Service\GlobalStoragesService;
+use OCA\Files_External\Service\StoragesService;
+use OCA\Files_External\Service\UserStoragesService;
+use OCA\Files_External\Lib\StorageConfig;
use Test\Traits\UserTrait;
/**
@@ -186,7 +185,7 @@ class UserStoragesServiceTest extends StoragesServiceTest {
}
/**
- * @expectedException \OCA\Files_external\NotFoundException
+ * @expectedException \OCA\Files_External\NotFoundException
*/
public function testGetAdminStorage() {
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
@@ -201,7 +200,7 @@ class UserStoragesServiceTest extends StoragesServiceTest {
$newStorage = $this->globalStoragesService->addStorage($storage);
- $this->assertInstanceOf('\OCA\Files_external\Lib\StorageConfig', $this->globalStoragesService->getStorage($newStorage->getId()));
+ $this->assertInstanceOf('\OCA\Files_External\Lib\StorageConfig', $this->globalStoragesService->getStorage($newStorage->getId()));
$this->service->getStorage($newStorage->getId());
}
diff --git a/apps/files_external/tests/storage/amazons3test.php b/apps/files_external/tests/Storage/AmazonS3Test.php
index eb0e410764c..eb0e410764c 100644
--- a/apps/files_external/tests/storage/amazons3test.php
+++ b/apps/files_external/tests/Storage/AmazonS3Test.php
diff --git a/apps/files_external/tests/storage/dropboxtest.php b/apps/files_external/tests/Storage/DropboxTest.php
index d466d4b1b44..d466d4b1b44 100644
--- a/apps/files_external/tests/storage/dropboxtest.php
+++ b/apps/files_external/tests/Storage/DropboxTest.php
diff --git a/apps/files_external/tests/storage/ftptest.php b/apps/files_external/tests/Storage/FTPTest.php
index 9af9ccff012..9af9ccff012 100644
--- a/apps/files_external/tests/storage/ftptest.php
+++ b/apps/files_external/tests/Storage/FTPTest.php
diff --git a/apps/files_external/tests/storage/googletest.php b/apps/files_external/tests/Storage/GoogleTest.php
index 46aa4555b12..46aa4555b12 100644
--- a/apps/files_external/tests/storage/googletest.php
+++ b/apps/files_external/tests/Storage/GoogleTest.php
diff --git a/apps/files_external/tests/storage/owncloudtest.php b/apps/files_external/tests/Storage/OwnCloudTest.php
index cbc25e46fa0..cbc25e46fa0 100644
--- a/apps/files_external/tests/storage/owncloudtest.php
+++ b/apps/files_external/tests/Storage/OwnCloudTest.php
diff --git a/apps/files_external/tests/storage/sftptest.php b/apps/files_external/tests/Storage/SFTPTest.php
index 329e93819fc..329e93819fc 100644
--- a/apps/files_external/tests/storage/sftptest.php
+++ b/apps/files_external/tests/Storage/SFTPTest.php
diff --git a/apps/files_external/tests/storage/sftp_keytest.php b/apps/files_external/tests/Storage/SFTP_KeyTest.php
index b974f88555f..b974f88555f 100644
--- a/apps/files_external/tests/storage/sftp_keytest.php
+++ b/apps/files_external/tests/Storage/SFTP_KeyTest.php
diff --git a/apps/files_external/tests/storage/smbtest.php b/apps/files_external/tests/Storage/SMBTest.php
index fc2795702c6..fc2795702c6 100644
--- a/apps/files_external/tests/storage/smbtest.php
+++ b/apps/files_external/tests/Storage/SMBTest.php
diff --git a/apps/files_external/tests/storage/swifttest.php b/apps/files_external/tests/Storage/SwiftTest.php
index 1bcbb815067..1bcbb815067 100644
--- a/apps/files_external/tests/storage/swifttest.php
+++ b/apps/files_external/tests/Storage/SwiftTest.php
diff --git a/apps/files_external/tests/storage/webdavtest.php b/apps/files_external/tests/Storage/WebDAVTest.php
index f8c5b19e04f..f8c5b19e04f 100644
--- a/apps/files_external/tests/storage/webdavtest.php
+++ b/apps/files_external/tests/Storage/WebDAVTest.php
diff --git a/apps/files_external/tests/storageconfigtest.php b/apps/files_external/tests/StorageConfigTest.php
index 278c86d2cbe..a46ab14d84b 100644
--- a/apps/files_external/tests/storageconfigtest.php
+++ b/apps/files_external/tests/StorageConfigTest.php
@@ -21,9 +21,9 @@
*
*/
-namespace OCA\Files_external\Tests;
+namespace OCA\Files_External\Tests;
-use \OCA\Files_external\Lib\StorageConfig;
+use OCA\Files_External\Lib\StorageConfig;
class StorageConfigTest extends \Test\TestCase {