Router::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Router modifier
4
 * User: moyo
5
 * Date: 2019-01-23
6
 * Time: 11:01
7
 */
8
9
namespace Carno\HRPC\Accel\Modifier;
10
11
use Carno\HRPC\Accel\Routing;
12
use Carno\HRPC\Client\Contracts\Modify;
0 ignored issues
show
Bug introduced by
The type Carno\HRPC\Client\Contracts\Modify 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...
13
use Carno\HRPC\Client\Endpoints;
0 ignored issues
show
Bug introduced by
The type Carno\HRPC\Client\Endpoints 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...
14
15
class Router implements Modify
16
{
17
    /**
18
     * @param Endpoints $eps
19
     */
20
    public function handle(Endpoints $eps) : void
21
    {
22
        $eps->routing()->typeset()->extend(new Routing);
23
    }
24
}
25