Apply fixes from StyleCI
This commit is contained in:
parent
71986cf536
commit
cceab5c56b
@ -46,7 +46,7 @@ trait AuthKeyHandler
|
|||||||
|
|
||||||
public function accept_call($params)
|
public function accept_call($params)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
if ($this->settings['calls']['accept_calls'] === false) {
|
if ($this->settings['calls']['accept_calls'] === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ trait AuthKeyHandler
|
|||||||
$key['fingerprint'] = substr(sha1($key['auth_key'], true), -8);
|
$key['fingerprint'] = substr(sha1($key['auth_key'], true), -8);
|
||||||
//var_dump($params['key_fingerprint'], $key['fingerprint']);
|
//var_dump($params['key_fingerprint'], $key['fingerprint']);
|
||||||
if ($key['fingerprint'] != $params['key_fingerprint']) {
|
if ($key['fingerprint'] != $params['key_fingerprint']) {
|
||||||
// throw new \danog\MadelineProto\SecurityException('Invalid key fingerprint!');
|
// throw new \danog\MadelineProto\SecurityException('Invalid key fingerprint!');
|
||||||
}
|
}
|
||||||
$key['visualization'] = '';
|
$key['visualization'] = '';
|
||||||
$length = new \phpseclib\Math\BigInteger(count(self::EMOJIS));
|
$length = new \phpseclib\Math\BigInteger(count(self::EMOJIS));
|
||||||
|
Loading…
Reference in New Issue
Block a user