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 | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function __invoke($args, $context, $info, \Closure $mutateAndGetPayloadCallback) |
||
| 33 | { |
||
| 34 | $input = new Argument($args['input']); |
||
| 35 | |||
| 36 | return $this->promiseAdapter->createFulfilled($mutateAndGetPayloadCallback($input, $context, $info)) |
||
| 37 | ->then(function ($payload) use ($input) { |
||
| 38 | Resolver::setObjectOrArrayValue($payload, 'clientMutationId', $input['clientMutationId']); |
||
| 39 | |||
| 40 | return $payload; |
||
| 41 | }); |
||
| 42 | } |
||
| 43 | |||
| 52 |