We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 16-40 (lines=25) @@ | ||
| 13 | ||
| 14 | use Overblog\GraphQLBundle\Definition\Builder\MappingInterface; |
|
| 15 | ||
| 16 | class InputDefinition implements MappingInterface |
|
| 17 | { |
|
| 18 | public function toMappingDefinition(array $config) |
|
| 19 | { |
|
| 20 | $name = $config['name']; |
|
| 21 | $name = preg_replace('/(.*)?Input$/', '$1', $name).'Input'; |
|
| 22 | ||
| 23 | $inputFields = empty($config['fields']) || !is_array($config['fields']) ? [] : $config['fields']; |
|
| 24 | ||
| 25 | return [ |
|
| 26 | $name => [ |
|
| 27 | 'type' => 'input-object', |
|
| 28 | 'config' => [ |
|
| 29 | 'name' => $name, |
|
| 30 | 'fields' => array_merge( |
|
| 31 | $inputFields, |
|
| 32 | [ |
|
| 33 | 'clientMutationId' => ['type' => 'String!'], |
|
| 34 | ] |
|
| 35 | ), |
|
| 36 | ], |
|
| 37 | ], |
|
| 38 | ]; |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| @@ 16-39 (lines=24) @@ | ||
| 13 | ||
| 14 | use Overblog\GraphQLBundle\Definition\Builder\MappingInterface; |
|
| 15 | ||
| 16 | class PayloadDefinition implements MappingInterface |
|
| 17 | { |
|
| 18 | public function toMappingDefinition(array $config) |
|
| 19 | { |
|
| 20 | $name = $config['name']; |
|
| 21 | $name = preg_replace('/(.*)?Payload$/', '$1', $name).'Payload'; |
|
| 22 | $outputFields = empty($config['fields']) || !is_array($config['fields']) ? [] : $config['fields']; |
|
| 23 | ||
| 24 | return [ |
|
| 25 | $name => [ |
|
| 26 | 'type' => 'object', |
|
| 27 | 'config' => [ |
|
| 28 | 'name' => $name, |
|
| 29 | 'fields' => array_merge( |
|
| 30 | $outputFields, |
|
| 31 | [ |
|
| 32 | 'clientMutationId' => ['type' => 'String!'], |
|
| 33 | ] |
|
| 34 | ), |
|
| 35 | ], |
|
| 36 | ], |
|
| 37 | ]; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||