Passed
Push — master ( ffd0eb...cd99fb )
by Shahrad
22:25
created

Handler::__process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TelegramBotTest\Examples\EchoBot;
5
6
use TelegramBot\Entities\Update;
7
use TelegramBotTest\Examples\EchoBot\Plugins\MainPlugin;
8
9
class Handler extends \TelegramBot\UpdateHandler
10
{
11
12
    /**
13
     * @inheritDoc
14
     */
15
    public function __process(Update $update): void
16
    {
17
        self::addPlugins([
0 ignored issues
show
Bug Best Practice introduced by
The method TelegramBot\UpdateHandler::addPlugins() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        self::/** @scrutinizer ignore-call */ 
18
              addPlugins([
Loading history...
18
            MainPlugin::class,
19
        ]);
20
    }
21
22
}
23