From 564009cda98d1d08714346d6146527926d828d81 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 31 Mar 2017 23:35:07 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/MTProtoTools/Files.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 0e399171d..272d7a2de 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -284,7 +284,7 @@ trait Files $res['bytes'] = $ige->decrypt($res['bytes']); } if ($end !== -1 && strlen($res['bytes']) + $downloaded_size >= $size) { - $res['bytes'] = substr($res['bytes'], 0, $size-$downloaded_size); + $res['bytes'] = substr($res['bytes'], 0, $size - $downloaded_size); $theend = true; } $offset += strlen($res['bytes']); @@ -300,6 +300,7 @@ trait Files if ($end === -1) { $cb(100); } + return true; } }