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.
@@ 1474-1484 (lines=11) @@
1471
    /**
1472
     * {@inheritdoc}
1473
     */
1474
    public function walkSubselectFromClause($subselectFromClause)
1475
    {
1476
        $identificationVarDecls = $subselectFromClause->identificationVariableDeclarations;
1477
        $sqlParts               = [];
1478
1479
        foreach ($identificationVarDecls as $subselectIdVarDecl) {
1480
            $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);
1481
        }
1482
1483
        return ' FROM ' . implode(', ', $sqlParts);
1484
    }
1485
1486
    /**
1487
     * {@inheritdoc}