Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-12-31 11:32:15 +00:00 committed by StyleCI Bot
parent ad9591c71b
commit 396261a25b
2 changed files with 3 additions and 2 deletions

View File

@ -187,9 +187,9 @@ trait PeerHandler
if ($constructor['self']) {
$res['InputPeer'] = ['_' => 'inputPeerSelf'];
$res['InputUser'] = ['_' => 'inputUserSelf'];
} else if (isset($constructor['access_hash'])) {
} elseif (isset($constructor['access_hash'])) {
$res['InputPeer'] = ['_' => 'inputPeerUser', 'user_id' => $constructor['id'], 'access_hash' => $constructor['access_hash']];
$res['InputUser'] = ['_' => 'inputUser', 'user_id' => $constructor['id'], 'access_hash' => $constructor['access_hash']];
$res['InputUser'] = ['_' => 'inputUser', 'user_id' => $constructor['id'], 'access_hash' => $constructor['access_hash']];
}
$res['Peer'] = ['_' => 'peerUser', 'user_id' => $constructor['id']];
$res['user_id'] = $constructor['id'];

View File

@ -203,6 +203,7 @@ trait UpdateHandler
if ($cur_state['sync_loading']) {
\danog\MadelineProto\Logger::log('Sync loading, not handling update');
return false;
}