Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-04-19 17:18:31 +00:00 committed by StyleCI Bot
parent dd6f8afc68
commit 8aae939d7d
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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");
}