Passed
Push — main ( df35b1...fc5716 )
by Tan
02:29
created

Markup::createButtonRow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
The expression return array(array($tele...author.source_code')))) returns the type array<integer,array<inte...,array<string,string>>> which is incompatible with the documented return type array<mixed,string[]>.
Loading history...
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