We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
31 | 89 | public function wrapResolverArgs(callable $resolver): \Closure |
|
32 | { |
||
33 | return function () use ($resolver) { |
||
34 | 64 | $args = \func_get_args(); |
|
35 | 64 | if (isset($args[1]) && !$args[1] instanceof ArgumentInterface) { |
|
36 | 63 | $args[1] = $this->create($args[1]); |
|
37 | } |
||
38 | |||
39 | 64 | return $resolver(...$args); |
|
40 | 89 | }; |
|
43 |