Apply fixes from StyleCI
This commit is contained in:
parent
ce4df5a10d
commit
cd0ca879e7
@ -495,7 +495,11 @@ trait UpdateHandler
|
|||||||
{
|
{
|
||||||
$payload = json_encode($this->utf8ize($update));
|
$payload = json_encode($this->utf8ize($update));
|
||||||
\danog\MadelineProto\Logger::log([$update, $payload, json_last_error()]);
|
\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();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_URL, $this->hook_url);
|
curl_setopt($ch, CURLOPT_URL, $this->hook_url);
|
||||||
|
Loading…
Reference in New Issue
Block a user