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:
parent
417d9343c2
commit
49a555d99f
@ -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.
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user