summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/AppInfo/Application.php2
-rw-r--r--apps/files_external/lib/Config/ConfigAdapter.php6
-rw-r--r--apps/files_external/lib/Lib/Backend/Swift.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/FTP.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTP.php2
-rw-r--r--apps/files_external/lib/Service/BackendService.php4
-rw-r--r--apps/files_external/lib/config.php2
-rw-r--r--apps/files_external/templates/settings.php6
-rw-r--r--apps/files_external/tests/Backend/BackendTest.php2
-rw-r--r--apps/files_external/tests/FrontendDefinitionTraitTest.php2
-rw-r--r--apps/files_external/tests/Storage/FtpTest.php2
11 files changed, 16 insertions, 16 deletions
diff --git a/apps/files_external/lib/AppInfo/Application.php b/apps/files_external/lib/AppInfo/Application.php
index 47f52fbcb87..cc587dcd80f 100644
--- a/apps/files_external/lib/AppInfo/Application.php
+++ b/apps/files_external/lib/AppInfo/Application.php
@@ -85,7 +85,7 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
$backendService = $container->query(BackendService::class);
$backendService->registerBackendProvider($this);
$backendService->registerAuthMechanismProvider($this);
- $backendService->registerConfigHandler('user', function() use ($container) {
+ $backendService->registerConfigHandler('user', function () use ($container) {
return $container->query(UserPlaceholderHandler::class);
});
diff --git a/apps/files_external/lib/Config/ConfigAdapter.php b/apps/files_external/lib/Config/ConfigAdapter.php
index 0d11fbb02ee..8f1cac49c69 100644
--- a/apps/files_external/lib/Config/ConfigAdapter.php
+++ b/apps/files_external/lib/Config/ConfigAdapter.php
@@ -127,7 +127,7 @@ class ConfigAdapter implements IMountProvider {
$storageConfigs = $this->userGlobalStoragesService->getAllStoragesForUser();
- $storages = array_map(function(StorageConfig $storageConfig) use ($user) {
+ $storages = array_map(function (StorageConfig $storageConfig) use ($user) {
try {
$this->prepareStorageConfig($storageConfig, $user);
return $this->constructStorage($storageConfig);
@@ -138,7 +138,7 @@ class ConfigAdapter implements IMountProvider {
}, $storageConfigs);
- \OC\Files\Cache\Storage::getGlobalCache()->loadForStorageIds(array_map(function(Storage\IStorage $storage) {
+ \OC\Files\Cache\Storage::getGlobalCache()->loadForStorageIds(array_map(function (Storage\IStorage $storage) {
return $storage->getId();
}, $storages));
@@ -157,7 +157,7 @@ class ConfigAdapter implements IMountProvider {
return $storage;
}, $storages, $storageConfigs);
- $mounts = array_map(function(StorageConfig $storageConfig, Storage\IStorage $storage) use ($user, $loader) {
+ $mounts = array_map(function (StorageConfig $storageConfig, Storage\IStorage $storage) use ($user, $loader) {
if ($storageConfig->getType() === StorageConfig::MOUNT_TYPE_PERSONAl) {
return new PersonalMount(
$this->userStoragesService,
diff --git a/apps/files_external/lib/Lib/Backend/Swift.php b/apps/files_external/lib/Lib/Backend/Swift.php
index 86238b542b1..5d4d5ec1408 100644
--- a/apps/files_external/lib/Lib/Backend/Swift.php
+++ b/apps/files_external/lib/Lib/Backend/Swift.php
@@ -52,7 +52,7 @@ class Swift extends Backend {
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
])
->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK)
- ->setLegacyAuthMechanismCallback(function(array $params) use ($openstackAuth, $rackspaceAuth) {
+ ->setLegacyAuthMechanismCallback(function (array $params) use ($openstackAuth, $rackspaceAuth) {
if (isset($params['options']['key']) && $params['options']['key']) {
return $rackspaceAuth;
}
diff --git a/apps/files_external/lib/Lib/Storage/FTP.php b/apps/files_external/lib/Lib/Storage/FTP.php
index 96e557f48ff..de4d001fc4a 100644
--- a/apps/files_external/lib/Lib/Storage/FTP.php
+++ b/apps/files_external/lib/Lib/Storage/FTP.php
@@ -68,7 +68,7 @@ class FTP extends StreamWrapper{
}
- public function getId(){
+ public function getId() {
return 'ftp::' . $this->user . '@' . $this->host . '/' . $this->root;
}
diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php
index d79c82446ae..acc4042f21b 100644
--- a/apps/files_external/lib/Lib/Storage/SFTP.php
+++ b/apps/files_external/lib/Lib/Storage/SFTP.php
@@ -169,7 +169,7 @@ class SFTP extends \OC\Files\Storage\Common {
/**
* {@inheritdoc}
*/
- public function getId(){
+ public function getId() {
$id = 'sftp::' . $this->user . '@' . $this->host;
if ($this->port !== 22) {
$id .= ':' . $this->port;
diff --git a/apps/files_external/lib/Service/BackendService.php b/apps/files_external/lib/Service/BackendService.php
index b3a2bb8241a..6c2ea72b840 100644
--- a/apps/files_external/lib/Service/BackendService.php
+++ b/apps/files_external/lib/Service/BackendService.php
@@ -216,7 +216,7 @@ class BackendService {
* @return Backend[]
*/
public function getAvailableBackends() {
- return array_filter($this->getBackends(), function($backend) {
+ return array_filter($this->getBackends(), function ($backend) {
return !$backend->checkDependencies();
});
}
@@ -255,7 +255,7 @@ class BackendService {
* @return AuthMechanism[]
*/
public function getAuthMechanismsByScheme(array $schemes) {
- return array_filter($this->getAuthMechanisms(), function($authMech) use ($schemes) {
+ return array_filter($this->getAuthMechanisms(), function ($authMech) use ($schemes) {
return in_array($authMech->getScheme(), $schemes, true);
});
}
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 432bb6702fd..c02d9d71566 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -322,7 +322,7 @@ class OC_Mount_Config {
}
foreach ($dependencyGroups as $module => $dependants) {
- $backends = implode(', ', array_map(function($backend) {
+ $backends = implode(', ', array_map(function ($backend) {
return '"' . $backend->getText() . '"';
}, $dependants));
$message .= '<p>' . OC_Mount_Config::getSingleDependencyMessage($l, $module, $backends) . '</p>';
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index 45d4ac8406c..04c33f73b8b 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -134,10 +134,10 @@
<?php p($l->t('Add storage')); ?>
</option>
<?php
- $sortedBackends = array_filter($_['backends'], function($backend) use ($_) {
+ $sortedBackends = array_filter($_['backends'], function ($backend) use ($_) {
return $backend->isVisibleFor($_['visibilityType']);
});
- uasort($sortedBackends, function($a, $b) {
+ uasort($sortedBackends, function ($a, $b) {
return strcasecmp($a->getText(), $b->getText());
});
?>
@@ -172,7 +172,7 @@
<p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>>
<?php
- $userBackends = array_filter($_['backends'], function($backend) {
+ $userBackends = array_filter($_['backends'], function ($backend) {
return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL);
});
?>
diff --git a/apps/files_external/tests/Backend/BackendTest.php b/apps/files_external/tests/Backend/BackendTest.php
index b15ff00d21a..10853d9197c 100644
--- a/apps/files_external/tests/Backend/BackendTest.php
+++ b/apps/files_external/tests/Backend/BackendTest.php
@@ -78,7 +78,7 @@ class BackendTest extends \Test\TestCase {
public function testLegacyAuthMechanismCallback() {
$backend = new Backend();
- $backend->setLegacyAuthMechanismCallback(function(array $params) {
+ $backend->setLegacyAuthMechanismCallback(function (array $params) {
if (isset($params['ping'])) {
return 'pong';
}
diff --git a/apps/files_external/tests/FrontendDefinitionTraitTest.php b/apps/files_external/tests/FrontendDefinitionTraitTest.php
index 9b61a32c3cc..ad5cb903214 100644
--- a/apps/files_external/tests/FrontendDefinitionTraitTest.php
+++ b/apps/files_external/tests/FrontendDefinitionTraitTest.php
@@ -102,7 +102,7 @@ class FrontendDefinitionTraitTest extends \Test\TestCase {
->willReturn('param');
$param->expects($this->once())
->method('validateValue')
- ->willReturnCallback(function(&$value) {
+ ->willReturnCallback(function (&$value) {
$value = 'foobar';
return true;
});
diff --git a/apps/files_external/tests/Storage/FtpTest.php b/apps/files_external/tests/Storage/FtpTest.php
index db2fd00341f..c4c947d6080 100644
--- a/apps/files_external/tests/Storage/FtpTest.php
+++ b/apps/files_external/tests/Storage/FtpTest.php
@@ -63,7 +63,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
parent::tearDown();
}
- public function testConstructUrl(){
+ public function testConstructUrl() {
$config = [ 'host' => 'localhost',
'user' => 'ftp',
'password' => 'ftp',