Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-03-01 17:30:49 +00:00 committed by StyleCI Bot
parent 20e2e43d29
commit be121c1a53
3 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,7 @@ trait MessageHandler
if (strlen($payload) === 4) {
$payload = $this->unpack_signed_int($payload);
\danog\MadelineProto\Logger::log(["Received $payload"], \danog\MadelineProto\Logger::ULTRA_VERBOSE);
return $payload;
}
$auth_key_id = substr($payload, 0, 8);

View File

@ -349,6 +349,7 @@ trait ResponseHandler
$this->authorized = self::NOT_LOGGED_IN;
$this->authorization = null;
$this->init_authorization();
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
case 'AUTH_KEY_UNREGISTERED':
case 'AUTH_KEY_INVALID':
@ -370,6 +371,7 @@ trait ResponseHandler
$this->authorized = self::NOT_LOGGED_IN;
$this->authorization = null;
$this->init_authorization();
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
}
$this->init_authorization();