Skip to content

Commit

Permalink
Add type hint to fread_block $blockSize param & apply cs:fix.
Browse files Browse the repository at this point in the history
Signed-off-by: alanmeeson <alan@carefullycalculated.co.uk>
  • Loading branch information
alanmeeson committed Aug 30, 2021
1 parent 00518ca commit 323fc5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ protected function fixUnencryptedSize($path, $size, $unencryptedSize) {
* @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 = '';

Expand All @@ -623,7 +623,7 @@ private function fread_block($handle, $blockSize): string {
$remaining -= $chunk_len;
} while (($remaining > 0) && ($chunk_len > 0));

return $data;
return $data;
}

/**
Expand Down

0 comments on commit 323fc5a

Please sign in to comment.