diff --git a/src/danog/MadelineProto/Logger.php b/src/danog/MadelineProto/Logger.php index c8e7b2251..8ae656193 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 e2ac16d21..2092d7a65 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 bb40d97c0..2414ed187 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 c5e72eeea..9eddb9854 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(); } }