Code Duplication    Length = 8-10 lines in 2 locations

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

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