Code Duplication    Length = 5-7 lines in 2 locations

framework/db/DBPreparedQuery.php 1 location

@@ 166-172 (lines=7) @@
163
        }
164
        $this->prepareOrder();
165
166
        if (!is_null($offset)) {
167
            if (is_null($count)) {
168
                $this->dbQuery->limit = $offset;
169
            } else {
170
                $this->dbQuery->limit = [$offset, $count];
171
            }
172
        }
173
        $this->prepareLimit();
174
175
        return $this;

framework/db/DBObject.php 1 location

@@ 472-476 (lines=5) @@
469
            return $this;
470
        }
471
472
        if (is_null($count)) {
473
            $this->dbQuery->limit = $offset;
474
        } else {
475
            $this->dbQuery->limit = [$offset, $count];
476
        }
477
478
        return $this;
479
    }