Apply fixes from StyleCI
This commit is contained in:
parent
e99398ce75
commit
9f2a240d15
@ -323,7 +323,7 @@ trait ResponseHandler
|
|||||||
{
|
{
|
||||||
switch ($server_answer['error_code']) {
|
switch ($server_answer['error_code']) {
|
||||||
case 303:
|
case 303:
|
||||||
$this->datacenter->curdc = $datacenter = (int)preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
$this->datacenter->curdc = $datacenter = (int) preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
||||||
throw new \danog\MadelineProto\Exception('Received request to switch to DC '.$this->datacenter->curdc);
|
throw new \danog\MadelineProto\Exception('Received request to switch to DC '.$this->datacenter->curdc);
|
||||||
case 401:
|
case 401:
|
||||||
switch ($server_answer['error_message']) {
|
switch ($server_answer['error_message']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user