GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 84c3a7...ff5597 )
by Stan
02:46
created

Start::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Teebot\Bot\Example\Command;
4
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendMessage;
7
use Teebot\Entity\ReplyKeyboardMarkup;
8
use Teebot\Entity\KeyboardButton;
9
10
class Start extends AbstractCommand
11
{
12
    public function run()
13
    {
14
        $sendMessage = (new SendMessage())
15
            ->setText('Hello! I am Multipurpose bot!')
16
            ->setReplyMarkup($this->getKeyboard());
17
18
        $this->reply($sendMessage);
19
    }
20
21
    protected function getKeyboard()
22
    {
23
        $button = (new KeyboardButton())
24
            ->setText('\ud83d\udcb0 /balance');
25
26
        $keyboardMarkup = (new ReplyKeyboardMarkup())
27
            ->setKeyboard([
28
                [$button]
29
            ]);
30
31
        return $keyboardMarkup;
32
    }
33
34
}
35