Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-02-05 01:03:18 +00:00 committed by StyleCI Bot
parent 8a88dc8650
commit af0cf569db
2 changed files with 5 additions and 3 deletions

View File

@ -430,7 +430,9 @@ trait PeerHandler
$res['participants'][$key] = $newres;
}
$gres = $this->method_call('channels.getParticipants', ['channel' => $full['InputChannel'], 'filter' => ['_' => 'channelParticipantsRecent'], 'offset' => $offset += $limit, 'limit' => $limit]);
if (empty($gres['participants'])) break;
if (empty($gres['participants'])) {
break;
}
}
}
if ($fullfetch || $send) {

View File

@ -451,11 +451,11 @@ trait UpdateHandler
}
if ($channel === false) {
foreach ($updates as $update) {
$this->handle_update($update, $options);
$this->handle_update($update, $options);
}
} else {
foreach ($updates as $update) {
$this->handle_update($update);
$this->handle_update($update);
}
}
}