Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ORM/Query/SqlWalker.php 2 locations

@@ 1909-1915 (lines=7) @@
1906
                $sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn;
1907
            }
1908
1909
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1910
                if (isset($dqlParamKey)) {
1911
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1912
                }
1913
1914
                $sqlParts[] = $targetTableAlias . '.'  . $targetColumnName . ' = ' . $entitySql;
1915
            }
1916
1917
            $sql .= implode(' AND ', $sqlParts);
1918
        } else { // many-to-many
@@ 1955-1961 (lines=7) @@
1952
                $sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn;
1953
            }
1954
1955
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1956
                if (isset($dqlParamKey)) {
1957
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1958
                }
1959
1960
                $sqlParts[] = $targetTableAlias . '.' . $targetColumnName . ' IN (' . $entitySql . ')';
1961
            }
1962
1963
            $sql .= implode(' AND ', $sqlParts);
1964
        }