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 | 59 | public function wrapResolverArgs(callable $resolver): \Closure |
|
| 32 | { |
||
| 33 | return function () use ($resolver) { |
||
| 34 | 41 | $args = \func_get_args(); |
|
| 35 | 41 | if (isset($args[1]) && !$args[1] instanceof ArgumentInterface) { |
|
| 36 | 40 | $args[1] = $this->create($args[1]); |
|
| 37 | } |
||
| 38 | |||
| 39 | 41 | return $resolver(...$args); |
|
| 40 | 59 | }; |
|
| 43 |