]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add type hint to fread_block $blockSize param & apply cs:fix. 28389/head
authoralanmeeson <alan@carefullycalculated.co.uk>
Mon, 30 Aug 2021 12:31:54 +0000 (13:31 +0100)
committerAlan Meeson <alan@carefullycalculated.co.uk>
Sat, 23 Oct 2021 14:11:23 +0000 (15:11 +0100)
Signed-off-by: alanmeeson <alan@carefullycalculated.co.uk>
lib/private/Files/Storage/Wrapper/Encryption.php

index 745568142bbc487b6350208e386e202befe369f0..308952c2a31b62b6310b58404d7b75e8bf79dfce 100644 (file)
@@ -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;
        }
 
        /**