Apply fixes from StyleCI
This commit is contained in:
parent
f0939e3725
commit
c0e4afc646
@ -578,10 +578,13 @@ trait PeerHandler
|
||||
{
|
||||
try {
|
||||
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) { return false; }
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
return false;
|
||||
}
|
||||
if ($res['_'] === 'contacts.resolvedPeer') {
|
||||
return $res;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user