From aa5f037af71c915424c6dcfd5ad2dc82797dc0d6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 23 Nov 2023 10:22:34 +0100 Subject: chore: apply changes from Nextcloud coding standards 1.1.1 Signed-off-by: Joas Schilling Signed-off-by: Benjamin Gaussorgues --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 7 ++----- apps/files_external/lib/Lib/Storage/SFTP.php | 3 +-- apps/files_external/lib/Lib/Storage/Swift.php | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'apps/files_external/lib/Lib/Storage') diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 8e2a6b8ea12..e5fa98313d5 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -39,22 +39,19 @@ */ namespace OCA\Files_External\Lib\Storage; -use Aws\Result; use Aws\S3\Exception\S3Exception; -use Aws\S3\S3Client; use Icewind\Streams\CallbackWrapper; use Icewind\Streams\IteratorDirectory; -use OCP\Cache\CappedMemoryCache; use OC\Files\Cache\CacheEntry; use OC\Files\ObjectStore\S3ConnectionTrait; use OC\Files\ObjectStore\S3ObjectTrait; +use OCP\Cache\CappedMemoryCache; use OCP\Constants; use OCP\Files\FileInfo; use OCP\Files\IMimeTypeDetector; +use OCP\ICache; use OCP\ICacheFactory; -use OCP\IMemcache; use OCP\Server; -use OCP\ICache; use Psr\Log\LoggerInterface; class AmazonS3 extends \OC\Files\Storage\Common { diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index 5c4dcca65ce..3fa04209fa0 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -39,7 +39,6 @@ namespace OCA\Files_External\Lib\Storage; use Icewind\Streams\CountWrapper; use Icewind\Streams\IteratorDirectory; use Icewind\Streams\RetryWrapper; -use OC\Files\Filesystem; use OC\Files\Storage\Common; use OCP\Constants; use OCP\Files\FileInfo; @@ -64,7 +63,7 @@ class SFTP extends Common { protected $client; private IMimeTypeDetector $mimeTypeDetector; - const COPY_CHUNK_SIZE = 8 * 1024 * 1024; + public const COPY_CHUNK_SIZE = 8 * 1024 * 1024; /** * @param string $host protocol://server:port diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index 26e6c5315cb..19c83b29bc8 100644 --- a/apps/files_external/lib/Lib/Storage/Swift.php +++ b/apps/files_external/lib/Lib/Storage/Swift.php @@ -296,7 +296,7 @@ class Swift extends \OC\Files\Storage\Common { $path .= '/'; } -// $path = str_replace('%23', '#', $path); // the prefix is sent as a query param, so revert the encoding of # + // $path = str_replace('%23', '#', $path); // the prefix is sent as a query param, so revert the encoding of # try { $files = []; -- cgit v1.2.3