Code Duplication    Length = 10-10 lines in 3 locations

Mapping/DocumentParser.php 3 locations

@@ 153-162 (lines=10) @@
150
     *
151
     * @return Property|object|null
152
     */
153
    private function getPropertyAnnotationData(\ReflectionProperty $property)
154
    {
155
        $result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION);
156
157
        if ($result !== null && $result->name === null) {
158
            $result->name = Caser::snake($property->getName());
159
        }
160
161
        return $result;
162
    }
163
164
    /**
165
     * Returns Embedded annotation data from reader.
@@ 171-180 (lines=10) @@
168
     *
169
     * @return Embedded|object|null
170
     */
171
    private function getEmbeddedAnnotationData(\ReflectionProperty $property)
172
    {
173
        $result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION);
174
175
        if ($result !== null && $result->name === null) {
176
            $result->name = Caser::snake($property->getName());
177
        }
178
179
        return $result;
180
    }
181
182
    /**
183
     * Returns HashMap annotation data from reader.
@@ 189-198 (lines=10) @@
186
     *
187
     * @return HashMap|object|null
188
     */
189
    private function getHashMapAnnotationData(\ReflectionProperty $property)
190
    {
191
        $result = $this->reader->getPropertyAnnotation($property, self::HASH_MAP_ANNOTATION);
192
193
        if ($result !== null && $result->name === null) {
194
            $result->name = Caser::snake($property->getName());
195
        }
196
197
        return $result;
198
    }
199
200
    /**
201
     * Returns meta field annotation data from reader.