Passed
Push — master ( b665cb...43d909 )
by Shahrad
02:27
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
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TelegramBotTest\Methods\examples\EchoBot;
5
6
use TelegramBot\Entities\Update;
7
use TelegramBotTest\Methods\examples\EchoBot\Plugins\MainPlugin;
0 ignored issues
show
Bug introduced by
The type TelegramBotTest\Methods\...oBot\Plugins\MainPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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
}