Code Duplication    Length = 7-7 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 978-984 (lines=7) @@
975
      return $result->getArray($key);
976
    }
977
    $list = $result->getObjects(get_called_class(), $key);
978
    if (!empty($options['forSelect'])) {
979
      $return = [];
980
      foreach ($list as $key => $item) {
981
        $return[$key] = $item->name();
982
      }
983
      return $return;
984
    }
985
    return $list;
986
  }
987
@@ 1110-1116 (lines=7) @@
1107
          return 0;
1108
        });
1109
      }
1110
      if (!empty($options['forSelect'])) {
1111
        $return = [];
1112
        foreach ($items as $key => $item) {
1113
          $return[$key] = $item->name();
1114
        }
1115
        return $return;
1116
      }
1117
      return $items;
1118
    }
1119
    return [];