Applied fixes from StyleCI
This commit is contained in:
parent
b4f4fa5fb2
commit
3177d57fdd
|
@ -142,12 +142,13 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
|||
$value = $this->seq_no;
|
||||
$this->seq_no += $in;
|
||||
var_dump((($value * 2) + $in));
|
||||
return (($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]]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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