Code Duplication    Length = 7-7 lines in 2 locations

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

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