Code Duplication    Length = 14-14 lines in 2 locations

src/Mapping/Guesser/DoctrineGuesser.php 2 locations

@@ 88-101 (lines=14) @@
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function guessFieldResolveConfig(FieldContext $fieldContext)
89
    {
90
        if (!$this->isFieldContainerSupported($fieldContext)) {
91
            return;
92
        }
93
94
        /** @var Type $type */
95
        $type = $fieldContext->getContainer();
96
97
        return new ResolveConfigGuess([
98
            'handler' => 'doctrine',
99
            'entity'  => $type->getModel(),
100
        ]);
101
    }
102
103
    /**
104
     * {@inheritdoc}
@@ 106-119 (lines=14) @@
103
    /**
104
     * {@inheritdoc}
105
     */
106
    public function guessTypeResolveConfig(ContainerContext $containerContext)
107
    {
108
        if (!$this->isFieldContainerSupported($containerContext)) {
109
            return;
110
        }
111
112
        /** @var Type $type */
113
        $type = $containerContext->getContainer();
114
115
        return new ResolveConfigGuess([
116
            'handler' => 'doctrine',
117
            'entity'  => $type->getModel(),
118
        ]);
119
    }
120
121
    /**
122
     * @param ClassMetadataInfo $metadata