Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 815-825 (lines=11) @@
812
    /**
813
     * {@inheritdoc}
814
     */
815
    public function walkFromClause($fromClause)
816
    {
817
        $identificationVarDecls = $fromClause->identificationVariableDeclarations;
818
        $sqlParts = [];
819
820
        foreach ($identificationVarDecls as $identificationVariableDecl) {
821
            $sqlParts[] = $this->walkIdentificationVariableDeclaration($identificationVariableDecl);
822
        }
823
824
        return ' FROM ' . implode(', ', $sqlParts);
825
    }
826
827
    /**
828
     * Walks down a IdentificationVariableDeclaration AST node, thereby generating the appropriate SQL.
@@ 1492-1502 (lines=11) @@
1489
    /**
1490
     * {@inheritdoc}
1491
     */
1492
    public function walkSubselectFromClause($subselectFromClause)
1493
    {
1494
        $identificationVarDecls = $subselectFromClause->identificationVariableDeclarations;
1495
        $sqlParts               = [];
1496
1497
        foreach ($identificationVarDecls as $subselectIdVarDecl) {
1498
            $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);
1499
        }
1500
1501
        return ' FROM ' . implode(', ', $sqlParts);
1502
    }
1503
1504
    /**
1505
     * {@inheritdoc}