mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:34:42 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
bec41ebd61
commit
564009cda9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user