Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-03-25 02:22:48 +00:00 committed by StyleCI Bot
parent e99398ce75
commit 9f2a240d15

View File

@ -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']) {