mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 13:54:39 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
56ae262738
commit
13c65940c1
@ -35,7 +35,11 @@ class DataCenter extends \Volatile
|
||||
$this->dclist = $dclist;
|
||||
$this->settings = $settings;
|
||||
foreach ($this->sockets as $key => $socket) {
|
||||
if ($socket instanceof Connection) $socket->close_and_reopen(); else unset($this->sockets[$key]);
|
||||
if ($socket instanceof Connection) {
|
||||
$socket->close_and_reopen();
|
||||
} else {
|
||||
unset($this->sockets[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -247,7 +247,9 @@ class MTProto extends \Volatile
|
||||
$this->should_serialize = true;
|
||||
}
|
||||
} catch (RPCErrorException $e) {
|
||||
if ($e->rpc !== "BOT_METHOD_INVALID") throw $e;
|
||||
if ($e->rpc !== 'BOT_METHOD_INVALID') {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->get_config([], ['datacenter' => $this->datacenter->curdc]);
|
||||
|
Loading…
Reference in New Issue
Block a user