Code Duplication    Length = 14-14 lines in 2 locations

src/Mapping/Guess/DoctrineGuesser.php 2 locations

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