Code Duplication    Length = 7-7 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 755-761 (lines=7) @@
752
            return $result->getArray($key);
753
        }
754
        $list = $result->getObjects(get_called_class(), $key);
755
        if (!empty($options['forSelect'])) {
756
            $return = [];
757
            foreach ($list as $key => $item) {
758
                $return[$key] = $item->name();
759
            }
760
            return $return;
761
        }
762
        return $list;
763
    }
764
@@ 882-888 (lines=7) @@
879
                    return 0;
880
                });
881
            }
882
            if (!empty($options['forSelect'])) {
883
                $return = [];
884
                foreach ($items as $key => $item) {
885
                    $return[$key] = $item->name();
886
                }
887
                return $return;
888
            }
889
            return $items;
890
        }
891
        return [];