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

E::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 38
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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