Apply fixes from StyleCI
This commit is contained in:
parent
dd6f8afc68
commit
8aae939d7d
@ -353,6 +353,7 @@ trait Files
|
||||
};
|
||||
}
|
||||
$message_media = $this->get_download_info($message_media);
|
||||
|
||||
try {
|
||||
if (stream_get_meta_data($stream)['seekable']) {
|
||||
fseek($stream, $offset);
|
||||
|
@ -282,7 +282,9 @@ trait TL
|
||||
|
||||
return $concat;
|
||||
case 'bytes':
|
||||
if (is_array($object) && isset($object['_']) && $object['_'] === 'bytes') $object = base64_decode($object['bytes']);
|
||||
if (is_array($object) && isset($object['_']) && $object['_'] === 'bytes') {
|
||||
$object = base64_decode($object['bytes']);
|
||||
}
|
||||
if (!is_string($object) && !$object instanceof \danog\MadelineProto\TL\Types\Bytes) {
|
||||
throw new Exception("You didn't provide a valid string");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user