mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 00:34:40 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
77c8d5d748
commit
87dc456844
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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',
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user