Code Duplication    Length = 10-10 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 143-152 (lines=10) @@
140
     *
141
     * @return Property|null
142
     */
143
    private function getPropertyAnnotationData(\ReflectionProperty $property)
144
    {
145
        $result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION);
146
147
        if ($result !== null && $result->name === null) {
148
            $result->name = Caser::snake($property->getName());
149
        }
150
151
        return $result;
152
    }
153
154
    /**
155
     * Returns Embedded annotation data from reader.
@@ 161-170 (lines=10) @@
158
     *
159
     * @return Embedded|null
160
     */
161
    private function getEmbeddedAnnotationData(\ReflectionProperty $property)
162
    {
163
        $result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION);
164
165
        if ($result !== null && $result->name === null) {
166
            $result->name = Caser::snake($property->getName());
167
        }
168
169
        return $result;
170
    }
171
172
    /**
173
     * Returns meta field annotation data from reader.