Code Duplication    Length = 7-7 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 795-801 (lines=7) @@
792
            return $result->getArray($key);
793
        }
794
        $list = $result->getObjects(get_called_class(), $key);
795
        if (!empty($options['forSelect'])) {
796
            $return = [];
797
            foreach ($list as $key => $item) {
798
                $return[$key] = $item->name();
799
            }
800
            return $return;
801
        }
802
        return $list;
803
    }
804
@@ 925-931 (lines=7) @@
922
                    return 0;
923
                });
924
            }
925
            if (!empty($options['forSelect'])) {
926
                $return = [];
927
                foreach ($items as $key => $item) {
928
                    $return[$key] = $item->name();
929
                }
930
                return $return;
931
            }
932
            return $items;
933
        }
934
        return [];