Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralanmeeson <alan@carefullycalculated.co.uk>2021-08-30 15:31:54 +0300
committerAlan Meeson <alan@carefullycalculated.co.uk>2021-10-23 17:11:23 +0300
commit16f70e8647adeb2ab558a603dd79e1d75e5e0dce (patch)
tree7665ddffc78f4e9685437879bced403b2732d449 /lib/private/Files/Storage
parent44c332a46ef3b7d0b97039cad62840f7c8b9c82f (diff)
Add type hint to fread_block $blockSize param & apply cs:fix.
Signed-off-by: alanmeeson <alan@carefullycalculated.co.uk>
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/Wrapper/Encryption.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php
index 745568142bb..308952c2a31 100644
--- a/lib/private/Files/Storage/Wrapper/Encryption.php
+++ b/lib/private/Files/Storage/Wrapper/Encryption.php
@@ -612,7 +612,7 @@ class Encryption extends Wrapper {
* @param int $blockSize Length of requested data block in bytes
* @return string Data fetched from stream.
*/
- private function fread_block($handle, $blockSize): string {
+ private function fread_block($handle, int $blockSize): string {
$remaining = $blockSize;
$data = '';
@@ -623,7 +623,7 @@ class Encryption extends Wrapper {
$remaining -= $chunk_len;
} while (($remaining > 0) && ($chunk_len > 0));
- return $data;
+ return $data;
}
/**