Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-11-08 10:42:06 +00:00 committed by StyleCI Bot
parent ca4eca2049
commit d536ddb5fd
4 changed files with 3 additions and 2 deletions

View File

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

View File

@ -192,7 +192,6 @@ class MTProto
private $emojis;
private $postpone_updates = false;
public function ___construct($settings = [])
{
// Parse settings

View File

@ -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();

View File

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