Code Duplication    Length = 11-11 lines in 2 locations

src/Builder/AuraBuilder.php 2 locations

@@ 154-164 (lines=11) @@
151
     *
152
     * @throws LogicException
153
     */
154
    public function orWhere($where)
155
    {
156
        if (!isset($this->query)) {
157
            throw new LogicException("orWhere() called before select(), update() or delete()");
158
        }
159
160
        $query = clone $this->query;
161
        call_user_func_array([$query, "orWhere"], func_get_args());
162
163
        return $this->cloneWith("query", $query);
164
    }
165
166
    /**
167
     * @param string $columns
@@ 227-237 (lines=11) @@
224
     *
225
     * @throws LogicException
226
     */
227
    public function where($where)
228
    {
229
        if (!isset($this->query)) {
230
            throw new LogicException("where() called before select(), update() or delete()");
231
        }
232
233
        $query = clone $this->query;
234
        call_user_func_array([$query, "where"], func_get_args());
235
236
        return $this->cloneWith("query", $query);
237
    }
238
}
239