Code Duplication    Length = 3-5 lines in 3 locations

src/SphinxQL.php 3 locations

@@ 540-544 (lines=5) @@
537
        if ($this->type == 'select') {
538
            $query .= 'SELECT ';
539
540
            if (!empty($this->select)) {
541
                $query .= implode(', ', $this->getConnection()->quoteIdentifierArr($this->select)).' ';
542
            } else {
543
                $query .= '* ';
544
            }
545
        }
546
547
        if (!empty($this->from)) {
@@ 561-563 (lines=3) @@
558
559
        $query .= $this->compileMatch().$this->compileWhere();
560
561
        if (!empty($this->group_by)) {
562
            $query .= 'GROUP BY '.implode(', ', $this->getConnection()->quoteIdentifierArr($this->group_by)).' ';
563
        }
564
565
        if (!empty($this->within_group_order_by)) {
566
            $query .= 'WITHIN GROUP ORDER BY ';
@@ 683-685 (lines=3) @@
680
            $query .= 'INTO '.$this->into.' ';
681
        }
682
683
        if (!empty($this->columns)) {
684
            $query .= '('.implode(', ', $this->getConnection()->quoteIdentifierArr($this->columns)).') ';
685
        }
686
687
        if (!empty($this->values)) {
688
            $query .= 'VALUES ';