Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 964-968 (lines=5) @@
961
        }
962
        static::$needJoin = [];
963
964
        if (!empty($options['limit'])) {
965
            $limit = (int) $options['limit'];
966
        } else {
967
            $limit = 0;
968
        }
969
        if (!empty($options['start'])) {
970
            $start = (int) $options['start'];
971
        } else {
@@ 1258-1262 (lines=5) @@
1255
        if (!empty($options['order'])) {
1256
            $query->order($options['order']);
1257
        }
1258
        if (!empty($options['limit'])) {
1259
            $limit = (int) $options['limit'];
1260
        } else {
1261
            $limit = 0;
1262
        }
1263
        if (!empty($options['start'])) {
1264
            $start = (int) $options['start'];
1265
        } else {