Code Duplication    Length = 10-10 lines in 2 locations

Mapping/DocumentParser.php 2 locations

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