mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:34:41 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
8535df5908
commit
cd87ed8c25
@ -682,6 +682,7 @@ class MTProto extends \Volatile
|
||||
$authorization = $this->method_call('auth.importAuthorization', $exported_authorization, ['datacenter' => $new_dc]);
|
||||
}
|
||||
$this->updates_state['sync_loading'] = false;
|
||||
|
||||
return $authorization;
|
||||
}
|
||||
|
||||
|
@ -132,6 +132,7 @@ trait Login
|
||||
|
||||
return $this->authorization;
|
||||
}
|
||||
|
||||
public function import_authorization($authorization)
|
||||
{
|
||||
if ($this->authorized === self::LOGGED_IN) {
|
||||
@ -152,6 +153,7 @@ trait Login
|
||||
|
||||
$this->authorized = self::LOGGED_IN;
|
||||
$this->init_authorization();
|
||||
|
||||
return $this->authorization = $this->sync_authorization($dc_id);
|
||||
}
|
||||
|
||||
@ -160,6 +162,7 @@ trait Login
|
||||
if ($this->authorized !== self::LOGGED_IN) {
|
||||
throw new \danog\MadelineProto\Exception("I'm not logged in!");
|
||||
}
|
||||
|
||||
return [$this->datacenter->curdc, $this->datacenter->sockets[$this->datacenter->curdc]->auth_key];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user