Code Duplication    Length = 3-5 lines in 3 locations

src/SphinxQL.php 3 locations

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