aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /apps/files_external
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/BackgroundJob/CredentialsCleanup.php2
-rw-r--r--apps/files_external/lib/Command/Scan.php2
-rw-r--r--apps/files_external/lib/Controller/ApiController.php2
-rw-r--r--apps/files_external/lib/Controller/GlobalStoragesController.php6
-rw-r--r--apps/files_external/lib/Controller/StoragesController.php4
-rw-r--r--apps/files_external/lib/Controller/UserGlobalStoragesController.php4
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php6
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php2
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php2
-rw-r--r--apps/files_external/lib/MountConfig.php2
-rw-r--r--apps/files_external/lib/Service/BackendService.php2
-rw-r--r--apps/files_external/lib/Service/LegacyStoragesService.php2
-rw-r--r--apps/files_external/lib/Service/StoragesService.php4
-rw-r--r--apps/files_external/lib/Service/UserGlobalStoragesService.php2
-rw-r--r--apps/files_external/lib/Service/UserStoragesService.php2
-rw-r--r--apps/files_external/lib/Settings/Admin.php2
-rw-r--r--apps/files_external/lib/Settings/Personal.php2
-rw-r--r--apps/files_external/lib/Settings/PersonalSection.php2
-rw-r--r--apps/files_external/templates/settings.php4
-rw-r--r--apps/files_external/tests/Controller/StoragesControllerTest.php4
-rw-r--r--apps/files_external/tests/Service/BackendServiceTest.php8
-rw-r--r--apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php2
22 files changed, 34 insertions, 34 deletions
diff --git a/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php b/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
index 1ae80735972..5fd233d232e 100644
--- a/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
+++ b/apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
@@ -27,7 +27,7 @@ class CredentialsCleanup extends TimedJob {
ITimeFactory $time,
ICredentialsManager $credentialsManager,
UserGlobalStoragesService $userGlobalStoragesService,
- IUserManager $userManager
+ IUserManager $userManager,
) {
parent::__construct($time);
diff --git a/apps/files_external/lib/Command/Scan.php b/apps/files_external/lib/Command/Scan.php
index 575ee5989f5..374566ce211 100644
--- a/apps/files_external/lib/Command/Scan.php
+++ b/apps/files_external/lib/Command/Scan.php
@@ -24,7 +24,7 @@ class Scan extends StorageAuthBase {
public function __construct(
GlobalStoragesService $globalService,
- IUserManager $userManager
+ IUserManager $userManager,
) {
parent::__construct($globalService, $userManager);
}
diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php
index 10fd120c3d9..d326e1f7f44 100644
--- a/apps/files_external/lib/Controller/ApiController.php
+++ b/apps/files_external/lib/Controller/ApiController.php
@@ -31,7 +31,7 @@ class ApiController extends OCSController {
string $appName,
IRequest $request,
UserGlobalStoragesService $userGlobalStorageService,
- UserStoragesService $userStorageService
+ UserStoragesService $userStorageService,
) {
parent::__construct($appName, $request);
$this->userGlobalStoragesService = $userGlobalStorageService;
diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php
index d773f3ea5e2..05cfd4684d8 100644
--- a/apps/files_external/lib/Controller/GlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/GlobalStoragesController.php
@@ -41,7 +41,7 @@ class GlobalStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -77,7 +77,7 @@ class GlobalStoragesController extends StoragesController {
$mountOptions,
$applicableUsers,
$applicableGroups,
- $priority
+ $priority,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
@@ -144,7 +144,7 @@ class GlobalStoragesController extends StoragesController {
$applicableUsers,
$applicableGroups,
$priority,
- $testOnly = true
+ $testOnly = true,
) {
$storage = $this->createStorage(
$mountPoint,
diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php
index ab580987b0e..fcd3863e658 100644
--- a/apps/files_external/lib/Controller/StoragesController.php
+++ b/apps/files_external/lib/Controller/StoragesController.php
@@ -44,7 +44,7 @@ abstract class StoragesController extends Controller {
protected LoggerInterface $logger,
protected IUserSession $userSession,
protected IGroupManager $groupManager,
- protected IConfig $config
+ protected IConfig $config,
) {
parent::__construct($AppName, $request);
}
@@ -71,7 +71,7 @@ abstract class StoragesController extends Controller {
$mountOptions = null,
$applicableUsers = null,
$applicableGroups = null,
- $priority = null
+ $priority = null,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
index 3d364fff57d..60159e1bc54 100644
--- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
@@ -47,7 +47,7 @@ class UserGlobalStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -139,7 +139,7 @@ class UserGlobalStoragesController extends StoragesController {
public function update(
$id,
$backendOptions,
- $testOnly = true
+ $testOnly = true,
) {
try {
$storage = $this->service->getStorage($id);
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index a85aa3faa96..ac806fe219c 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -44,7 +44,7 @@ class UserStoragesController extends StoragesController {
LoggerInterface $logger,
IUserSession $userSession,
IGroupManager $groupManager,
- IConfig $config
+ IConfig $config,
) {
parent::__construct(
$AppName,
@@ -104,7 +104,7 @@ class UserStoragesController extends StoragesController {
$backend,
$authMechanism,
$backendOptions,
- $mountOptions
+ $mountOptions,
) {
$canCreateNewLocalStorage = $this->config->getSystemValue('files_external_allow_create_new_local', true);
if (!$canCreateNewLocalStorage && $backend === 'local') {
@@ -161,7 +161,7 @@ class UserStoragesController extends StoragesController {
$authMechanism,
$backendOptions,
$mountOptions,
- $testOnly = true
+ $testOnly = true,
) {
$storage = $this->createStorage(
$mountPoint,
diff --git a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
index ea42b0275f7..5c36f843307 100644
--- a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
+++ b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
@@ -46,7 +46,7 @@ class LoginCredentials extends AuthMechanism {
ICredentialsManager $credentialsManager,
CredentialsStore $credentialsStore,
IEventDispatcher $eventDispatcher,
- ILDAPProviderFactory $ldapFactory
+ ILDAPProviderFactory $ldapFactory,
) {
$this->session = $session;
$this->credentialsManager = $credentialsManager;
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php
index 64e8fdcea69..610807bc7a2 100644
--- a/apps/files_external/lib/Lib/PersonalMount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
@@ -39,7 +39,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
$arguments = null,
$loader = null,
$mountOptions = null,
- $mountId = null
+ $mountId = null,
) {
parent::__construct($storageConfig, $storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
$this->storagesService = $storagesService;
diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php
index b057fb810bd..1cbd6e14ebe 100644
--- a/apps/files_external/lib/MountConfig.php
+++ b/apps/files_external/lib/MountConfig.php
@@ -41,7 +41,7 @@ class MountConfig {
public function __construct(
UserGlobalStoragesService $userGlobalStorageService,
UserStoragesService $userStorageService,
- GlobalStoragesService $globalStorageService
+ GlobalStoragesService $globalStorageService,
) {
$this->userGlobalStorageService = $userGlobalStorageService;
$this->userStorageService = $userStorageService;
diff --git a/apps/files_external/lib/Service/BackendService.php b/apps/files_external/lib/Service/BackendService.php
index 5eb0276be65..a72179a3373 100644
--- a/apps/files_external/lib/Service/BackendService.php
+++ b/apps/files_external/lib/Service/BackendService.php
@@ -62,7 +62,7 @@ class BackendService {
* @param IConfig $config
*/
public function __construct(
- IConfig $config
+ IConfig $config,
) {
$this->config = $config;
diff --git a/apps/files_external/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php
index ac9273f2afc..1f5cf8cdf28 100644
--- a/apps/files_external/lib/Service/LegacyStoragesService.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -37,7 +37,7 @@ abstract class LegacyStoragesService {
&$storageConfig,
$mountType,
$applicable,
- $storageOptions
+ $storageOptions,
) {
$backend = $this->backendService->getBackend($storageOptions['backend']);
if (!$backend) {
diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php
index 09f7ea954b4..40bf5bfe1a8 100644
--- a/apps/files_external/lib/Service/StoragesService.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -50,7 +50,7 @@ abstract class StoragesService {
BackendService $backendService,
DBConfigService $dbConfigService,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
$this->backendService = $backendService;
$this->dbConfig = $dbConfigService;
@@ -282,7 +282,7 @@ abstract class StoragesService {
$mountOptions = null,
$applicableUsers = null,
$applicableGroups = null,
- $priority = null
+ $priority = null,
) {
$backend = $this->backendService->getBackend($backendIdentifier);
if (!$backend) {
diff --git a/apps/files_external/lib/Service/UserGlobalStoragesService.php b/apps/files_external/lib/Service/UserGlobalStoragesService.php
index 58590b8d682..6fc37ea99b3 100644
--- a/apps/files_external/lib/Service/UserGlobalStoragesService.php
+++ b/apps/files_external/lib/Service/UserGlobalStoragesService.php
@@ -37,7 +37,7 @@ class UserGlobalStoragesService extends GlobalStoragesService {
IUserSession $userSession,
IGroupManager $groupManager,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
parent::__construct($backendService, $dbConfig, $userMountCache, $eventDispatcher);
$this->userSession = $userSession;
diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php
index ba678156368..b461451389b 100644
--- a/apps/files_external/lib/Service/UserStoragesService.php
+++ b/apps/files_external/lib/Service/UserStoragesService.php
@@ -34,7 +34,7 @@ class UserStoragesService extends StoragesService {
DBConfigService $dbConfig,
IUserSession $userSession,
IUserMountCache $userMountCache,
- IEventDispatcher $eventDispatcher
+ IEventDispatcher $eventDispatcher,
) {
$this->userSession = $userSession;
parent::__construct($backendService, $dbConfig, $userMountCache, $eventDispatcher);
diff --git a/apps/files_external/lib/Settings/Admin.php b/apps/files_external/lib/Settings/Admin.php
index 63a420e749e..707f7704702 100644
--- a/apps/files_external/lib/Settings/Admin.php
+++ b/apps/files_external/lib/Settings/Admin.php
@@ -30,7 +30,7 @@ class Admin implements ISettings {
IManager $encryptionManager,
GlobalStoragesService $globalStoragesService,
BackendService $backendService,
- GlobalAuth $globalAuth
+ GlobalAuth $globalAuth,
) {
$this->encryptionManager = $encryptionManager;
$this->globalStoragesService = $globalStoragesService;
diff --git a/apps/files_external/lib/Settings/Personal.php b/apps/files_external/lib/Settings/Personal.php
index ecd56e632a9..f84051626a2 100644
--- a/apps/files_external/lib/Settings/Personal.php
+++ b/apps/files_external/lib/Settings/Personal.php
@@ -35,7 +35,7 @@ class Personal implements ISettings {
UserGlobalStoragesService $userGlobalStoragesService,
BackendService $backendService,
GlobalAuth $globalAuth,
- IUserSession $userSession
+ IUserSession $userSession,
) {
$this->encryptionManager = $encryptionManager;
$this->userGlobalStoragesService = $userGlobalStoragesService;
diff --git a/apps/files_external/lib/Settings/PersonalSection.php b/apps/files_external/lib/Settings/PersonalSection.php
index 41db1fcd906..f72ef95ad7f 100644
--- a/apps/files_external/lib/Settings/PersonalSection.php
+++ b/apps/files_external/lib/Settings/PersonalSection.php
@@ -26,7 +26,7 @@ class PersonalSection extends Section {
IL10N $l,
IUserSession $userSession,
UserGlobalStoragesService $userGlobalStoragesService,
- BackendService $backendService
+ BackendService $backendService,
) {
parent::__construct($url, $l);
$this->userSession = $userSession;
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index c4d14ecb2b4..0ebb5800d29 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -116,7 +116,7 @@ function writeParameterInput($parameter, $options, $classes = []) {
<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a>
<p class="settings-hint"><?php p($l->t('External storage enables you to mount external storage services and devices as secondary Nextcloud storage devices. You may also allow people to mount their own external storage services.')); ?></p>
<?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) {
- print_unescaped(''.$_['dependencies'].'');
+ print_unescaped('' . $_['dependencies'] . '');
} ?>
<table id="externalStorage" class="grid" data-admin='<?php print_unescaped(json_encode($_['visibilityType'] === BackendService::VISIBILITY_ADMIN)); ?>'>
<thead>
@@ -127,7 +127,7 @@ function writeParameterInput($parameter, $options, $classes = []) {
<th><?php p($l->t('Authentication')); ?></th>
<th><?php p($l->t('Configuration')); ?></th>
<?php if ($_['visibilityType'] === BackendService::VISIBILITY_ADMIN) {
- print_unescaped('<th>'.$l->t('Available for').'</th>');
+ print_unescaped('<th>' . $l->t('Available for') . '</th>');
} ?>
<th>&nbsp;</th>
<th>&nbsp;</th>
diff --git a/apps/files_external/tests/Controller/StoragesControllerTest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php
index 9e9595152ad..94512c56cad 100644
--- a/apps/files_external/tests/Controller/StoragesControllerTest.php
+++ b/apps/files_external/tests/Controller/StoragesControllerTest.php
@@ -47,7 +47,7 @@ abstract class StoragesControllerTest extends \Test\TestCase {
$backend->method('getStorageClass')
->willReturn($storageClass);
$backend->method('getIdentifier')
- ->willReturn('identifier:'.$class);
+ ->willReturn('identifier:' . $class);
$backend->method('getParameters')
->willReturn([]);
return $backend;
@@ -63,7 +63,7 @@ abstract class StoragesControllerTest extends \Test\TestCase {
$authMech->method('getScheme')
->willReturn($scheme);
$authMech->method('getIdentifier')
- ->willReturn('identifier:'.$class);
+ ->willReturn('identifier:' . $class);
$authMech->method('getParameters')
->willReturn([]);
diff --git a/apps/files_external/tests/Service/BackendServiceTest.php b/apps/files_external/tests/Service/BackendServiceTest.php
index 6d9754a5335..74a4b223a96 100644
--- a/apps/files_external/tests/Service/BackendServiceTest.php
+++ b/apps/files_external/tests/Service/BackendServiceTest.php
@@ -32,8 +32,8 @@ class BackendServiceTest extends \Test\TestCase {
$backend = $this->getMockBuilder(Backend::class)
->disableOriginalConstructor()
->getMock();
- $backend->method('getIdentifier')->willReturn('identifier:'.$class);
- $backend->method('getIdentifierAliases')->willReturn(['identifier:'.$class]);
+ $backend->method('getIdentifier')->willReturn('identifier:' . $class);
+ $backend->method('getIdentifierAliases')->willReturn(['identifier:' . $class]);
return $backend;
}
@@ -46,8 +46,8 @@ class BackendServiceTest extends \Test\TestCase {
$backend = $this->getMockBuilder(AuthMechanism::class)
->disableOriginalConstructor()
->getMock();
- $backend->method('getIdentifier')->willReturn('identifier:'.$class);
- $backend->method('getIdentifierAliases')->willReturn(['identifier:'.$class]);
+ $backend->method('getIdentifier')->willReturn('identifier:' . $class);
+ $backend->method('getIdentifierAliases')->willReturn(['identifier:' . $class]);
return $backend;
}
diff --git a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
index 992960a6ea1..ff8d5f4e494 100644
--- a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
+++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
@@ -243,7 +243,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
public function testGetUniqueStorages(
$priority1, $applicableUsers1, $applicableGroups1,
$priority2, $applicableUsers2, $applicableGroups2,
- $expectedPrecedence
+ $expectedPrecedence,
): void {
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
$backend->method('isVisibleFor')