Code Duplication    Length = 3-4 lines in 3 locations

src/SQLParser/Node/SubQuery.php 1 location

@@ 199-202 (lines=4) @@
196
        if ($this->alias) {
197
            $sql .= ' AS '.NodeFactory::escapeDBItem($this->alias, $dbConnection);
198
        }
199
        if ($this->refClause) {
200
            $sql .= ' ON ';
201
            $sql .= NodeFactory::toSql($this->refClause, $dbConnection, $parameters, ' ', true, $indent, $conditionsMode);
202
        }
203
204
        return $sql;
205
    }

src/SQLParser/Node/Table.php 1 location

@@ 183-186 (lines=4) @@
180
        if ($this->alias) {
181
            $sql .= ' AS '.NodeFactory::escapeDBItem($this->alias, $dbConnection);
182
        }
183
        if ($this->refClause) {
184
            $sql .= ' ON ';
185
            $sql .= NodeFactory::toSql($this->refClause, $dbConnection, $parameters, ' ', true, $indent, $conditionsMode);
186
        }
187
188
        return $sql;
189
    }

src/SQLParser/Query/Select.php 1 location

@@ 332-334 (lines=3) @@
329
            $sql .= implode(' ', $this->options)."\n";
330
        }
331
332
        if (!empty($this->columns)) {
333
            $sql .= NodeFactory::toSql($this->columns, $dbConnection, $parameters, ',', false, $indent + 2, $conditionsMode);
334
        }
335
336
        if (!empty($this->from)) {
337
            $from = NodeFactory::toSql($this->from, $dbConnection, $parameters, ' ', false, $indent + 2, $conditionsMode);