Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-11-30 10:36:00 +00:00 committed by StyleCI Bot
parent 521bd45737
commit a4b6640223

View File

@ -294,7 +294,7 @@ class MTProto
// Detect ipv6 // Detect ipv6
$oldipv6 = $this->ipv6; $oldipv6 = $this->ipv6;
$this->ipv6 = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0; $this->ipv6 = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0;
if ($oldipv6 !== $this->ipv6) { if ($oldipv6 !== $this->ipv6) {
$this->settings['connection_settings']['all']['ipv6'] = $this->ipv6; $this->settings['connection_settings']['all']['ipv6'] = $this->ipv6;
$this->parse_settings($this->settings); $this->parse_settings($this->settings);