Code Duplication    Length = 5-5 lines in 4 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])) {

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

@@ 944-948 (lines=5) @@
941
        }
942
943
        // Check for OrderBy
944
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {
945
            $orderByAnnot = $propertyAnnotations[Annotation\OrderBy::class];
946
947
            $assocMetadata->setOrderBy($orderByAnnot->value);
948
        }
949
950
        // Check for Id
951
        if (isset($propertyAnnotations[Annotation\Id::class])) {
@@ 1004-1008 (lines=5) @@
1001
        }
1002
1003
        // Check for OrderBy
1004
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {
1005
            $orderByAnnot = $propertyAnnotations[Annotation\OrderBy::class];
1006
1007
            $assocMetadata->setOrderBy($orderByAnnot->value);
1008
        }
1009
1010
        // Check for Id
1011
        if (isset($propertyAnnotations[Annotation\Id::class])) {