Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function __invoke() |
|
38 | { |
||
39 | 1 | $callable = $this->f; |
|
40 | |||
41 | $f = static function (callable $f) use ($callable): Closure { |
||
42 | 1 | return $callable( |
|
43 | static function (...$arguments) use ($f) { |
||
44 | 1 | return M::with()($f)(...$arguments); |
|
45 | 1 | } |
|
46 | ); |
||
47 | 1 | }; |
|
48 | |||
49 | 1 | return M::with()($f); |
|
50 | } |
||
62 |