Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 954-958 (lines=5) @@
951
        }
952
        static::$needJoin = [];
953
954
        if (!empty($options['limit'])) {
955
            $limit = (int) $options['limit'];
956
        } else {
957
            $limit = 0;
958
        }
959
        if (!empty($options['start'])) {
960
            $start = (int) $options['start'];
961
        } else {
@@ 1245-1249 (lines=5) @@
1242
        if (!empty($options['order'])) {
1243
            $query->order($options['order']);
1244
        }
1245
        if (!empty($options['limit'])) {
1246
            $limit = (int) $options['limit'];
1247
        } else {
1248
            $limit = 0;
1249
        }
1250
        if (!empty($options['start'])) {
1251
            $start = (int) $options['start'];
1252
        } else {