aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-26 09:22:26 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-26 09:22:26 +0200
commitb9115da4f27ff2cc013da4ec88754c1175dd5216 (patch)
treecffbf11e3742d744f46ef95577d0b05c208e19eb /apps/files_external/lib
parent9a220989dd1cd3a5792b8fc385ee1d7b1bcc7fb8 (diff)
downloadnextcloud-server-refactor/apps/php55-features.tar.gz
nextcloud-server-refactor/apps/php55-features.zip
refactor(apps): Use PHP 5.5 featuresrefactor/apps/php55-features
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Command/Scan.php4
-rw-r--r--apps/files_external/lib/Lib/Backend/AmazonS3.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/FTP.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/Local.php4
-rw-r--r--apps/files_external/lib/Lib/Backend/OwnCloud.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP_Key.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB_OC.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/Swift.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTPReadStream.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTPWriteStream.php2
12 files changed, 14 insertions, 14 deletions
diff --git a/apps/files_external/lib/Command/Scan.php b/apps/files_external/lib/Command/Scan.php
index bd54415df55..c1356516164 100644
--- a/apps/files_external/lib/Command/Scan.php
+++ b/apps/files_external/lib/Command/Scan.php
@@ -70,13 +70,13 @@ class Scan extends StorageAuthBase {
/** @var Scanner $scanner */
$scanner = $storage->getScanner();
- $scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function (string $path) use ($output): void {
+ $scanner->listen(\OC\Files\Cache\Scanner::class, 'scanFile', function (string $path) use ($output): void {
$output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
++$this->filesCounter;
$this->abortIfInterrupted();
});
- $scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function (string $path) use ($output): void {
+ $scanner->listen(\OC\Files\Cache\Scanner::class, 'scanFolder', function (string $path) use ($output): void {
$output->writeln("\tFolder\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
++$this->foldersCounter;
$this->abortIfInterrupted();
diff --git a/apps/files_external/lib/Lib/Backend/AmazonS3.php b/apps/files_external/lib/Lib/Backend/AmazonS3.php
index e345ed53f70..a4f1b18f58c 100644
--- a/apps/files_external/lib/Lib/Backend/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Backend/AmazonS3.php
@@ -19,7 +19,7 @@ class AmazonS3 extends Backend {
$this
->setIdentifier('amazons3')
->addIdentifierAlias('\OC\Files\Storage\AmazonS3') // legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\AmazonS3')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\AmazonS3::class)
->setText($l->t('Amazon S3'))
->addParameters([
new DefinitionParameter('bucket', $l->t('Bucket')),
diff --git a/apps/files_external/lib/Lib/Backend/FTP.php b/apps/files_external/lib/Lib/Backend/FTP.php
index cdf7d187b4d..f942340f1e0 100644
--- a/apps/files_external/lib/Lib/Backend/FTP.php
+++ b/apps/files_external/lib/Lib/Backend/FTP.php
@@ -19,7 +19,7 @@ class FTP extends Backend {
$this
->setIdentifier('ftp')
->addIdentifierAlias('\OC\Files\Storage\FTP') // legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\FTP')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\FTP::class)
->setText($l->t('FTP'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
diff --git a/apps/files_external/lib/Lib/Backend/Local.php b/apps/files_external/lib/Lib/Backend/Local.php
index 2902ba770c6..505a3893b2d 100644
--- a/apps/files_external/lib/Lib/Backend/Local.php
+++ b/apps/files_external/lib/Lib/Backend/Local.php
@@ -18,8 +18,8 @@ class Local extends Backend {
public function __construct(IL10N $l, NullMechanism $legacyAuth) {
$this
->setIdentifier('local')
- ->addIdentifierAlias('\OC\Files\Storage\Local') // legacy compat
- ->setStorageClass('\OC\Files\Storage\Local')
+ ->addIdentifierAlias(\OC\Files\Storage\Local::class) // legacy compat
+ ->setStorageClass(\OC\Files\Storage\Local::class)
->setText($l->t('Local'))
->addParameters([
new DefinitionParameter('datadir', $l->t('Location')),
diff --git a/apps/files_external/lib/Lib/Backend/OwnCloud.php b/apps/files_external/lib/Lib/Backend/OwnCloud.php
index c0bd6891864..1c08bbe3a53 100644
--- a/apps/files_external/lib/Lib/Backend/OwnCloud.php
+++ b/apps/files_external/lib/Lib/Backend/OwnCloud.php
@@ -16,7 +16,7 @@ class OwnCloud extends Backend {
$this
->setIdentifier('owncloud')
->addIdentifierAlias('\OC\Files\Storage\OwnCloud') // legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\OwnCloud')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\OwnCloud::class)
->setText($l->t('Nextcloud'))
->addParameters([
new DefinitionParameter('host', $l->t('URL')),
diff --git a/apps/files_external/lib/Lib/Backend/SFTP.php b/apps/files_external/lib/Lib/Backend/SFTP.php
index 93a5d87a5ff..348e0370608 100644
--- a/apps/files_external/lib/Lib/Backend/SFTP.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP.php
@@ -16,7 +16,7 @@ class SFTP extends Backend {
$this
->setIdentifier('sftp')
->addIdentifierAlias('\OC\Files\Storage\SFTP') // legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\SFTP')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\SFTP::class)
->setText($l->t('SFTP'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
diff --git a/apps/files_external/lib/Lib/Backend/SFTP_Key.php b/apps/files_external/lib/Lib/Backend/SFTP_Key.php
index a657dce66e5..63c272d2432 100644
--- a/apps/files_external/lib/Lib/Backend/SFTP_Key.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP_Key.php
@@ -15,7 +15,7 @@ class SFTP_Key extends Backend {
public function __construct(IL10N $l, RSA $legacyAuth, SFTP $sftpBackend) {
$this
->setIdentifier('\OC\Files\Storage\SFTP_Key')
- ->setStorageClass('\OCA\Files_External\Lib\Storage\SFTP')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\SFTP::class)
->setText($l->t('SFTP with secret key login'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index c4a68fea6e1..8e24b0c146d 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -27,7 +27,7 @@ class SMB extends Backend {
$this
->setIdentifier('smb')
->addIdentifierAlias('\OC\Files\Storage\SMB')// legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\SMB')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\SMB::class)
->setText($l->t('SMB/CIFS'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
diff --git a/apps/files_external/lib/Lib/Backend/SMB_OC.php b/apps/files_external/lib/Lib/Backend/SMB_OC.php
index 55edec8a464..bf7f855d180 100644
--- a/apps/files_external/lib/Lib/Backend/SMB_OC.php
+++ b/apps/files_external/lib/Lib/Backend/SMB_OC.php
@@ -24,7 +24,7 @@ class SMB_OC extends Backend {
public function __construct(IL10N $l, SessionCredentials $legacyAuth, SMB $smbBackend) {
$this
->setIdentifier('\OC\Files\Storage\SMB_OC')
- ->setStorageClass('\OCA\Files_External\Lib\Storage\SMB')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\SMB::class)
->setText($l->t('SMB/CIFS using OC login'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
diff --git a/apps/files_external/lib/Lib/Backend/Swift.php b/apps/files_external/lib/Lib/Backend/Swift.php
index 386604e6e1d..778e141a123 100644
--- a/apps/files_external/lib/Lib/Backend/Swift.php
+++ b/apps/files_external/lib/Lib/Backend/Swift.php
@@ -20,7 +20,7 @@ class Swift extends Backend {
$this
->setIdentifier('swift')
->addIdentifierAlias('\OC\Files\Storage\Swift') // legacy compat
- ->setStorageClass('\OCA\Files_External\Lib\Storage\Swift')
+ ->setStorageClass(\OCA\Files_External\Lib\Storage\Swift::class)
->setText($l->t('OpenStack Object Storage'))
->addParameters([
(new DefinitionParameter('service_name', $l->t('Service name')))
diff --git a/apps/files_external/lib/Lib/Storage/SFTPReadStream.php b/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
index e0b4b4002aa..da321e0a548 100644
--- a/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
+++ b/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
@@ -38,7 +38,7 @@ class SFTPReadStream implements File {
if (in_array($protocol, stream_get_wrappers(), true)) {
return false;
}
- return stream_wrapper_register($protocol, get_called_class());
+ return stream_wrapper_register($protocol, static::class);
}
/**
diff --git a/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php b/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
index a652a83cb83..042f0de9d19 100644
--- a/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
+++ b/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
@@ -36,7 +36,7 @@ class SFTPWriteStream implements File {
if (in_array($protocol, stream_get_wrappers(), true)) {
return false;
}
- return stream_wrapper_register($protocol, get_called_class());
+ return stream_wrapper_register($protocol, static::class);
}
/**