Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 2 | public function __invoke(): Closure |
|
16 | { |
||
17 | return |
||
18 | /** |
||
19 | * @psalm-suppress MissingClosureReturnType |
||
20 | * @psalm-suppress MissingClosureParamType |
||
21 | * @psalm-suppress MixedArgumentTypeCoercion |
||
22 | * @psalm-suppress ImpureMethodCall |
||
23 | * @psalm-suppress MixedFunctionCall |
||
24 | * @psalm-suppress MixedReturnStatement |
||
25 | */ |
||
26 | static function (callable $f): Closure { |
||
27 | return |
||
28 | 2 | M::of()( |
|
29 | static function (callable $loop) use ($f): Closure { |
||
30 | 2 | return $f( |
|
31 | static function (...$arguments) use ($loop) { |
||
32 | 2 | return M::of()($loop)(...$arguments); |
|
33 | 2 | } |
|
40 |