1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:19:00 +01:00

Applied fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-11-15 20:43:20 +00:00 committed by StyleCI Bot
parent 417d9343c2
commit 49a555d99f
2 changed files with 12 additions and 4 deletions

View File

@ -79,12 +79,16 @@ class Connection extends Tools
}
}
public function set_time_delta($delta) {
public function set_time_delta($delta)
{
$this->_delta = $delta;
}
public function get_time_delta() {
public function get_time_delta()
{
return $this->_delta;
}
/**
* Function to get hex crc32.
*

View File

@ -73,15 +73,19 @@ class DataCenter extends Tools
if ($dc_number == -1) {
$dc_number = $this->curdc;
}
return $this->sockets[$dc_number]->set_time_delta($delta);
}
}
public function get_time_delta($dc_number = -1)
{
if ($dc_number == -1) {
$dc_number = $this->curdc;
}
return $this->sockets[$dc_number]->get_time_delta();
}
}
public function send_message($message, $dc_number = -1)
{
if ($dc_number == -1) {