Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 942-946 (lines=5) @@
939
    }
940
    static::$needJoin = [];
941
942
    if (!empty($options['limit']))
943
      $limit = (int) $options['limit'];
944
    else {
945
      $limit = 0;
946
    }
947
    if (!empty($options['start']))
948
      $start = (int) $options['start'];
949
    else {
@@ 1231-1235 (lines=5) @@
1228
    if (!empty($options['order'])) {
1229
      $query->order($options['order']);
1230
    }
1231
    if (!empty($options['limit']))
1232
      $limit = (int) $options['limit'];
1233
    else {
1234
      $limit = 0;
1235
    }
1236
    if (!empty($options['start']))
1237
      $start = (int) $options['start'];
1238
    else {