mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 12:35:16 +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();
|
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();
|
$this->prettify_tl();
|
||||||
if ($file !== null) {
|
if ($file !== null) {
|
||||||
|
@ -192,7 +192,6 @@ class MTProto
|
|||||||
private $emojis;
|
private $emojis;
|
||||||
private $postpone_updates = false;
|
private $postpone_updates = false;
|
||||||
|
|
||||||
|
|
||||||
public function ___construct($settings = [])
|
public function ___construct($settings = [])
|
||||||
{
|
{
|
||||||
// Parse settings
|
// Parse settings
|
||||||
|
@ -374,6 +374,7 @@ trait ResponseHandler
|
|||||||
if ($this->postpone_updates) {
|
if ($this->postpone_updates) {
|
||||||
\danog\MadelineProto\Logger::log(['Postpone update handling'], \danog\MadelineProto\Logger::VERBOSE);
|
\danog\MadelineProto\Logger::log(['Postpone update handling'], \danog\MadelineProto\Logger::VERBOSE);
|
||||||
$this->pending_updates[] = $updates;
|
$this->pending_updates[] = $updates;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->handle_pending_updates();
|
$this->handle_pending_updates();
|
||||||
|
@ -30,6 +30,7 @@ trait DialogHandler
|
|||||||
$peers = [];
|
$peers = [];
|
||||||
|
|
||||||
$this->postpone_updates = true;
|
$this->postpone_updates = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
while ($this->dialog_params['count'] < $res['count']) {
|
while ($this->dialog_params['count'] < $res['count']) {
|
||||||
\danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['getting_dialogs']]);
|
\danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['getting_dialogs']]);
|
||||||
|
Loading…
Reference in New Issue
Block a user