| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 85 | public static function on(callable $a): Closure |
||
| 86 | { |
||
| 87 | return static function ($b) use ($a): Closure { |
||
| 88 | return static function (callable $c) use ($a, $b): Closure { |
||
| 89 | return static function ($d) use ($a, $b, $c): Closure { |
||
| 90 | return static function ($e) use ($a, $b, $c, $d) { |
||
| 91 | return (new self($a, $b, $c, $d, $e))(); |
||
| 92 | }; |
||
| 98 |