Code Duplication    Length = 5-5 lines in 4 locations

main/survey/survey.lib.php 4 locations

@@ 4664-4668 (lines=5) @@
4661
        //	OFFICIAL CODE
4662
        $field_list_array['official_code']['name'] = get_lang('OfficialCode');
4663
4664
        if (api_get_setting('profile', 'officialcode') != 'true') {
4665
            $field_list_array['official_code']['visibility'] = 1;
4666
        } else {
4667
            $field_list_array['official_code']['visibility'] = 0;
4668
        }
4669
4670
        // EMAIL
4671
        $field_list_array['email']['name'] = get_lang('Email');
@@ 4672-4676 (lines=5) @@
4669
4670
        // EMAIL
4671
        $field_list_array['email']['name'] = get_lang('Email');
4672
        if (api_get_setting('profile', 'email') != 'true') {
4673
            $field_list_array['email']['visibility'] = 1;
4674
        } else {
4675
            $field_list_array['email']['visibility'] = 0;
4676
        }
4677
4678
        // PHONE
4679
        $field_list_array['phone']['name'] = get_lang('Phone');
@@ 4680-4684 (lines=5) @@
4677
4678
        // PHONE
4679
        $field_list_array['phone']['name'] = get_lang('Phone');
4680
        if (api_get_setting('profile', 'phone') != 'true') {
4681
            $field_list_array['phone']['visibility'] = 0;
4682
        } else {
4683
            $field_list_array['phone']['visibility'] = 1;
4684
        }
4685
        //	LANGUAGE
4686
        $field_list_array['language']['name'] = get_lang('Language');
4687
        if (api_get_setting('profile', 'language') != 'true') {
@@ 4687-4691 (lines=5) @@
4684
        }
4685
        //	LANGUAGE
4686
        $field_list_array['language']['name'] = get_lang('Language');
4687
        if (api_get_setting('profile', 'language') != 'true') {
4688
            $field_list_array['language']['visibility'] = 0;
4689
        } else {
4690
            $field_list_array['language']['visibility'] = 1;
4691
        }
4692
4693
        // EXTRA FIELDS
4694
        $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');