diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-13 11:56:47 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 08:41:22 +0200 |
commit | f14dff680d5e1e0fe10065ed25c524d9b5078cae (patch) | |
tree | f86d6466629f4d0f5d1a6de7fcd111ca27d3f52f /apps/files_external | |
parent | 4576891f10aa41cc146dc6ed421384269eca283a (diff) | |
download | nextcloud-server-f14dff680d5e1e0fe10065ed25c524d9b5078cae.tar.gz nextcloud-server-f14dff680d5e1e0fe10065ed25c524d9b5078cae.zip |
Move remaining classes to PSR-4
Diffstat (limited to 'apps/files_external')
47 files changed, 47 insertions, 52 deletions
diff --git a/apps/files_external/lib/Command/Applicable.php b/apps/files_external/lib/Command/Applicable.php index 902e76cb4cb..4e178edbbae 100644 --- a/apps/files_external/lib/Command/Applicable.php +++ b/apps/files_external/lib/Command/Applicable.php @@ -22,8 +22,8 @@ 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\Lib\StorageConfig; +use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\GlobalStoragesService; use OCP\IGroupManager; use OCP\IUserManager; diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php index 873fece86d7..909b130f17b 100644 --- a/apps/files_external/lib/Command/Config.php +++ b/apps/files_external/lib/Command/Config.php @@ -22,8 +22,8 @@ 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\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; diff --git a/apps/files_external/lib/Command/Create.php b/apps/files_external/lib/Command/Create.php index 17ad7ef1a16..e5fd095d6f2 100644 --- a/apps/files_external/lib/Command/Create.php +++ b/apps/files_external/lib/Command/Create.php @@ -27,7 +27,7 @@ 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\UserStoragesService; diff --git a/apps/files_external/lib/Command/Delete.php b/apps/files_external/lib/Command/Delete.php index a3aef7f3303..64228b2033b 100644 --- a/apps/files_external/lib/Command/Delete.php +++ b/apps/files_external/lib/Command/Delete.php @@ -22,7 +22,7 @@ namespace OCA\Files_External\Command; use OC\Core\Command\Base; -use OCA\Files_external\NotFoundException; +use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\GlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; use OCP\IUserManager; diff --git a/apps/files_external/lib/Command/Import.php b/apps/files_external/lib/Command/Import.php index 55528b66472..4f881acb500 100644 --- a/apps/files_external/lib/Command/Import.php +++ b/apps/files_external/lib/Command/Import.php @@ -23,7 +23,7 @@ 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; diff --git a/apps/files_external/lib/Command/ListCommand.php b/apps/files_external/lib/Command/ListCommand.php index cbe1913ccfc..c1fb18b3bc2 100644 --- a/apps/files_external/lib/Command/ListCommand.php +++ b/apps/files_external/lib/Command/ListCommand.php @@ -23,7 +23,7 @@ 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\GlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; use OCP\IUserManager; diff --git a/apps/files_external/lib/Command/Option.php b/apps/files_external/lib/Command/Option.php index 109ca26c31f..4f7733b25d8 100644 --- a/apps/files_external/lib/Command/Option.php +++ b/apps/files_external/lib/Command/Option.php @@ -21,7 +21,7 @@ namespace OCA\Files_External\Command; -use OCA\Files_external\Lib\StorageConfig; +use OCA\Files_External\Lib\StorageConfig; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; diff --git a/apps/files_external/lib/Command/Verify.php b/apps/files_external/lib/Command/Verify.php index 6ff871a6094..dfc536530bb 100644 --- a/apps/files_external/lib/Command/Verify.php +++ b/apps/files_external/lib/Command/Verify.php @@ -25,8 +25,8 @@ 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\Lib\StorageConfig; +use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\GlobalStoragesService; use OCP\Files\StorageNotAvailableException; use Symfony\Component\Console\Input\InputArgument; diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index 2471ac861de..0ae9e1fd5e0 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -30,7 +30,7 @@ use \OCP\IL10N; use \OCP\AppFramework\Http\DataResponse; use \OCP\AppFramework\Http; use OCA\Files_External\Service\GlobalStoragesService; -use \OCA\Files_external\NotFoundException; +use OCA\Files_External\NotFoundException; /** * Global storages controller diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index da26f24b6b8..a368169944e 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -32,8 +32,8 @@ 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\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; diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index c420d9ad59f..ee4cd640018 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -31,8 +31,8 @@ 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\NotFoundException; +use OCA\Files_External\Lib\StorageConfig; use \OCA\Files_External\Lib\Backend\Backend; use OCP\IUserSession; diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index e20a41e0cc4..1850d0087b3 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -32,8 +32,8 @@ use \OCP\IL10N; use \OCP\AppFramework\Http\DataResponse; use \OCP\AppFramework\Http; use OCA\Files_External\Service\UserStoragesService; -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\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/Lib/Auth/Builtin.php b/apps/files_external/lib/Lib/Auth/Builtin.php index 8b43cb459cc..c5c3a19e54f 100644 --- a/apps/files_external/lib/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/Lib/Auth/NullMechanism.php b/apps/files_external/lib/Lib/Auth/NullMechanism.php index c0a8f4f119b..671a5ff66c5 100644 --- a/apps/files_external/lib/Lib/Auth/NullMechanism.php +++ b/apps/files_external/lib/Lib/Auth/NullMechanism.php @@ -22,7 +22,6 @@ namespace OCA\Files_External\Lib\Auth; use \OCP\IL10N; -use \OCA\Files_external\Lib\StorageConfig; /** * Null authentication mechanism 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/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/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/lib/Service/GlobalStoragesService.php b/apps/files_external/lib/Service/GlobalStoragesService.php index 6032a827735..592283444d1 100644 --- a/apps/files_external/lib/Service/GlobalStoragesService.php +++ b/apps/files_external/lib/Service/GlobalStoragesService.php @@ -24,11 +24,9 @@ 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/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php index 40f57e45506..365181d746c 100644 --- a/apps/files_external/lib/Service/LegacyStoragesService.php +++ b/apps/files_external/lib/Service/LegacyStoragesService.php @@ -21,7 +21,7 @@ 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/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 0999c0a7adf..4fb0f65e760 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -26,8 +26,8 @@ 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/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php index b64f289b3ee..a527acbba3a 100644 --- a/apps/files_external/lib/Service/UserStoragesService.php +++ b/apps/files_external/lib/Service/UserStoragesService.php @@ -27,8 +27,8 @@ 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/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/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/Command/CommandTest.php b/apps/files_external/tests/Command/CommandTest.php index 73a1ea8315c..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; diff --git a/apps/files_external/tests/Command/ListCommandTest.php b/apps/files_external/tests/Command/ListCommandTest.php index 1475249ae43..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 { diff --git a/apps/files_external/tests/Controller/StoragesControllerTest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php index 81625fbbcb9..4c3bd73fe4b 100644 --- a/apps/files_external/tests/Controller/StoragesControllerTest.php +++ b/apps/files_external/tests/Controller/StoragesControllerTest.php @@ -25,8 +25,8 @@ 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\Lib\StorageConfig; +use OCA\Files_External\NotFoundException; abstract class StoragesControllerTest extends \Test\TestCase { 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/StoragesServiceTest.php b/apps/files_external/tests/Service/StoragesServiceTest.php index 7cc0d8fad93..5d1094271e5 100644 --- a/apps/files_external/tests/Service/StoragesServiceTest.php +++ b/apps/files_external/tests/Service/StoragesServiceTest.php @@ -24,8 +24,8 @@ 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; @@ -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 812c12392fc..4a03b6194e9 100644 --- a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php +++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php @@ -22,7 +22,7 @@ */ namespace OCA\Files_External\Tests\Service; -use OCA\Files_external\NotFoundException; +use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\StoragesService; use OCA\Files_External\Service\UserGlobalStoragesService; use OCP\IUser; diff --git a/apps/files_external/tests/Service/UserStoragesServiceTest.php b/apps/files_external/tests/Service/UserStoragesServiceTest.php index 21696878a01..6ae888d8274 100644 --- a/apps/files_external/tests/Service/UserStoragesServiceTest.php +++ b/apps/files_external/tests/Service/UserStoragesServiceTest.php @@ -27,7 +27,7 @@ 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\Lib\StorageConfig; +use OCA\Files_External\Lib\StorageConfig; use Test\Traits\UserTrait; /** @@ -185,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'); @@ -200,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/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 { |