Completed
Push — master ( 186982...2975e7 )
by Rafael
05:12
created
src/Resolver/DeferredBuffer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
             $repo = $this->registry->getRepository($class);
79 79
             $qb = $repo->createQueryBuilder('o', 'o.id');
80 80
             $entities = $qb->where($qb->expr()->in('o.id', array_values($ids)))
81
-                           ->getQuery()
82
-                           ->getResult();
81
+                            ->getQuery()
82
+                            ->getResult();
83 83
             foreach ($entities as $entity) {
84 84
                 if ($entity instanceof NodeInterface) {
85 85
                     self::$deferred[$class][$entity->getId()] = $entity;
Please login to merge, or discard this patch.
src/Extension/EndpointNotValidException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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, ',')
Please login to merge, or discard this patch.
src/Type/Definition/InputObjectDefinitionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Type/Definition/ObjectDefinitionType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/EventListener/GraphQL/NodeDeferredListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.