Apply fixes from StyleCI
This commit is contained in:
parent
af4f6d37b8
commit
1c616b8e99
@ -24,6 +24,7 @@ class DataCenter extends \Volatile
|
||||
public $curdc = 0;
|
||||
public $dclist = [];
|
||||
public $settings = [];
|
||||
|
||||
/*
|
||||
public $i = [];
|
||||
public function __get($name) {
|
||||
|
@ -706,7 +706,9 @@ class MTProto extends \Volatile
|
||||
$id .= $dc['media_only'] ? '_media' : '';
|
||||
$ipv6 = ($dc['ipv6'] ? 'ipv6' : 'ipv4');
|
||||
$id .= (isset($this->settings['connection'][$test][$ipv6][$id]) && $this->settings['connection'][$test][$ipv6][$id]['ip_address'] != $dc['ip_address']) ? '_bk' : '';
|
||||
if (is_numeric($id)) $id = (int)$id;
|
||||
if (is_numeric($id)) {
|
||||
$id = (int) $id;
|
||||
}
|
||||
$this->settings['connection'][$test][$ipv6][$id] = $dc;
|
||||
}
|
||||
$this->datacenter->__construct($this->settings['connection'], $this->settings['connection_settings']);
|
||||
|
Loading…
Reference in New Issue
Block a user