Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-02-25 12:29:46 +00:00 committed by StyleCI Bot
parent afb15deb9e
commit bfdf38b6d1
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ trait MessageHandler
$this->method_call('http_wait', ['max_wait' => 500, 'wait_after' => 150, 'max_delay' => 500], ['datacenter' => $datacenter]);
} else {
$this->method_call('ping', ['ping_id' => 0], ['datacenter' => $datacenter]);
}
}
}
$payload = $this->datacenter->sockets[$datacenter]->read_message();
if (strlen($payload) === 4) {

View File

@ -361,7 +361,7 @@ trait ResponseHandler
throw new \danog\MadelineProto\Exception('Re-executing query...');
}
default:
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
}