Passed
Push — master ( defd4e...35ff3b )
by Pol
06:10 queued 03:00
created

Ki::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 2
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace loophp\combinator\Combinator;
6
7
use Closure;
8
use loophp\combinator\Combinator;
9
10
/**
11
 * @template NewAType
12
 * @template NewBType
13
 */
14
final class Ki extends Combinator
15
{
16
    /**
17
     * @return Closure(NewAType): Closure(NewBType): NewBType
18
     */
19 2
    public function __invoke(): Closure
20
    {
21
        return
22
            /**
23
             * @param NewAType $x
0 ignored issues
show
Bug introduced by
The type loophp\combinator\Combinator\NewAType 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...
24
             *
25
             * @return Closure(NewBType): NewBType
26
             */
27
            static function ($x): Closure {
28
                return
29
                    /**
30
                     * @param NewBType $y
0 ignored issues
show
Bug introduced by
The type loophp\combinator\Combinator\NewBType 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...
31
                     *
32
                     * @return NewBType
33
                     */
34
                    static function ($y) use ($x) {
0 ignored issues
show
Unused Code introduced by
The import $x is not used and could be removed.

This check looks for imports that have been defined, but are not used in the scope.

Loading history...
35 2
                        return $y;
36 2
                    };
37 2
            };
38
    }
39
}
40