Code Duplication    Length = 7-7 lines in 2 locations

src/Metadata/Property/Factory/AnnotationPropertyMetadataFactory.php 1 location

@@ 58-64 (lines=7) @@
55
            return $this->handleNotFound($parentPropertyMetadata, $resourceClass, $property);
56
        }
57
58
        if ($reflectionClass->hasProperty($property)) {
59
            $annotation = $this->reader->getPropertyAnnotation($reflectionClass->getProperty($property), ApiProperty::class);
60
61
            if (null !== $annotation) {
62
                return $this->createMetadata($annotation, $parentPropertyMetadata);
63
            }
64
        }
65
66
        foreach (array_merge(Reflection::ACCESSOR_PREFIXES, Reflection::MUTATOR_PREFIXES) as $prefix) {
67
            $methodName = $prefix.ucfirst($property);

src/Metadata/Property/Factory/AnnotationSubresourceMetadataFactory.php 1 location

@@ 51-57 (lines=7) @@
48
            return $propertyMetadata;
49
        }
50
51
        if ($reflectionClass->hasProperty($property)) {
52
            $annotation = $this->reader->getPropertyAnnotation($reflectionClass->getProperty($property), ApiSubresource::class);
53
54
            if (null !== $annotation) {
55
                return $this->updateMetadata($annotation, $propertyMetadata);
56
            }
57
        }
58
59
        foreach (array_merge(Reflection::ACCESSOR_PREFIXES, Reflection::MUTATOR_PREFIXES) as $prefix) {
60
            $methodName = $prefix.ucfirst($property);