Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-12-28 12:26:50 +00:00 committed by StyleCI Bot
parent 2754acdca2
commit 96d01a118c

View File

@ -704,7 +704,9 @@ class MTProto
public function sync_authorization($id)
{
if (!isset($this->datacenter->sockets[$id])) return false;
if (!isset($this->datacenter->sockets[$id])) {
return false;
}
$socket = $this->datacenter->sockets[$id];
if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) {
foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) {