@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function __construct(string $endpoint, array $registeredEndpoints) |
19 | 19 | { |
20 | - $message = sprintf( |
|
20 | + $message = sprintf( |
|
21 | 21 | '"%s" is not a valid configured endpoint, use one of the following endpoints: [%s]', |
22 | 22 | $endpoint, |
23 | 23 | implode($registeredEndpoints, ',') |
@@ -46,10 +46,10 @@ |
||
46 | 46 | [ |
47 | 47 | 'name' => $definition->getName(), |
48 | 48 | 'description' => $definition->getDescription(), |
49 | - 'fields' => function () use ($definition) { |
|
49 | + 'fields' => function() use ($definition) { |
|
50 | 50 | return GraphQLBuilder::resolveFields($definition); |
51 | 51 | }, |
52 | - 'resolveField' => function ($root, array $args, QueryExecutionContext $context, ResolveInfo $resolveInfo) use ($definition) { |
|
52 | + 'resolveField' => function($root, array $args, QueryExecutionContext $context, ResolveInfo $resolveInfo) use ($definition) { |
|
53 | 53 | $resolver = new ObjectFieldResolver($this->container); |
54 | 54 | |
55 | 55 | return $resolver($root, $args, new FieldExecutionContext($context, $definition), $resolveInfo); |
@@ -32,13 +32,13 @@ |
||
32 | 32 | [ |
33 | 33 | 'name' => $definition->getName(), |
34 | 34 | 'description' => $definition->getDescription(), |
35 | - 'fields' => function () use ($definition) { |
|
35 | + 'fields' => function() use ($definition) { |
|
36 | 36 | return GraphQLBuilder::resolveFields($definition); |
37 | 37 | }, |
38 | - 'interfaces' => function () use ($definition) { |
|
38 | + 'interfaces' => function() use ($definition) { |
|
39 | 39 | return $this->resolveInterfaces($definition); |
40 | 40 | }, |
41 | - 'resolveField' => function ($root, array $args, QueryExecutionContext $context, ResolveInfo $resolveInfo) use ($definition) { |
|
41 | + 'resolveField' => function($root, array $args, QueryExecutionContext $context, ResolveInfo $resolveInfo) use ($definition) { |
|
42 | 42 | $resolver = new ObjectFieldResolver($this->container); |
43 | 43 | |
44 | 44 | return $resolver($root, $args, new FieldExecutionContext($context, $definition), $resolveInfo); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $event->setValue( |
60 | 60 | new Deferred( |
61 | - function () use ($value) { |
|
61 | + function() use ($value) { |
|
62 | 62 | $this->deferredBuffer->loadBuffer(); |
63 | 63 | |
64 | 64 | return $this->deferredBuffer->getLoadedEntity($value); |