Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 831-835 (lines=5) @@
828
    }
829
    static::$needJoin = [];
830
831
    if (!empty($options['limit']))
832
      $limit = (int) $options['limit'];
833
    else {
834
      $limit = 0;
835
    }
836
    if (!empty($options['start']))
837
      $start = (int) $options['start'];
838
    else {
@@ 1120-1124 (lines=5) @@
1117
    if (!empty($options['order'])) {
1118
      $query->order($options['order']);
1119
    }
1120
    if (!empty($options['limit']))
1121
      $limit = (int) $options['limit'];
1122
    else {
1123
      $limit = 0;
1124
    }
1125
    if (!empty($options['start']))
1126
      $start = (int) $options['start'];
1127
    else {