Code Duplication    Length = 5-5 lines in 2 locations

lib/Doctrine/ORM/Mapping/Driver/NewAnnotationDriver.php 2 locations

@@ 874-878 (lines=5) @@
871
        }
872
873
        // Check for OrderBy
874
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {
875
            $orderByAnnot = $propertyAnnotations[Annotation\OrderBy::class];
876
877
            $assocMetadata->setOrderBy($orderByAnnot->value);
878
        }
879
880
        // Check for Id
881
        if (isset($propertyAnnotations[Annotation\Id::class])) {
@@ 951-955 (lines=5) @@
948
        }
949
950
        // Check for OrderBy
951
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {
952
            $orderByAnnot = $propertyAnnotations[Annotation\OrderBy::class];
953
954
            $assocMetadata->setOrderBy($orderByAnnot->value);
955
        }
956
957
        // Check for Id
958
        if (isset($propertyAnnotations[Annotation\Id::class])) {