From 6e6005759acc49b9dc0e0e553a2612a722fd628c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 5 Feb 2017 11:01:46 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/Wrappers/FilesHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Wrappers/FilesHandler.php b/src/danog/MadelineProto/Wrappers/FilesHandler.php index 6787a3d1..09190e5f 100644 --- a/src/danog/MadelineProto/Wrappers/FilesHandler.php +++ b/src/danog/MadelineProto/Wrappers/FilesHandler.php @@ -552,7 +552,9 @@ trait FilesHandler $size = $end - $offset; $part_size = 512 * 1024; $percent = 0; - if (isset($info['InputFileLocation']['dc_id'])) $this->API->switch_dc($info['InputFileLocation']['dc_id']); + if (isset($info['InputFileLocation']['dc_id'])) { + $this->API->switch_dc($info['InputFileLocation']['dc_id']); + } while ($percent < 100) { $real_part_size = ($offset + $part_size > $end) ? $part_size - (($offset + $part_size) - $end) : $part_size;