Code Duplication    Length = 12-12 lines in 2 locations

core/helpers/EEH_Activation.helper.php 2 locations

@@ 926-937 (lines=12) @@
923
            if (! in_array("$QSG_system", $question_groups)) {
924
                // add it
925
                switch ($QSG_system) {
926
                    case 1:
927
                        $QSG_values = array(
928
                            'QSG_name'            => __('Personal Information', 'event_espresso'),
929
                            'QSG_identifier'      => 'personal-information-' . time(),
930
                            'QSG_desc'            => '',
931
                            'QSG_order'           => 1,
932
                            'QSG_show_group_name' => 1,
933
                            'QSG_show_group_desc' => 1,
934
                            'QSG_system'          => EEM_Question_Group::system_personal,
935
                            'QSG_deleted'         => 0,
936
                        );
937
                        break;
938
                    case 2:
939
                        $QSG_values = array(
940
                            'QSG_name'            => __('Address Information', 'event_espresso'),
@@ 938-949 (lines=12) @@
935
                            'QSG_deleted'         => 0,
936
                        );
937
                        break;
938
                    case 2:
939
                        $QSG_values = array(
940
                            'QSG_name'            => __('Address Information', 'event_espresso'),
941
                            'QSG_identifier'      => 'address-information-' . time(),
942
                            'QSG_desc'            => '',
943
                            'QSG_order'           => 2,
944
                            'QSG_show_group_name' => 1,
945
                            'QSG_show_group_desc' => 1,
946
                            'QSG_system'          => EEM_Question_Group::system_address,
947
                            'QSG_deleted'         => 0,
948
                        );
949
                        break;
950
                }
951
                // make sure we have some values before inserting them
952
                if (! empty($QSG_values)) {