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.

Code Duplication    Length = 15-15 lines in 5 locations

Bot/Example/Command/Audio.php 1 location

@@ 8-22 (lines=15) @@
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendAudio;
7
8
class Audio extends AbstractCommand
9
{
10
    public function run()
11
    {
12
        $audio = '/var/www/html/audio.mp3';
13
14
        $args = [
15
            'chat_id' => $this->getChatId(),
16
            'audio'   => $audio
17
        ];
18
19
        $method = new SendAudio($args);
20
        $method->trigger();
21
    }
22
}
23

Bot/Example/Command/Document.php 1 location

@@ 8-22 (lines=15) @@
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendDocument;
7
8
class Document extends AbstractCommand
9
{
10
    public function run()
11
    {
12
        $document = '/var/www/html/document.pdf';
13
14
        $args = [
15
            'chat_id'  => $this->getChatId(),
16
            'document' => $document
17
        ];
18
19
        $method = new SendDocument($args);
20
        $method->trigger();
21
    }
22
}
23

Bot/Example/Command/Sticker.php 1 location

@@ 8-22 (lines=15) @@
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendSticker;
7
8
class Sticker extends AbstractCommand
9
{
10
    public function run()
11
    {
12
        $sticker = '/var/www/html/sticker.webp';
13
14
        $args = [
15
            'chat_id' => $this->getChatId(),
16
            'sticker' => $sticker
17
        ];
18
19
        $method = new SendSticker($args);
20
        $method->trigger();
21
    }
22
}
23

Bot/Example/Command/Video.php 1 location

@@ 8-22 (lines=15) @@
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendVideo;
7
8
class Video extends AbstractCommand
9
{
10
    public function run()
11
    {
12
        $video = '/var/www/html/video.mp4';
13
14
        $args = [
15
            'chat_id' => $this->getChatId(),
16
            'video'  => $video
17
        ];
18
19
        $method = new SendVideo($args);
20
        $method->trigger();
21
    }
22
}
23

Bot/Example/Command/Voice.php 1 location

@@ 8-22 (lines=15) @@
5
use Teebot\Command\AbstractCommand;
6
use Teebot\Method\SendVoice;
7
8
class Voice extends AbstractCommand
9
{
10
    public function run()
11
    {
12
        $voice = '/var/www/html/voice.ogg';
13
14
        $args = [
15
            'chat_id' => $this->getChatId(),
16
            'voice'   => $voice
17
        ];
18
19
        $method = new SendVoice($args);
20
        $method->trigger();
21
    }
22
}
23