Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-02-02 15:16:04 +00:00 committed by StyleCI Bot
parent ce4df5a10d
commit cd0ca879e7

View File

@ -495,7 +495,11 @@ trait UpdateHandler
{
$payload = json_encode($this->utf8ize($update));
\danog\MadelineProto\Logger::log([$update, $payload, json_last_error()]);
if ($payload === '') { \danog\MadelineProto\Logger::log(['EMPTY UPDATE']); return false; }
if ($payload === '') {
\danog\MadelineProto\Logger::log(['EMPTY UPDATE']);
return false;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $this->hook_url);