From: alanmeeson Date: Mon, 30 Aug 2021 12:31:54 +0000 (+0100) Subject: Add type hint to fread_block $blockSize param & apply cs:fix. X-Git-Tag: v23.0.0beta2~19^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=16f70e8647adeb2ab558a603dd79e1d75e5e0dce;p=nextcloud-server.git Add type hint to fread_block $blockSize param & apply cs:fix. Signed-off-by: alanmeeson --- 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; } /**