From 25b7d05c53bd25e54c888c4c07da8d1bab2ade0d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 11 Apr 2017 08:09:42 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/MTProtoTools/CallHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index c57b269a9..0b24eed4d 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -34,7 +34,9 @@ trait CallHandler } if (isset($args['chat_id']) && $method !== 'messages.discardEncryption' && (is_object($args['chat_id']) || $args['chat_id'] < 0)) { $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']; } $serialized = $this->serialize_method($method, $args);