We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 5 | public function resolve($args, $context, $info, \Closure $mutateAndGetPayloadCallback) |
|
| 31 | { |
||
| 32 | 5 | $input = new Argument($args['input']); |
|
| 33 | |||
| 34 | 5 | return $this->promiseAdapter->createFulfilled($mutateAndGetPayloadCallback($input, $context, $info)) |
|
| 35 | 5 | ->then(function ($payload) use ($input) { |
|
| 36 | 5 | Resolver::setObjectOrArrayValue($payload, 'clientMutationId', $input['clientMutationId']); |
|
| 37 | |||
| 38 | 5 | return $payload; |
|
| 39 | 5 | }); |
|
| 40 | } |
||
| 41 | } |
||
| 42 |