Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function __invoke() |
|
38 | { |
||
39 | 1 | $callable = $this->f; |
|
40 | 1 | ||
41 | /** |
||
42 | 1 | * @psalm-suppress MissingClosureReturnType |
|
43 | * |
||
44 | 1 | * @param callable $f |
|
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | $f = static function (callable $f) use ($callable) { |
||
49 | return $callable( |
||
50 | 1 | /** |
|
51 | * @psalm-suppress MissingClosureParamType |
||
52 | * |
||
53 | 1 | * @param array $arguments |
|
54 | 1 | */ |
|
55 | static function (...$arguments) use ($f) { |
||
56 | return $f($f)(...$arguments); |
||
57 | } |
||
58 | ); |
||
59 | }; |
||
60 | |||
61 | return $f($f); |
||
62 | } |
||
64 |