Applied fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-09-14 21:10:55 +00:00 committed by StyleCI Bot
parent 700f4ddbdc
commit 607c966462
3 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,7 @@ class CallHandler extends AuthKeyHandler
if ($server_answer == null) {
throw new Exception('An error occurred while calling method '.$method.'.');
}
return $server_answer;
}
throw new Exception('An error occurred while calling method '.$method.'.');

View File

@ -41,7 +41,7 @@ class MsgIdHandler extends MessageHandler
if ($container) {
asort($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 {
asort($keys);

View File

@ -97,6 +97,7 @@ class ResponseHandler extends MsgIdHandler
} else {
$this->check_message_id($message['orig_message']['msg_id'], false, true);
$this->incoming_messages[$message['orig_message']['msg_id']] = ['content' => $response['orig_message']];
return $this->handle_message($last_sent, $message['orig_message']['msg_id']);
}
break;
@ -106,6 +107,7 @@ class ResponseHandler extends MsgIdHandler
break;
case 'gzip_packed':
$this->incoming_messages[$last_received]['content'] = gzdecode($response);
return $this->handle_message($last_sent, $last_received);
break;
case 'rpc_answer_dropped_running':