Code Duplication    Length = 10-13 lines in 3 locations

src/SphinxQL.php 3 locations

@@ 802-814 (lines=13) @@
799
     *
800
     * @return SphinxQL
801
     */
802
    public function select($columns = null)
803
    {
804
        $this->reset();
805
        $this->type = 'select';
806
807
        if (is_array($columns)) {
808
            $this->select = $columns;
809
        } else {
810
            $this->select = \func_get_args();
811
        }
812
813
        return $this;
814
    }
815
816
    /**
817
     * Alters which arguments to select
@@ 826-835 (lines=10) @@
823
     *
824
     * @return SphinxQL
825
     */
826
    public function setSelect($columns = null)
827
    {
828
        if (is_array($columns)) {
829
            $this->select = $columns;
830
        } else {
831
            $this->select = \func_get_args();
832
        }
833
834
        return $this;
835
    }
836
837
    /**
838
     * Get the columns staged to select
@@ 1151-1160 (lines=10) @@
1148
     *
1149
     * @return SphinxQL
1150
     */
1151
    public function columns($array = array())
1152
    {
1153
        if (is_array($array)) {
1154
            $this->columns = $array;
1155
        } else {
1156
            $this->columns = \func_get_args();
1157
        }
1158
1159
        return $this;
1160
    }
1161
1162
    /**
1163
     * Set VALUES