Code Duplication    Length = 6-10 lines in 2 locations

lib/Doctrine/ORM/Mapping/Driver/NewAnnotationDriver.php 1 location

@@ 939-948 (lines=10) @@
936
        }
937
938
        // Check for JoinTable
939
        if (isset($propertyAnnotations[Annotation\JoinTable::class])) {
940
            $joinTableAnnot    = $propertyAnnotations[Annotation\JoinTable::class];
941
            $joinTableMetadata = $this->convertJoinTableAnnotationToJoinTableMetadata(
942
                $reflectionProperty,
943
                $joinTableAnnot,
944
                $classMetadata
945
            );
946
947
            $assocMetadata->setJoinTable($joinTableMetadata);
948
        }
949
950
        // Check for OrderBy
951
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {

lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 location

@@ 996-1001 (lines=6) @@
993
        }
994
995
        // Check for JoinTable
996
        if (isset($propertyAnnotations[Annotation\JoinTable::class])) {
997
            $joinTableAnnot    = $propertyAnnotations[Annotation\JoinTable::class];
998
            $joinTableMetadata = $this->convertJoinTableAnnotationToJoinTableMetadata($joinTableAnnot);
999
1000
            $assocMetadata->setJoinTable($joinTableMetadata);
1001
        }
1002
1003
        // Check for OrderBy
1004
        if (isset($propertyAnnotations[Annotation\OrderBy::class])) {