Code Duplication    Length = 5-5 lines in 4 locations

main/survey/survey.lib.php 4 locations

@@ 4773-4777 (lines=5) @@
4770
        //	OFFICIAL CODE
4771
        $field_list_array['official_code']['name'] = get_lang('OfficialCode');
4772
4773
        if (api_get_setting('profile', 'officialcode') != 'true') {
4774
            $field_list_array['official_code']['visibility'] = 1;
4775
        } else {
4776
            $field_list_array['official_code']['visibility'] = 0;
4777
        }
4778
4779
        // EMAIL
4780
        $field_list_array['email']['name'] = get_lang('Email');
@@ 4781-4785 (lines=5) @@
4778
4779
        // EMAIL
4780
        $field_list_array['email']['name'] = get_lang('Email');
4781
        if (api_get_setting('profile', 'email') != 'true') {
4782
            $field_list_array['email']['visibility'] = 1;
4783
        } else {
4784
            $field_list_array['email']['visibility'] = 0;
4785
        }
4786
4787
        // PHONE
4788
        $field_list_array['phone']['name'] = get_lang('Phone');
@@ 4789-4793 (lines=5) @@
4786
4787
        // PHONE
4788
        $field_list_array['phone']['name'] = get_lang('Phone');
4789
        if (api_get_setting('profile', 'phone') != 'true') {
4790
            $field_list_array['phone']['visibility'] = 0;
4791
        } else {
4792
            $field_list_array['phone']['visibility'] = 1;
4793
        }
4794
        //	LANGUAGE
4795
        $field_list_array['language']['name'] = get_lang('Language');
4796
        if (api_get_setting('profile', 'language') != 'true') {
@@ 4796-4800 (lines=5) @@
4793
        }
4794
        //	LANGUAGE
4795
        $field_list_array['language']['name'] = get_lang('Language');
4796
        if (api_get_setting('profile', 'language') != 'true') {
4797
            $field_list_array['language']['visibility'] = 0;
4798
        } else {
4799
            $field_list_array['language']['visibility'] = 1;
4800
        }
4801
4802
        // EXTRA FIELDS
4803
        $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');