@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $errors = $this->validate($schema); |
| 51 | 51 | |
| 52 | 52 | if (!empty($errors)) { |
| 53 | - $message = \implode("\n", \array_map(function (SchemaValidationException $error) { |
|
| 53 | + $message = \implode("\n", \array_map(function(SchemaValidationException $error) { |
|
| 54 | 54 | return $error->getMessage(); |
| 55 | 55 | }, $errors)); |
| 56 | 56 | |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | // Assert each interface field arg is implemented. |
| 317 | 317 | foreach ($interfaceField->getArguments() as $interfaceArgument) { |
| 318 | 318 | $argumentName = $interfaceArgument->getName(); |
| 319 | - $objectArgument = find($objectField->getArguments(), function (Argument $argument) use ($argumentName) { |
|
| 319 | + $objectArgument = find($objectField->getArguments(), function(Argument $argument) use ($argumentName) { |
|
| 320 | 320 | return $argument->getName() === $argumentName; |
| 321 | 321 | }); |
| 322 | 322 | |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | $argumentName = $objectArgument->getName(); |
| 376 | 376 | $interfaceArgument = find( |
| 377 | 377 | $interfaceField->getArguments(), |
| 378 | - function (Argument $argument) use ($argumentName) { |
|
| 378 | + function(Argument $argument) use ($argumentName) { |
|
| 379 | 379 | return $argument->getName() === $argumentName; |
| 380 | 380 | } |
| 381 | 381 | ); |
@@ -714,7 +714,7 @@ discard block |
||
| 714 | 714 | return null; |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | - return \array_filter($node->getTypes(), function (NamedTypeNode $type) use ($memberTypeName) { |
|
| 717 | + return \array_filter($node->getTypes(), function(NamedTypeNode $type) use ($memberTypeName) { |
|
| 718 | 718 | return $type->getNameValue() === $memberTypeName; |
| 719 | 719 | }); |
| 720 | 720 | } |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | return null; |
| 734 | 734 | } |
| 735 | 735 | |
| 736 | - return \array_filter($node->getValues(), function (NameAwareInterface $type) use ($valueName) { |
|
| 736 | + return \array_filter($node->getValues(), function(NameAwareInterface $type) use ($valueName) { |
|
| 737 | 737 | return $type->getNameValue() === $valueName; |
| 738 | 738 | }); |
| 739 | 739 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** @var OperationTypeDefinitionNode $operationTypeNode */ |
| 90 | 90 | $operationTypeNode = find( |
| 91 | 91 | $node->getOperationTypes(), |
| 92 | - function (OperationTypeDefinitionNode $operationType) use ($operation) { |
|
| 92 | + function(OperationTypeDefinitionNode $operationType) use ($operation) { |
|
| 93 | 93 | return $operationType->getOperation() === $operation; |
| 94 | 94 | } |
| 95 | 95 | ); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | public function getExtendedTypes(): array |
| 169 | 169 | { |
| 170 | 170 | return \array_merge( |
| 171 | - \array_map(function ($type) { |
|
| 171 | + \array_map(function($type) { |
|
| 172 | 172 | return $this->getExtendedType($type); |
| 173 | 173 | }, \array_values($this->schema->getTypeMap())), |
| 174 | 174 | $this->definitionBuilder->buildTypes(\array_values($this->typeDefinitionMap)) |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | return \array_merge( |
| 189 | 189 | $existingDirectives, |
| 190 | - \array_map(function (DirectiveDefinitionNode $node) { |
|
| 190 | + \array_map(function(DirectiveDefinitionNode $node) { |
|
| 191 | 191 | return $this->definitionBuilder->buildDirective($node); |
| 192 | 192 | }, $this->directiveDefinitions) |
| 193 | 193 | ); |
@@ -403,10 +403,10 @@ discard block |
||
| 403 | 403 | return newObjectType([ |
| 404 | 404 | 'name' => $typeName, |
| 405 | 405 | 'description' => $type->getDescription(), |
| 406 | - 'interfaces' => function () use ($type) { |
|
| 406 | + 'interfaces' => function() use ($type) { |
|
| 407 | 407 | return $this->extendImplementedInterfaces($type); |
| 408 | 408 | }, |
| 409 | - 'fields' => function () use ($type) { |
|
| 409 | + 'fields' => function() use ($type) { |
|
| 410 | 410 | return $this->extendFieldMap($type); |
| 411 | 411 | }, |
| 412 | 412 | 'astNode' => $type->getAstNode(), |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | return newInterfaceType([ |
| 434 | 434 | 'name' => $typeName, |
| 435 | 435 | 'description' => $type->getDescription(), |
| 436 | - 'fields' => function () use ($type) { |
|
| 436 | + 'fields' => function() use ($type) { |
|
| 437 | 437 | return $this->extendFieldMap($type); |
| 438 | 438 | }, |
| 439 | 439 | 'astNode' => $type->getAstNode(), |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | return newUnionType([ |
| 453 | 453 | 'name' => $type->getName(), |
| 454 | 454 | 'description' => $type->getDescription(), |
| 455 | - 'types' => \array_map(function ($unionType) { |
|
| 455 | + 'types' => \array_map(function($unionType) { |
|
| 456 | 456 | return $this->getExtendedType($unionType); |
| 457 | 457 | }, $type->getTypes()), |
| 458 | 458 | 'astNode' => $type->getAstNode(), |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | */ |
| 468 | 468 | protected function extendImplementedInterfaces(ObjectType $type): array |
| 469 | 469 | { |
| 470 | - $interfaces = \array_map(function (InterfaceType $interface) { |
|
| 470 | + $interfaces = \array_map(function(InterfaceType $interface) { |
|
| 471 | 471 | return $this->getExtendedType($interface); |
| 472 | 472 | }, $type->getInterfaces()); |
| 473 | 473 | |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | 'description' => $field->getDescription(), |
| 510 | 510 | 'deprecationReason' => $field->getDeprecationReason(), |
| 511 | 511 | 'type' => $this->extendFieldType($field->getType()), |
| 512 | - 'args' => keyMap($field->getArguments(), function (Argument $argument) { |
|
| 512 | + 'args' => keyMap($field->getArguments(), function(Argument $argument) { |
|
| 513 | 513 | return $argument->getName(); |
| 514 | 514 | }), |
| 515 | 515 | 'astNode' => $field->getAstNode(), |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | $builtInTypes = keyMap( |
| 97 | 97 | \array_merge(specifiedScalarTypes(), introspectionTypes()), |
| 98 | - function (NamedTypeInterface $type) { |
|
| 98 | + function(NamedTypeInterface $type) { |
|
| 99 | 99 | return $type->getName(); |
| 100 | 100 | } |
| 101 | 101 | ); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function buildTypes(array $nodes): array |
| 112 | 112 | { |
| 113 | - return \array_map(function (NodeInterface $node) { |
|
| 113 | + return \array_map(function(NodeInterface $node) { |
|
| 114 | 114 | return $this->buildType($node); |
| 115 | 115 | }, $nodes); |
| 116 | 116 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | return newDirective([ |
| 147 | 147 | 'name' => $node->getNameValue(), |
| 148 | 148 | 'description' => $node->getDescriptionValue(), |
| 149 | - 'locations' => \array_map(function (NameNode $node) { |
|
| 149 | + 'locations' => \array_map(function(NameNode $node) { |
|
| 150 | 150 | return $node->getValue(); |
| 151 | 151 | }, $node->getLocations()), |
| 152 | 152 | 'args' => $node->hasArguments() ? $this->buildArguments($node->getArguments()) : [], |
@@ -190,10 +190,10 @@ discard block |
||
| 190 | 190 | { |
| 191 | 191 | return keyValueMap( |
| 192 | 192 | $nodes, |
| 193 | - function (InputValueDefinitionNode $value) { |
|
| 193 | + function(InputValueDefinitionNode $value) { |
|
| 194 | 194 | return $value->getNameValue(); |
| 195 | 195 | }, |
| 196 | - function (InputValueDefinitionNode $value): array { |
|
| 196 | + function(InputValueDefinitionNode $value): array { |
|
| 197 | 197 | $type = $this->buildWrappedType($value->getType()); |
| 198 | 198 | $defaultValue = $value->getDefaultValue(); |
| 199 | 199 | return [ |
@@ -245,11 +245,11 @@ discard block |
||
| 245 | 245 | return newObjectType([ |
| 246 | 246 | 'name' => $node->getNameValue(), |
| 247 | 247 | 'description' => $node->getDescriptionValue(), |
| 248 | - 'fields' => function () use ($node) { |
|
| 248 | + 'fields' => function() use ($node) { |
|
| 249 | 249 | return $this->buildFields($node); |
| 250 | 250 | }, |
| 251 | - 'interfaces' => function () use ($node) { |
|
| 252 | - return $node->hasInterfaces() ? \array_map(function (NodeInterface $interface) { |
|
| 251 | + 'interfaces' => function() use ($node) { |
|
| 252 | + return $node->hasInterfaces() ? \array_map(function(NodeInterface $interface) { |
|
| 253 | 253 | return $this->buildType($interface); |
| 254 | 254 | }, $node->getInterfaces()) : []; |
| 255 | 255 | }, |
@@ -265,11 +265,11 @@ discard block |
||
| 265 | 265 | { |
| 266 | 266 | return $node->hasFields() ? keyValueMap( |
| 267 | 267 | $node->getFields(), |
| 268 | - function ($value) { |
|
| 268 | + function($value) { |
|
| 269 | 269 | /** @var FieldDefinitionNode|InputValueDefinitionNode $value */ |
| 270 | 270 | return $value->getNameValue(); |
| 271 | 271 | }, |
| 272 | - function ($value) use ($node) { |
|
| 272 | + function($value) use ($node) { |
|
| 273 | 273 | /** @var FieldDefinitionNode|InputValueDefinitionNode $value */ |
| 274 | 274 | return $this->buildField( |
| 275 | 275 | $value, |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | return newInterfaceType([ |
| 289 | 289 | 'name' => $node->getNameValue(), |
| 290 | 290 | 'description' => $node->getDescriptionValue(), |
| 291 | - 'fields' => function () use ($node): array { |
|
| 291 | + 'fields' => function() use ($node): array { |
|
| 292 | 292 | return $this->buildFields($node); |
| 293 | 293 | }, |
| 294 | 294 | 'astNode' => $node, |
@@ -306,10 +306,10 @@ discard block |
||
| 306 | 306 | 'description' => $node->getDescriptionValue(), |
| 307 | 307 | 'values' => $node->hasValues() ? keyValueMap( |
| 308 | 308 | $node->getValues(), |
| 309 | - function (EnumValueDefinitionNode $value): string { |
|
| 309 | + function(EnumValueDefinitionNode $value): string { |
|
| 310 | 310 | return $value->getNameValue(); |
| 311 | 311 | }, |
| 312 | - function (EnumValueDefinitionNode $value): array { |
|
| 312 | + function(EnumValueDefinitionNode $value): array { |
|
| 313 | 313 | return [ |
| 314 | 314 | 'description' => $value->getDescriptionValue(), |
| 315 | 315 | 'deprecationReason' => $this->getDeprecationReason($value), |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | return newUnionType([ |
| 331 | 331 | 'name' => $node->getNameValue(), |
| 332 | 332 | 'description' => $node->getDescriptionValue(), |
| 333 | - 'types' => $node->hasTypes() ? \array_map(function (TypeNodeInterface $type) { |
|
| 333 | + 'types' => $node->hasTypes() ? \array_map(function(TypeNodeInterface $type) { |
|
| 334 | 334 | return $this->buildType($type); |
| 335 | 335 | }, $node->getTypes()) : [], |
| 336 | 336 | 'astNode' => $node, |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | return newScalarType([ |
| 347 | 347 | 'name' => $node->getNameValue(), |
| 348 | 348 | 'description' => $node->getDescriptionValue(), |
| 349 | - 'serialize' => function ($value) { |
|
| 349 | + 'serialize' => function($value) { |
|
| 350 | 350 | return $value; |
| 351 | 351 | }, |
| 352 | 352 | 'astNode' => $node, |
@@ -362,13 +362,13 @@ discard block |
||
| 362 | 362 | return newInputObjectType([ |
| 363 | 363 | 'name' => $node->getNameValue(), |
| 364 | 364 | 'description' => $node->getDescriptionValue(), |
| 365 | - 'fields' => $node->hasFields() ? function () use ($node) { |
|
| 365 | + 'fields' => $node->hasFields() ? function() use ($node) { |
|
| 366 | 366 | return keyValueMap( |
| 367 | 367 | $node->getFields(), |
| 368 | - function (InputValueDefinitionNode $value): string { |
|
| 368 | + function(InputValueDefinitionNode $value): string { |
|
| 369 | 369 | return $value->getNameValue(); |
| 370 | 370 | }, |
| 371 | - function (InputValueDefinitionNode $value): array { |
|
| 371 | + function(InputValueDefinitionNode $value): array { |
|
| 372 | 372 | $type = $this->buildWrappedType($value->getType()); |
| 373 | 373 | $defaultValue = $value->getDefaultValue(); |
| 374 | 374 | return [ |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function register() |
| 28 | 28 | { |
| 29 | - $this->container->add(GraphQL::INCLUDE_DIRECTIVE, function () { |
|
| 29 | + $this->container->add(GraphQL::INCLUDE_DIRECTIVE, function() { |
|
| 30 | 30 | return newDirective([ |
| 31 | 31 | 'name' => 'include', |
| 32 | 32 | 'description' => |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | ]); |
| 47 | 47 | }, true/* $shared */); |
| 48 | 48 | |
| 49 | - $this->container->add(GraphQL::SKIP_DIRECTIVE, function () { |
|
| 49 | + $this->container->add(GraphQL::SKIP_DIRECTIVE, function() { |
|
| 50 | 50 | return newDirective([ |
| 51 | 51 | 'name' => 'skip', |
| 52 | 52 | 'description' => |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | ]); |
| 67 | 67 | }, true/* $shared */); |
| 68 | 68 | |
| 69 | - $this->container->add(GraphQL::DEPRECATED_DIRECTIVE, function () { |
|
| 69 | + $this->container->add(GraphQL::DEPRECATED_DIRECTIVE, function() { |
|
| 70 | 70 | return newDirective([ |
| 71 | 71 | 'name' => 'deprecated', |
| 72 | 72 | 'description' => 'Marks an element of a GraphQL schema as no longer supported.', |
@@ -33,17 +33,17 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function register() |
| 35 | 35 | { |
| 36 | - $this->container->add(GraphQL::BOOLEAN, function (BooleanCoercer $coercer) { |
|
| 36 | + $this->container->add(GraphQL::BOOLEAN, function(BooleanCoercer $coercer) { |
|
| 37 | 37 | return newScalarType([ |
| 38 | 38 | 'name' => TypeNameEnum::BOOLEAN, |
| 39 | 39 | 'description' => 'The `Boolean` scalar type represents `true` or `false`.', |
| 40 | - 'serialize' => function ($value) use ($coercer) { |
|
| 40 | + 'serialize' => function($value) use ($coercer) { |
|
| 41 | 41 | return $coercer->coerce($value); |
| 42 | 42 | }, |
| 43 | - 'parseValue' => function ($value) use ($coercer) { |
|
| 43 | + 'parseValue' => function($value) use ($coercer) { |
|
| 44 | 44 | return $coercer->coerce($value); |
| 45 | 45 | }, |
| 46 | - 'parseLiteral' => function (NodeInterface $node) { |
|
| 46 | + 'parseLiteral' => function(NodeInterface $node) { |
|
| 47 | 47 | if ($node instanceof BooleanValueNode) { |
| 48 | 48 | return $node->getValue(); |
| 49 | 49 | } |
@@ -53,20 +53,20 @@ discard block |
||
| 53 | 53 | }, true/* $shared */) |
| 54 | 54 | ->withArgument(BooleanCoercer::class); |
| 55 | 55 | |
| 56 | - $this->container->add(GraphQL::FLOAT, function (FloatCoercer $coercer) { |
|
| 56 | + $this->container->add(GraphQL::FLOAT, function(FloatCoercer $coercer) { |
|
| 57 | 57 | return newScalarType([ |
| 58 | 58 | 'name' => TypeNameEnum::FLOAT, |
| 59 | 59 | 'description' => |
| 60 | 60 | 'The `Float` scalar type represents signed double-precision fractional ' . |
| 61 | 61 | 'values as specified by ' . |
| 62 | 62 | '[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).', |
| 63 | - 'serialize' => function ($value) use ($coercer) { |
|
| 63 | + 'serialize' => function($value) use ($coercer) { |
|
| 64 | 64 | return $coercer->coerce($value); |
| 65 | 65 | }, |
| 66 | - 'parseValue' => function ($value) use ($coercer) { |
|
| 66 | + 'parseValue' => function($value) use ($coercer) { |
|
| 67 | 67 | return $coercer->coerce($value); |
| 68 | 68 | }, |
| 69 | - 'parseLiteral' => function (NodeInterface $node) { |
|
| 69 | + 'parseLiteral' => function(NodeInterface $node) { |
|
| 70 | 70 | if ($node instanceof FloatValueNode || $node instanceof IntValueNode) { |
| 71 | 71 | return $node->getValue(); |
| 72 | 72 | } |
@@ -76,19 +76,19 @@ discard block |
||
| 76 | 76 | }, true/* $shared */) |
| 77 | 77 | ->withArgument(FloatCoercer::class); |
| 78 | 78 | |
| 79 | - $this->container->add(GraphQL::INT, function (IntCoercer $coercer) { |
|
| 79 | + $this->container->add(GraphQL::INT, function(IntCoercer $coercer) { |
|
| 80 | 80 | return newScalarType([ |
| 81 | 81 | 'name' => TypeNameEnum::INT, |
| 82 | 82 | 'description' => |
| 83 | 83 | 'The `Int` scalar type represents non-fractional signed whole numeric ' . |
| 84 | 84 | 'values. Int can represent values between -(2^31) and 2^31 - 1.', |
| 85 | - 'serialize' => function ($value) use ($coercer) { |
|
| 85 | + 'serialize' => function($value) use ($coercer) { |
|
| 86 | 86 | return $coercer->coerce($value); |
| 87 | 87 | }, |
| 88 | - 'parseValue' => function ($value) use ($coercer) { |
|
| 88 | + 'parseValue' => function($value) use ($coercer) { |
|
| 89 | 89 | return $coercer->coerce($value); |
| 90 | 90 | }, |
| 91 | - 'parseLiteral' => function (NodeInterface $node) { |
|
| 91 | + 'parseLiteral' => function(NodeInterface $node) { |
|
| 92 | 92 | if ($node instanceof IntValueNode) { |
| 93 | 93 | $value = (int)$node->getValue(); |
| 94 | 94 | if ((string)$node->getValue() === (string)$value && |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | }, true/* $shared */) |
| 103 | 103 | ->withArgument(IntCoercer::class); |
| 104 | 104 | |
| 105 | - $this->container->add(GraphQL::ID, function (StringCoercer $coercer) { |
|
| 105 | + $this->container->add(GraphQL::ID, function(StringCoercer $coercer) { |
|
| 106 | 106 | return newScalarType([ |
| 107 | 107 | 'name' => TypeNameEnum::ID, |
| 108 | 108 | 'description' => |
@@ -111,13 +111,13 @@ discard block |
||
| 111 | 111 | 'response as a String; however, it is not intended to be human-readable. ' . |
| 112 | 112 | 'When expected as an input type, any string (such as `"4"`) or integer ' . |
| 113 | 113 | '(such as `4`) input value will be accepted as an ID.', |
| 114 | - 'serialize' => function ($value) use ($coercer) { |
|
| 114 | + 'serialize' => function($value) use ($coercer) { |
|
| 115 | 115 | return $coercer->coerce($value); |
| 116 | 116 | }, |
| 117 | - 'parseValue' => function ($value) use ($coercer) { |
|
| 117 | + 'parseValue' => function($value) use ($coercer) { |
|
| 118 | 118 | return $coercer->coerce($value); |
| 119 | 119 | }, |
| 120 | - 'parseLiteral' => function (NodeInterface $node) { |
|
| 120 | + 'parseLiteral' => function(NodeInterface $node) { |
|
| 121 | 121 | if ($node instanceof StringValueNode || $node instanceof IntValueNode) { |
| 122 | 122 | return $node->getValue(); |
| 123 | 123 | } |
@@ -127,20 +127,20 @@ discard block |
||
| 127 | 127 | }, true/* $shared */) |
| 128 | 128 | ->withArgument(StringCoercer::class); |
| 129 | 129 | |
| 130 | - $this->container->add(GraphQL::STRING, function (StringCoercer $coercer) { |
|
| 130 | + $this->container->add(GraphQL::STRING, function(StringCoercer $coercer) { |
|
| 131 | 131 | return newScalarType([ |
| 132 | 132 | 'name' => TypeNameEnum::STRING, |
| 133 | 133 | 'description' => |
| 134 | 134 | 'The `String` scalar type represents textual data, represented as UTF-8 ' . |
| 135 | 135 | 'character sequences. The String type is most often used by GraphQL to ' . |
| 136 | 136 | 'represent free-form human-readable text.', |
| 137 | - 'serialize' => function ($value) use ($coercer) { |
|
| 137 | + 'serialize' => function($value) use ($coercer) { |
|
| 138 | 138 | return $coercer->coerce($value); |
| 139 | 139 | }, |
| 140 | - 'parseValue' => function ($value) use ($coercer) { |
|
| 140 | + 'parseValue' => function($value) use ($coercer) { |
|
| 141 | 141 | return $coercer->coerce($value); |
| 142 | 142 | }, |
| 143 | - 'parseLiteral' => function (NodeInterface $node) { |
|
| 143 | + 'parseLiteral' => function(NodeInterface $node) { |
|
| 144 | 144 | if ($node instanceof StringValueNode) { |
| 145 | 145 | return $node->getValue(); |
| 146 | 146 | } |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | return false; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - return arrayEvery($argumentsA, function (ArgumentNode $argumentA) use ($argumentsB) { |
|
| 40 | - $argumentB = find($argumentsB, function (ArgumentNode $argument) use ($argumentA) { |
|
| 39 | + return arrayEvery($argumentsA, function(ArgumentNode $argumentA) use ($argumentsB) { |
|
| 40 | + $argumentB = find($argumentsB, function(ArgumentNode $argument) use ($argumentA) { |
|
| 41 | 41 | return $argument->getNameValue() === $argumentA->getNameValue(); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | $resolvedValues = []; |
| 206 | 206 | |
| 207 | 207 | /** @var ObjectFieldNode[] $fieldNodes */ |
| 208 | - $fieldNodes = keyMap($node->getFields(), function (ObjectFieldNode $value) { |
|
| 208 | + $fieldNodes = keyMap($node->getFields(), function(ObjectFieldNode $value) { |
|
| 209 | 209 | return $value->getNameValue(); |
| 210 | 210 | }); |
| 211 | 211 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $context = $this->createContext($schema, $document, $typeInfo); |
| 48 | 48 | |
| 49 | - $visitors = \array_map(function (RuleInterface $rule) use ($context) { |
|
| 49 | + $visitors = \array_map(function(RuleInterface $rule) use ($context) { |
|
| 50 | 50 | return $rule->setContext($context); |
| 51 | 51 | }, $rules); |
| 52 | 52 | |