Passed
Push — main ( d7cb78...b591cd )
by Tan
03:13 queued 43s
created

Markup   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 4
c 2
b 1
f 1
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A menuMarkup() 0 7 1
1
<?php
2
3
namespace CSlant\LaravelTelegramGitNotifier\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(__('tg-notifier::tools/menu.discussion'), config('telegram-git-notifier.author.discussion')),
19
            ], [
20
                $telegram->buildInlineKeyBoardButton(__('tg-notifier::tools/menu.source_code'), config('telegram-git-notifier.author.source_code')),
21
            ],
22
        ];
23
    }
24
}
25