diff --git a/src/danog/MadelineProto/Logger.php b/src/danog/MadelineProto/Logger.php index c8e7b225..8ae65619 100644 --- a/src/danog/MadelineProto/Logger.php +++ b/src/danog/MadelineProto/Logger.php @@ -39,8 +39,9 @@ class Logger self::$has_thread = class_exists('\Thread') && method_exists('\Thread', 'getCurrentThread'); self::$BIG_ENDIAN = (pack('L', 1) === pack('N', 1)); self::$bigint = PHP_INT_SIZE < 8; - if (class_exists('\danog\MadelineProto\VoIP')) \Threaded::extend('\danog\MadelineProto\VoIP'); - + if (class_exists('\danog\MadelineProto\VoIP')) { + \Threaded::extend('\danog\MadelineProto\VoIP'); + } } /* diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index e2ac16d2..2092d7a6 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -67,7 +67,7 @@ class MTProto extends \Volatile 'messages.requestEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats', 'phone.requestCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls', - 'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls', + 'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls', 'phone.confirmCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls', 'phone.discardCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls', diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index bb40d97c..2414ed18 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -170,7 +170,6 @@ trait AuthKeyHandler \danog\MadelineProto\Logger::log(['Discarding call '.$call.'...'], \danog\MadelineProto\Logger::VERBOSE); //var_dump(debug_backtrace(0)[0]); - if (isset($this->calls[$call])) { if (isset($this->calls[$call]['InputPhoneCall'])) { try { diff --git a/tests/testing.php b/tests/testing.php index c5e72eee..9eddb985 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -100,10 +100,11 @@ class pony extends \danog\MadelineProto\VoIP { return 0; } - public function debug($state) { - var_dump("DEBUG $state"); flush(); - - + + public function debug($state) + { + var_dump("DEBUG $state"); + flush(); } }