Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 955-959 (lines=5) @@
952
        }
953
        static::$needJoin = [];
954
955
        if (!empty($options['limit'])) {
956
            $limit = (int) $options['limit'];
957
        } else {
958
            $limit = 0;
959
        }
960
        if (!empty($options['start'])) {
961
            $start = (int) $options['start'];
962
        } else {
@@ 1259-1263 (lines=5) @@
1256
        if (!empty($options['order'])) {
1257
            $query->order($options['order']);
1258
        }
1259
        if (!empty($options['limit'])) {
1260
            $limit = (int) $options['limit'];
1261
        } else {
1262
            $limit = 0;
1263
        }
1264
        if (!empty($options['start'])) {
1265
            $start = (int) $options['start'];
1266
        } else {