Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-21 21:07:29 +00:00 committed by StyleCI Bot
parent 4aa9578c4f
commit 5da056eb98

View File

@ -470,7 +470,9 @@ trait UpdateHandler
} }
switch ($update['phone_call']['_']) { switch ($update['phone_call']['_']) {
case 'phoneCallRequested': case 'phoneCallRequested':
if (isset($this->calls[$update['phone_call']['id']])) return; if (isset($this->calls[$update['phone_call']['id']])) {
return;
}
$controller = new \danog\MadelineProto\VoIP(false, $update['phone_call']['admin_id'], ['_' => 'inputPhoneCall', 'id' => $update['phone_call']['id'], 'access_hash' => $update['phone_call']['access_hash']], $this, \danog\MadelineProto\VoIP::CALL_STATE_INCOMING, $update['phone_call']['protocol']); $controller = new \danog\MadelineProto\VoIP(false, $update['phone_call']['admin_id'], ['_' => 'inputPhoneCall', 'id' => $update['phone_call']['id'], 'access_hash' => $update['phone_call']['access_hash']], $this, \danog\MadelineProto\VoIP::CALL_STATE_INCOMING, $update['phone_call']['protocol']);
$controller->storage = ['g_a_hash' => $update['phone_call']['g_a_hash']]; $controller->storage = ['g_a_hash' => $update['phone_call']['g_a_hash']];