Code Duplication    Length = 8-10 lines in 2 locations

lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php 2 locations

@@ 645-652 (lines=8) @@
642
            }
643
        }
644
645
        if ($addFilters) {
646
            list($joinTargetEntitySQL, $filterSql) = $this->getFilterSql($filterMapping);
647
648
            if ($filterSql) {
649
                $quotedJoinTable .= ' ' . $joinTargetEntitySQL;
650
                $whereClauses[] = $filterSql;
651
            }
652
        }
653
654
        return [$quotedJoinTable, $whereClauses, $params, $types];
655
    }
@@ 709-718 (lines=10) @@
706
            $types[]      = PersisterHelper::getTypeOfColumn($targetColumn, $sourceClass, $this->em);
707
        }
708
709
        if ($addFilters) {
710
            $quotedJoinTable .= ' t';
711
712
            list($joinTargetEntitySQL, $filterSql) = $this->getFilterSql($filterMapping);
713
714
            if ($filterSql) {
715
                $quotedJoinTable .= ' ' . $joinTargetEntitySQL;
716
                $whereClauses[] = $filterSql;
717
            }
718
        }
719
720
        return [$quotedJoinTable, $whereClauses, $params, $types];
721
    }