Code Duplication    Length = 5-5 lines in 2 locations

src/Type/Definition/InputObjectDefinitionType.php 1 location

@@ 52-56 (lines=5) @@
49
                'fields' => function () {
50
                    return $this->resolveFields();
51
                },
52
                'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) {
53
                    $resolver = new ObjectFieldResolver($this->container, $this->endpoint, $this->definition);
54
55
                    return $resolver($root, $args, $context, $resolveInfo);
56
                },
57
            ]
58
        );
59
    }

src/Type/Definition/ObjectDefinitionType.php 1 location

@@ 55-59 (lines=5) @@
52
                'interfaces' => function () {
53
                    return $this->resolveInterfaces();
54
                },
55
                'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) {
56
                    $resolver = new ObjectFieldResolver($this->container, $this->endpoint, $this->definition);
57
58
                    return $resolver($root, $args, $context, $resolveInfo);
59
                },
60
                'isTypeOf' => function ($value, $context, ResolveInfo $info) {
61
                    //TODO: implement this
62
                },