Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 999-1003 (lines=5) @@
996
        }
997
        static::$needJoin = [];
998
999
        if (!empty($options['limit'])) {
1000
            $limit = (int)$options['limit'];
1001
        } else {
1002
            $limit = 0;
1003
        }
1004
        if (!empty($options['start'])) {
1005
            $start = (int)$options['start'];
1006
        } else {
@@ 1303-1307 (lines=5) @@
1300
        if (!empty($options['order'])) {
1301
            $query->order($options['order']);
1302
        }
1303
        if (!empty($options['limit'])) {
1304
            $limit = (int)$options['limit'];
1305
        } else {
1306
            $limit = 0;
1307
        }
1308
        if (!empty($options['start'])) {
1309
            $start = (int)$options['start'];
1310
        } else {