Applied fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-08-22 13:19:28 +00:00 committed by StyleCI Bot
parent b4f4fa5fb2
commit 3177d57fdd
2 changed files with 118 additions and 117 deletions

View File

@ -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) {

View File

@ -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);