Code Duplication    Length = 10-10 lines in 2 locations

src/SphinxQL.php 2 locations

@@ 828-837 (lines=10) @@
825
     *
826
     * @return SphinxQL
827
     */
828
    public function setSelect($columns = null)
829
    {
830
        if (is_array($columns)) {
831
            $this->select = $columns;
832
        } else {
833
            $this->select = \func_get_args();
834
        }
835
836
        return $this;
837
    }
838
839
    /**
840
     * Get the columns staged to select
@@ 1153-1162 (lines=10) @@
1150
     *
1151
     * @return SphinxQL
1152
     */
1153
    public function columns($array = array())
1154
    {
1155
        if (is_array($array)) {
1156
            $this->columns = $array;
1157
        } else {
1158
            $this->columns = \func_get_args();
1159
        }
1160
1161
        return $this;
1162
    }
1163
1164
    /**
1165
     * Set VALUES