Code Duplication    Length = 15-15 lines in 2 locations

src/SphinxQL.php 2 locations

@@ 939-953 (lines=15) @@
936
     *
937
     * @return SphinxQL
938
     */
939
    public function where($column, $operator, $value = null)
940
    {
941
        if ($value === null) {
942
            $value = $operator;
943
            $operator = '=';
944
        }
945
946
        $this->where[] = array(
947
            'column' => $column,
948
            'operator' => $operator,
949
            'value' => $value
950
        );
951
952
        return $this;
953
    }
954
955
    /**
956
     * GROUP BY clause
@@ 1013-1027 (lines=15) @@
1010
     *
1011
     * @return SphinxQL The current object
1012
     */
1013
    public function having($column, $operator, $value = null)
1014
    {
1015
        if ($value === null) {
1016
            $value = $operator;
1017
            $operator = '=';
1018
        }
1019
1020
        $this->having = array(
1021
            'column' => $column,
1022
            'operator' => $operator,
1023
            'value' => $value
1024
        );
1025
1026
        return $this;
1027
    }
1028
1029
    /**
1030
     * ORDER BY clause