1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 05:54:41 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-11-29 13:35:11 +00:00 committed by StyleCI Bot
parent c62d8cc069
commit e2eb4bf07b

View File

@ -44,14 +44,14 @@ class CallHandler extends AuthKeyHandler
break;
case 401:
switch ($response['error_message']) {
case "AUTH_KEY_UNREGISTERED":
case "AUTH_KEY_INVALID":
case 'AUTH_KEY_UNREGISTERED':
case 'AUTH_KEY_INVALID':
unset($this->datacenter->temp_auth_key);
unset($this->datacenter->auth_key);
$this->init_authorization();
case "USER_DEACTIVATED":
case "SESSION_REVOKED":
case "SESSION_EXPIRED":
case 'USER_DEACTIVATED':
case 'SESSION_REVOKED':
case 'SESSION_EXPIRED':
$this->datacenter->authorized = false;
$this->datacenter->authorization = null;
throw new \danog\MadelineProto\RPCErrorException($response['error_message'], $response['error_code']);