Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 951-955 (lines=5) @@
948
        }
949
        static::$needJoin = [];
950
951
        if (!empty($options['limit'])) {
952
            $limit = (int) $options['limit'];
953
        } else {
954
            $limit = 0;
955
        }
956
        if (!empty($options['start'])) {
957
            $start = (int) $options['start'];
958
        } else {
@@ 1242-1246 (lines=5) @@
1239
        if (!empty($options['order'])) {
1240
            $query->order($options['order']);
1241
        }
1242
        if (!empty($options['limit'])) {
1243
            $limit = (int) $options['limit'];
1244
        } else {
1245
            $limit = 0;
1246
        }
1247
        if (!empty($options['start'])) {
1248
            $start = (int) $options['start'];
1249
        } else {