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

D::on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 1
dl 0
loc 24
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
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
 * Class D.
12
 *
13
 * @template NewAType
14
 * @template NewBType
15
 * @template NewCType
16
 * @template NewDType
17
 *
18
 * phpcs:disable Generic.Files.LineLength.TooLong
19
 * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact
20
 */
21
final class D extends Combinator
22
{
23
    /**
24
     * @return Closure(callable(NewAType): Closure(NewCType): NewDType): Closure(NewAType): Closure(callable(NewBType): NewCType): Closure(NewBType): NewDType
25
     */
26 2
    public function __invoke(): Closure
27
    {
28
        return
29
            /**
30
             * @param callable(NewAType): Closure(NewCType): NewDType $f
31
             *
32
             * @return Closure(NewAType): Closure(callable(NewBType): NewCType): Closure(NewBType): NewDType
33
             */
34
            static function (callable $f): Closure {
35
                return
36
                    /**
37
                     * @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...
38
                     *
39
                     * @return Closure(callable(NewBType): NewCType): Closure(NewBType): NewDType
40
                     */
41
                    static function ($x) use ($f): Closure {
42
                        return
43
                            /**
44
                             * @param callable(NewBType): NewCType $g
45
                             *
46
                             * @return Closure(NewBType): NewDType
47
                             */
48
                            static function (callable $g) use ($f, $x): Closure {
49
                                return
50
                                    /**
51
                                     * @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...
52
                                     *
53
                                     * @return NewDType
0 ignored issues
show
Bug introduced by
The type loophp\combinator\Combinator\NewDType 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...
54
                                     */
55
                                    static function ($y) use ($f, $x, $g) {
56 2
                                        return (($f)($x))(($g)($y));
57 2
                                    };
58 2
                            };
59 2
                    };
60 2
            };
61
    }
62
}
63