Apply fixes from StyleCI
This commit is contained in:
parent
2012a3e1dd
commit
251adef8ce
|
@ -38,7 +38,9 @@ trait CallHandler
|
||||||
$this->recv_message(); // This method receives data from the socket, and parses stuff
|
$this->recv_message(); // This method receives data from the socket, and parses stuff
|
||||||
|
|
||||||
if (!isset($this->datacenter->outgoing_messages[$int_message_id]['response']) || !isset($this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'])) { // Checks if I have received the response to the called method, if not continue looping
|
if (!isset($this->datacenter->outgoing_messages[$int_message_id]['response']) || !isset($this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'])) { // Checks if I have received the response to the called method, if not continue looping
|
||||||
if ($this->only_updates) $res_count--;
|
if ($this->only_updates) {
|
||||||
|
$res_count--;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$server_answer = $this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content']; // continue was not called, so I got a response
|
$server_answer = $this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content']; // continue was not called, so I got a response
|
||||||
|
|
|
@ -183,6 +183,7 @@ trait UpdateHandler
|
||||||
case 'updateEditChannelMessage':
|
case 'updateEditChannelMessage':
|
||||||
if ($update['message']['_'] == 'messageEmpty') {
|
if ($update['message']['_'] == 'messageEmpty') {
|
||||||
\danog\MadelineProto\Logger::log('Got message empty, not saving');
|
\danog\MadelineProto\Logger::log('Got message empty, not saving');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$channel_id = $update['message']['to_id']['channel_id'];
|
$channel_id = $update['message']['to_id']['channel_id'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user