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

Handler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __process() 0 4 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