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

O::on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 10
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 O.
12
 *
13
 * @template NewAType
14
 * @template NewBType
15
 *
16
 * phpcs:disable Generic.Files.LineLength.TooLong
17
 * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact
18
 */
19
final class O extends Combinator
20
{
21
    /**
22
     * @return Closure(callable(callable(NewAType): NewBType): NewAType): Closure(callable(NewAType): (NewBType)): (NewBType)
23
     */
24 2
    public function __invoke(): Closure
25
    {
26
        return
27
            /**
28
             * @param callable(callable(NewAType): NewBType): NewAType $f
29
             *
30
             * @return Closure(callable(NewAType): NewBType): NewBType
31
             */
32
            static function (callable $f): Closure {
33
                return
34
                    /**
35
                     * @param callable(NewAType): NewBType $g
36
                     *
37
                     * @return NewBType
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...
38
                     */
39
                    static function (callable $g) use ($f) {
40 2
                        return ($g)((($f)($g)));
41 2
                    };
42 2
            };
43
    }
44
}
45