Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1928-1934 (lines=7) @@
1925
                $sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn;
1926
            }
1927
1928
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1929
                if (isset($dqlParamKey)) {
1930
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1931
                }
1932
1933
                $sqlParts[] = $targetTableAlias . '.'  . $targetColumnName . ' = ' . $entitySql;
1934
            }
1935
1936
            $sql .= implode(' AND ', $sqlParts);
1937
        } else { // many-to-many
@@ 1974-1980 (lines=7) @@
1971
                $sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn;
1972
            }
1973
1974
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1975
                if (isset($dqlParamKey)) {
1976
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1977
                }
1978
1979
                $sqlParts[] = $targetTableAlias . '.' . $targetColumnName . ' IN (' . $entitySql . ')';
1980
            }
1981
1982
            $sql .= implode(' AND ', $sqlParts);
1983
        }