Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-19 19:35:03 +00:00 committed by StyleCI Bot
parent baaf08af80
commit f4155bc3a7

View File

@ -536,15 +536,15 @@ trait BotAPI
$buttons = [];
$cols = 0;
foreach ($button_list as $button) {
if (isset($button['new'])) {
if (count($buttons) == 0) {
$buttons[] = $button;
} else {
$row = ['_' => 'keyboardButtonRow', 'buttons' => $buttons];
$rows[] = $row;
$buttons = [$button];
}
} else {
if (isset($button['new'])) {
if (count($buttons) == 0) {
$buttons[] = $button;
} else {
$row = ['_' => 'keyboardButtonRow', 'buttons' => $buttons];
$rows[] = $row;
$buttons = [$button];
}
} else {
$buttons[] = $button;
$end = true;
}