summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)5
-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)2
-rw-r--r--apps/files_external/lib/Command/Create.php (renamed from apps/files_external/command/create.php)9
-rw-r--r--apps/files_external/lib/Command/Delete.php (renamed from apps/files_external/command/delete.php)8
-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)10
-rw-r--r--apps/files_external/lib/Command/ListCommand.php (renamed from apps/files_external/command/listcommand.php)5
-rw-r--r--apps/files_external/lib/Command/Option.php (renamed from apps/files_external/command/option.php)10
-rw-r--r--apps/files_external/lib/Command/Verify.php (renamed from apps/files_external/command/verify.php)5
-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)7
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php (renamed from apps/files_external/controller/storagescontroller.php)6
-rw-r--r--apps/files_external/lib/Controller/UserGlobalStoragesController.php (renamed from apps/files_external/controller/userglobalstoragescontroller.php)2
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php (renamed from apps/files_external/controller/userstoragescontroller.php)6
-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)12
-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)2
-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)2
-rw-r--r--apps/files_external/lib/Service/StoragesService.php (renamed from apps/files_external/service/storagesservice.php)2
-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)2
-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/configadapter.php4
-rw-r--r--apps/files_external/personal.php2
-rw-r--r--apps/files_external/settings.php2
-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)4
-rw-r--r--apps/files_external/tests/Command/ListCommandTest.php (renamed from apps/files_external/tests/command/listcommandtest.php)8
-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)6
-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/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)4
-rw-r--r--apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php (renamed from apps/files_external/tests/service/userglobalstoragesservicetest.php)7
-rw-r--r--apps/files_external/tests/Service/UserStoragesServiceTest.php (renamed from apps/files_external/tests/service/userstoragesservicetest.php)9
49 files changed, 68 insertions, 129 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..902e76cb4cb 100644
--- a/apps/files_external/command/applicable.php
+++ b/apps/files_external/lib/Command/Applicable.php
@@ -24,12 +24,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\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..873fece86d7 100644
--- a/apps/files_external/command/config.php
+++ b/apps/files_external/lib/Command/Config.php
@@ -24,7 +24,7 @@ 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\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..17ad7ef1a16 100644
--- a/apps/files_external/command/create.php
+++ b/apps/files_external/lib/Command/Create.php
@@ -29,19 +29,14 @@ use OCA\Files_External\Lib\Backend\Backend;
use OCA\Files_External\Lib\DefinitionParameter;
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..a3aef7f3303 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\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..55528b66472 100644
--- a/apps/files_external/command/import.php
+++ b/apps/files_external/lib/Command/Import.php
@@ -25,19 +25,15 @@ use OC\Core\Command\Base;
use OC\User\NoUserException;
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..cbe1913ccfc 100644
--- a/apps/files_external/command/listcommand.php
+++ b/apps/files_external/lib/Command/ListCommand.php
@@ -24,11 +24,10 @@ 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\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..109ca26c31f 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 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..6ff871a6094 100644
--- a/apps/files_external/command/verify.php
+++ b/apps/files_external/lib/Command/Verify.php
@@ -27,11 +27,8 @@ 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\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/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..2471ac861de 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\Service\GlobalStoragesService;
use \OCA\Files_external\NotFoundException;
-use \OCA\Files_external\Lib\StorageConfig;
-use \OCA\Files_External\Service\BackendService;
/**
* Global storages controller
diff --git a/apps/files_external/controller/storagescontroller.php b/apps/files_external/lib/Controller/StoragesController.php
index 09b83104700..da26f24b6b8 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\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..c420d9ad59f 100644
--- a/apps/files_external/controller/userglobalstoragescontroller.php
+++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
@@ -30,7 +30,7 @@ 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\Service\UserGlobalStoragesService;
use \OCA\Files_external\NotFoundException;
use \OCA\Files_external\Lib\StorageConfig;
use \OCA\Files_External\Lib\Backend\Backend;
diff --git a/apps/files_external/controller/userstoragescontroller.php b/apps/files_external/lib/Controller/UserStoragesController.php
index e53ea21f005..e20a41e0cc4 100644
--- a/apps/files_external/controller/userstoragescontroller.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -25,17 +25,13 @@ 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\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/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..a8b0461e7de 100644
--- a/apps/files_external/migration/storagemigrator.php
+++ b/apps/files_external/lib/Migration/StorageMigrator.php
@@ -20,22 +20,18 @@
*
*/
-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\GlobalStoragesService;
+use OCA\Files_External\Service\LegacyStoragesService;
+use OCA\Files_External\Service\StoragesService;
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/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..6032a827735 100644
--- a/apps/files_external/service/globalstoragesservice.php
+++ b/apps/files_external/lib/Service/GlobalStoragesService.php
@@ -22,7 +22,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use \OCP\IUserSession;
use \OC\Files\Filesystem;
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..40f57e45506 100644
--- a/apps/files_external/service/legacystoragesservice.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use \OCA\Files_external\Lib\StorageConfig;
diff --git a/apps/files_external/service/storagesservice.php b/apps/files_external/lib/Service/StoragesService.php
index 6542be146d6..0999c0a7adf 100644
--- a/apps/files_external/service/storagesservice.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -23,7 +23,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use \OC\Files\Filesystem;
use \OCA\Files_external\Lib\StorageConfig;
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..b64f289b3ee 100644
--- a/apps/files_external/service/userstoragesservice.php
+++ b/apps/files_external/lib/Service/UserStoragesService.php
@@ -21,7 +21,7 @@
*
*/
-namespace OCA\Files_external\Service;
+namespace OCA\Files_External\Service;
use OCP\Files\Config\IUserMountCache;
use \OCP\IUserSession;
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/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/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/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..73a1ea8315c 100644
--- a/apps/files_external/tests/command/commandtest.php
+++ b/apps/files_external/tests/Command/CommandTest.php
@@ -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..1475249ae43 100644
--- a/apps/files_external/tests/command/listcommandtest.php
+++ b/apps/files_external/tests/Command/ListCommandTest.php
@@ -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..81625fbbcb9 100644
--- a/apps/files_external/tests/controller/storagescontrollertest.php
+++ b/apps/files_external/tests/Controller/StoragesControllerTest.php
@@ -19,12 +19,12 @@
* 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\Controller\GlobalStoragesController;
+use \OCA\Files_External\Service\GlobalStoragesService;
use \OCA\Files_external\Lib\StorageConfig;
use \OCA\Files_external\NotFoundException;
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/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..7cc0d8fad93 100644
--- a/apps/files_external/tests/service/storagesservicetest.php
+++ b/apps/files_external/tests/Service/StoragesServiceTest.php
@@ -20,7 +20,7 @@
* 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;
@@ -28,7 +28,7 @@ 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 = [];
diff --git a/apps/files_external/tests/service/userglobalstoragesservicetest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
index baecf143c66..812c12392fc 100644
--- a/apps/files_external/tests/service/userglobalstoragesservicetest.php
+++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
@@ -23,11 +23,8 @@
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\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..21696878a01 100644
--- a/apps/files_external/tests/service/userstoragesservicetest.php
+++ b/apps/files_external/tests/Service/UserStoragesServiceTest.php
@@ -20,14 +20,13 @@
* 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\Service\GlobalStoragesService;
+use OCA\Files_External\Service\StoragesService;
+use OCA\Files_External\Service\UserStoragesService;
use \OCA\Files_external\Lib\StorageConfig;
use Test\Traits\UserTrait;