Markup::menuMarkup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace CSlant\TelegramGitNotifierApp\Traits;
4
5
use Telegram;
6
7
trait Markup
8
{
9
    /**
10
     * Generate menu markup
11
     *
12
     * @return array[]
13
     */
14
    public function menuMarkup(Telegram $telegram): array
15
    {
16
        return [
17
            [
18
                $telegram->buildInlineKeyBoardButton('🗨 Discussion', config('telegram-git-notifier.author.discussion')),
19
            ], [
20
                $telegram->buildInlineKeyBoardButton('💠 Source Code', config('telegram-git-notifier.author.source_code')),
21
            ],
22
        ];
23
    }
24
}
25