mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:34:41 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
ed099be65c
commit
f254284630
@ -490,7 +490,9 @@ trait UpdateHandler
|
||||
break;
|
||||
|
||||
case 'phoneCallDiscarded':
|
||||
if (!isset($this->calls[$update['phone_call']['id']])) return;
|
||||
if (!isset($this->calls[$update['phone_call']['id']])) {
|
||||
return;
|
||||
}
|
||||
($update['phone_call'] = $this->calls[$update['phone_call']['id']])->discard(['_' => 'phoneCallDiscardReasonHangup'], [], $update['phone_call']['need_debug']);
|
||||
break;
|
||||
}
|
||||
|
@ -70,7 +70,6 @@ trait AuthKeyHandler
|
||||
});
|
||||
if ($this->call_status($params['id']) !== \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) {
|
||||
throw new \danog\MadelineProto\Exception('I cannot accept call '.$params['id']);
|
||||
|
||||
return false;
|
||||
}
|
||||
\danog\MadelineProto\Logger::log(['Accepting call from '.$this->calls[$params['id']]->getOtherID().'...'], \danog\MadelineProto\Logger::VERBOSE);
|
||||
@ -101,6 +100,7 @@ trait AuthKeyHandler
|
||||
});
|
||||
if ($this->call_status($params['id']) !== \danog\MadelineProto\VoIP::CALL_STATE_REQUESTED) {
|
||||
\danog\MadelineProto\Logger::log(['Could not find and confirm call '.$params['id']]);
|
||||
|
||||
return false;
|
||||
}
|
||||
\danog\MadelineProto\Logger::log(['Confirming call from '.$this->calls[$params['id']]->getOtherID().'...'], \danog\MadelineProto\Logger::VERBOSE);
|
||||
|
Loading…
Reference in New Issue
Block a user