Code Duplication    Length = 10-10 lines in 2 locations

src/Query/Traits/Where.php 1 location

@@ 21-30 (lines=10) @@
18
     *
19
     * @return self
20
     */
21
    public function where($field, $condition = false, $operator = '=')
22
    {
23
        if (func_num_args() >= 2) {
24
            $this->where->addCondition($field, $condition, $operator);
25
        } else {
26
            $this->where->addCondition($field);
27
        }
28
29
        return $this;
30
    }
31
32
    /**
33
     * Adds a where or condition to the query.

src/Query/SelectQuery.php 1 location

@@ 192-201 (lines=10) @@
189
     *
190
     * @return self
191
     */
192
    public function having($field, $condition = false, $operator = '=')
193
    {
194
        if (func_num_args() >= 2) {
195
            $this->having->addCondition($field, $condition, $operator);
196
        } else {
197
            $this->having->addCondition($field);
198
        }
199
200
        return $this;
201
    }
202
203
    /**
204
     * Unions another select query with this query.