Apply fixes from StyleCI
This commit is contained in:
parent
20e2e43d29
commit
be121c1a53
|
@ -93,6 +93,7 @@ trait MessageHandler
|
||||||
if (strlen($payload) === 4) {
|
if (strlen($payload) === 4) {
|
||||||
$payload = $this->unpack_signed_int($payload);
|
$payload = $this->unpack_signed_int($payload);
|
||||||
\danog\MadelineProto\Logger::log(["Received $payload"], \danog\MadelineProto\Logger::ULTRA_VERBOSE);
|
\danog\MadelineProto\Logger::log(["Received $payload"], \danog\MadelineProto\Logger::ULTRA_VERBOSE);
|
||||||
|
|
||||||
return $payload;
|
return $payload;
|
||||||
}
|
}
|
||||||
$auth_key_id = substr($payload, 0, 8);
|
$auth_key_id = substr($payload, 0, 8);
|
||||||
|
|
|
@ -349,6 +349,7 @@ trait ResponseHandler
|
||||||
$this->authorized = self::NOT_LOGGED_IN;
|
$this->authorized = self::NOT_LOGGED_IN;
|
||||||
$this->authorization = null;
|
$this->authorization = null;
|
||||||
$this->init_authorization();
|
$this->init_authorization();
|
||||||
|
|
||||||
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
|
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
|
||||||
case 'AUTH_KEY_UNREGISTERED':
|
case 'AUTH_KEY_UNREGISTERED':
|
||||||
case 'AUTH_KEY_INVALID':
|
case 'AUTH_KEY_INVALID':
|
||||||
|
@ -370,6 +371,7 @@ trait ResponseHandler
|
||||||
$this->authorized = self::NOT_LOGGED_IN;
|
$this->authorized = self::NOT_LOGGED_IN;
|
||||||
$this->authorization = null;
|
$this->authorization = null;
|
||||||
$this->init_authorization();
|
$this->init_authorization();
|
||||||
|
|
||||||
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
|
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
|
||||||
}
|
}
|
||||||
$this->init_authorization();
|
$this->init_authorization();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user