aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage/OwnCloud.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/OwnCloud.php')
-rw-r--r--apps/files_external/lib/Lib/Storage/OwnCloud.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/files_external/lib/Lib/Storage/OwnCloud.php b/apps/files_external/lib/Lib/Storage/OwnCloud.php
index ff519c60e2d..1bcf19b460e 100644
--- a/apps/files_external/lib/Lib/Storage/OwnCloud.php
+++ b/apps/files_external/lib/Lib/Storage/OwnCloud.php
@@ -20,17 +20,17 @@ use Sabre\DAV\Client;
class OwnCloud extends DAV implements IDisableEncryptionStorage {
public const OC_URL_SUFFIX = 'remote.php/webdav';
- public function __construct($params) {
+ public function __construct(array $parameters) {
// extract context path from host if specified
// (owncloud install path on host)
- $host = $params['host'];
+ $host = $parameters['host'];
// strip protocol
if (substr($host, 0, 8) === 'https://') {
$host = substr($host, 8);
- $params['secure'] = true;
+ $parameters['secure'] = true;
} elseif (substr($host, 0, 7) === 'http://') {
$host = substr($host, 7);
- $params['secure'] = false;
+ $parameters['secure'] = false;
}
$contextPath = '';
$hostSlashPos = strpos($host, '/');
@@ -43,17 +43,17 @@ class OwnCloud extends DAV implements IDisableEncryptionStorage {
$contextPath .= '/';
}
- if (isset($params['root'])) {
- $root = '/' . ltrim($params['root'], '/');
+ if (isset($parameters['root'])) {
+ $root = '/' . ltrim($parameters['root'], '/');
} else {
$root = '/';
}
- $params['host'] = $host;
- $params['root'] = $contextPath . self::OC_URL_SUFFIX . $root;
- $params['authType'] = Client::AUTH_BASIC;
+ $parameters['host'] = $host;
+ $parameters['root'] = $contextPath . self::OC_URL_SUFFIX . $root;
+ $parameters['authType'] = Client::AUTH_BASIC;
- parent::__construct($params);
+ parent::__construct($parameters);
}
public function needsPartFile(): bool {