Applied fixes from StyleCI
This commit is contained in:
parent
700f4ddbdc
commit
607c966462
|
@ -59,6 +59,7 @@ class CallHandler extends AuthKeyHandler
|
||||||
if ($server_answer == null) {
|
if ($server_answer == null) {
|
||||||
throw new Exception('An error occurred while calling method '.$method.'.');
|
throw new Exception('An error occurred while calling method '.$method.'.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $server_answer;
|
return $server_answer;
|
||||||
}
|
}
|
||||||
throw new Exception('An error occurred while calling method '.$method.'.');
|
throw new Exception('An error occurred while calling method '.$method.'.');
|
||||||
|
|
|
@ -41,7 +41,7 @@ class MsgIdHandler extends MessageHandler
|
||||||
if ($container) {
|
if ($container) {
|
||||||
asort($keys);
|
asort($keys);
|
||||||
if ($new_message_id >= end($keys)) {
|
if ($new_message_id >= end($keys)) {
|
||||||
throw new Exception('Given message id ('.$new_message_id.') is bigger than or equal than the current limit ('.end($keys).').');
|
throw new Exception('Given message id ('.$new_message_id.') is bigger than or equal than the current limit ('.end($keys).').');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
asort($keys);
|
asort($keys);
|
||||||
|
|
|
@ -97,6 +97,7 @@ class ResponseHandler extends MsgIdHandler
|
||||||
} else {
|
} else {
|
||||||
$this->check_message_id($message['orig_message']['msg_id'], false, true);
|
$this->check_message_id($message['orig_message']['msg_id'], false, true);
|
||||||
$this->incoming_messages[$message['orig_message']['msg_id']] = ['content' => $response['orig_message']];
|
$this->incoming_messages[$message['orig_message']['msg_id']] = ['content' => $response['orig_message']];
|
||||||
|
|
||||||
return $this->handle_message($last_sent, $message['orig_message']['msg_id']);
|
return $this->handle_message($last_sent, $message['orig_message']['msg_id']);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -106,6 +107,7 @@ class ResponseHandler extends MsgIdHandler
|
||||||
break;
|
break;
|
||||||
case 'gzip_packed':
|
case 'gzip_packed':
|
||||||
$this->incoming_messages[$last_received]['content'] = gzdecode($response);
|
$this->incoming_messages[$last_received]['content'] = gzdecode($response);
|
||||||
|
|
||||||
return $this->handle_message($last_sent, $last_received);
|
return $this->handle_message($last_sent, $last_received);
|
||||||
break;
|
break;
|
||||||
case 'rpc_answer_dropped_running':
|
case 'rpc_answer_dropped_running':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user