mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:14:39 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
ca4eca2049
commit
d536ddb5fd
@ -21,7 +21,7 @@ class Exception extends \Exception
|
||||
return $this->file === 'MadelineProto' ? $this->message : '\danog\MadelineProto\Exception'.($this->message !== '' ? ': ' : '').$this->message.' in '.$this->file.':'.$this->line.PHP_EOL.'TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):'.PHP_EOL.$this->getTLTrace();
|
||||
}
|
||||
|
||||
public function __construct($message = null, $code = 0, Exception $previous = null, $file = null, $line = null)
|
||||
public function __construct($message = null, $code = 0, self $previous = null, $file = null, $line = null)
|
||||
{
|
||||
$this->prettify_tl();
|
||||
if ($file !== null) {
|
||||
|
@ -192,7 +192,6 @@ class MTProto
|
||||
private $emojis;
|
||||
private $postpone_updates = false;
|
||||
|
||||
|
||||
public function ___construct($settings = [])
|
||||
{
|
||||
// Parse settings
|
||||
|
@ -374,6 +374,7 @@ trait ResponseHandler
|
||||
if ($this->postpone_updates) {
|
||||
\danog\MadelineProto\Logger::log(['Postpone update handling'], \danog\MadelineProto\Logger::VERBOSE);
|
||||
$this->pending_updates[] = $updates;
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->handle_pending_updates();
|
||||
|
@ -30,6 +30,7 @@ trait DialogHandler
|
||||
$peers = [];
|
||||
|
||||
$this->postpone_updates = true;
|
||||
|
||||
try {
|
||||
while ($this->dialog_params['count'] < $res['count']) {
|
||||
\danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['getting_dialogs']]);
|
||||
|
Loading…
Reference in New Issue
Block a user