public function formatChoices($choices, $shortcuts)
{
if (count($shortcuts) > 0) {
$shortcuts = array_flip($shortcuts);
foreach ($shortcuts as $choice => $shortcut) {
$shortcuts[$choice] = '<info>' . $shortcut . '</info>';
}
foreach ($choices as $pos => $choice) {
$choices[$pos] = '[' . $shortcuts[$choice] . '] ' . $choice;
}
}
$text = ' ' . implode(PHP_EOL . ' ', $choices);
return $text . "\nYour choice";
}