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->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->group_by).' ';
563
        }
564
565
        if (!empty($this->within_group_order_by)) {
566
            $query .= 'WITHIN GROUP ORDER BY ';
@@ 682-684 (lines=3) @@
679
            $query .= 'INTO '.$this->into.' ';
680
        }
681
682
        if (!empty($this->columns)) {
683
            $query .= '('.implode(', ', $this->columns).') ';
684
        }
685
686
        if (!empty($this->values)) {
687
            $query .= 'VALUES ';