Apply fixes from StyleCI
This commit is contained in:
parent
23f2550568
commit
25b7d05c53
|
@ -34,7 +34,9 @@ trait CallHandler
|
||||||
}
|
}
|
||||||
if (isset($args['chat_id']) && $method !== 'messages.discardEncryption' && (is_object($args['chat_id']) || $args['chat_id'] < 0)) {
|
if (isset($args['chat_id']) && $method !== 'messages.discardEncryption' && (is_object($args['chat_id']) || $args['chat_id'] < 0)) {
|
||||||
$res = $this->get_info($args['chat_id']);
|
$res = $this->get_info($args['chat_id']);
|
||||||
if ($res['type'] !== 'chat') throw new \danog\MadelineProto\Exception('chat_id is not a chat id!');
|
if ($res['type'] !== 'chat') {
|
||||||
|
throw new \danog\MadelineProto\Exception('chat_id is not a chat id!');
|
||||||
|
}
|
||||||
$args['chat_id'] = $res['chat_id'];
|
$args['chat_id'] = $res['chat_id'];
|
||||||
}
|
}
|
||||||
$serialized = $this->serialize_method($method, $args);
|
$serialized = $this->serialize_method($method, $args);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user