Code Duplication    Length = 7-7 lines in 2 locations

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

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