Applied fixes from StyleCI
This commit is contained in:
parent
b4f4fa5fb2
commit
3177d57fdd
|
@ -141,13 +141,14 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
|||
$in = $content_related ? 1 : 0;
|
||||
$value = $this->seq_no;
|
||||
$this->seq_no += $in;
|
||||
var_dump((($value*2)+ $in));
|
||||
return (($value*2) + $in);
|
||||
var_dump((($value * 2) + $in));
|
||||
|
||||
return ($value * 2) + $in;
|
||||
}
|
||||
|
||||
public function anknowledge($msg_id)
|
||||
{
|
||||
return $this->send_message($this->tl->serialize_obj("msgs_ack", ["msg_ids" => [$msg_id]]));
|
||||
return $this->send_message($this->tl->serialize_obj('msgs_ack', ['msg_ids' => [$msg_id]]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -241,7 +242,7 @@ var_dump((($value*2)+ $in));
|
|||
{
|
||||
foreach (range(1, $this->settings['max_tries']['query']) as $i) {
|
||||
try {
|
||||
var_dump($method);
|
||||
var_dump($method);
|
||||
$this->send_message($this->tl->serialize_method($method, $kwargs));
|
||||
$server_answer = $this->recv_message();
|
||||
} catch (Exception $e) {
|
||||
|
|
|
@ -17,10 +17,10 @@ class TL
|
|||
public function __construct($filename)
|
||||
{
|
||||
if (is_array($filename)) {
|
||||
$TL_dict = ["constructors" => [], "methods" => []];
|
||||
$TL_dict = ['constructors' => [], 'methods' => []];
|
||||
foreach ($filename as $file) {
|
||||
$TL_dict["constructors"] = array_merge(json_decode(file_get_contents($file), true)["constructors"], $TL_dict["constructors"]);
|
||||
$TL_dict["methods"] = array_merge(json_decode(file_get_contents($file), true)["methods"], $TL_dict["methods"]);
|
||||
$TL_dict['constructors'] = array_merge(json_decode(file_get_contents($file), true)['constructors'], $TL_dict['constructors']);
|
||||
$TL_dict['methods'] = array_merge(json_decode(file_get_contents($file), true)['methods'], $TL_dict['methods']);
|
||||
}
|
||||
} else {
|
||||
$TL_dict = json_decode(file_get_contents($file), true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user