Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-03-03 14:43:14 +00:00 committed by StyleCI Bot
parent 606e55d8c6
commit d019befcb3

View File

@ -562,6 +562,7 @@ trait PeerHandler
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
} catch (\danog\MadelineProto\RPCErrorException $e) {
\danog\MadelineProto\Logger::log('Username resolution failed with error '.$e->getMessage(), \danog\MadelineProto\Logger::ERROR);
return false;
}
if ($res['_'] === 'contacts.resolvedPeer') {