Code Duplication    Length = 5-5 lines in 4 locations

main/survey/survey.lib.php 4 locations

@@ 4682-4686 (lines=5) @@
4679
        //	OFFICIAL CODE
4680
        $field_list_array['official_code']['name'] = get_lang('OfficialCode');
4681
4682
        if (api_get_setting('profile', 'officialcode') != 'true') {
4683
            $field_list_array['official_code']['visibility'] = 1;
4684
        } else {
4685
            $field_list_array['official_code']['visibility'] = 0;
4686
        }
4687
4688
        // EMAIL
4689
        $field_list_array['email']['name'] = get_lang('Email');
@@ 4690-4694 (lines=5) @@
4687
4688
        // EMAIL
4689
        $field_list_array['email']['name'] = get_lang('Email');
4690
        if (api_get_setting('profile', 'email') != 'true') {
4691
            $field_list_array['email']['visibility'] = 1;
4692
        } else {
4693
            $field_list_array['email']['visibility'] = 0;
4694
        }
4695
4696
        // PHONE
4697
        $field_list_array['phone']['name'] = get_lang('Phone');
@@ 4698-4702 (lines=5) @@
4695
4696
        // PHONE
4697
        $field_list_array['phone']['name'] = get_lang('Phone');
4698
        if (api_get_setting('profile', 'phone') != 'true') {
4699
            $field_list_array['phone']['visibility'] = 0;
4700
        } else {
4701
            $field_list_array['phone']['visibility'] = 1;
4702
        }
4703
        //	LANGUAGE
4704
        $field_list_array['language']['name'] = get_lang('Language');
4705
        if (api_get_setting('profile', 'language') != 'true') {
@@ 4705-4709 (lines=5) @@
4702
        }
4703
        //	LANGUAGE
4704
        $field_list_array['language']['name'] = get_lang('Language');
4705
        if (api_get_setting('profile', 'language') != 'true') {
4706
            $field_list_array['language']['visibility'] = 0;
4707
        } else {
4708
            $field_list_array['language']['visibility'] = 1;
4709
        }
4710
4711
        // EXTRA FIELDS
4712
        $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');