1 | <?php |
||
2 | |||
3 | namespace CSlant\LaravelTelegramGitNotifier\Traits; |
||
4 | |||
5 | use Telegram; |
||
6 | |||
7 | trait Markup |
||
8 | { |
||
9 | /** |
||
10 | * Generate menu markup. |
||
11 | * |
||
12 | * @param Telegram $telegram |
||
13 | * @return array<string[]> |
||
14 | */ |
||
15 | public function menuMarkup(Telegram $telegram): array |
||
16 | { |
||
17 | return [ |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
18 | [ |
||
19 | $telegram->buildInlineKeyBoardButton('🗨 '.__('tg-notifier::tools/menu.discussion'), config('telegram-git-notifier.author.discussion')), |
||
20 | ], [ |
||
21 | $telegram->buildInlineKeyBoardButton('💠'.__('tg-notifier::tools/menu.source_code'), config('telegram-git-notifier.author.source_code')), |
||
22 | ], |
||
23 | ]; |
||
24 | } |
||
25 | } |
||
26 |