Code Duplication    Length = 10-10 lines in 2 locations

Mapping/DocumentParser.php 2 locations

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