Code Duplication    Length = 6-6 lines in 4 locations

includes/modules/wps_search/controller/wps_filter_search.php 2 locations

@@ 209-214 (lines=6) @@
206
207
				// Display the good template file
208
				switch( $type ) {
209
					case 'radio' :
210
						ob_start();
211
						require( wpshop_tools::get_template_part( WPS_SEARCH_DIR, $this->template_dir, "frontend", "filter_search/filter_elements/element_radiobox") );
212
						$output = ob_get_contents();
213
						ob_end_clean();
214
					break;
215
					case 'checkbox' :
216
						ob_start();
217
						require( wpshop_tools::get_template_part( WPS_SEARCH_DIR, $this->template_dir, "frontend", "filter_search/filter_elements/element_checkbox") );
@@ 215-220 (lines=6) @@
212
						$output = ob_get_contents();
213
						ob_end_clean();
214
					break;
215
					case 'checkbox' :
216
						ob_start();
217
						require( wpshop_tools::get_template_part( WPS_SEARCH_DIR, $this->template_dir, "frontend", "filter_search/filter_elements/element_checkbox") );
218
						$output = ob_get_contents();
219
						ob_end_clean();
220
						break;
221
					default :
222
						if ( $field_type == 'multiple-select' ) {
223
							ob_start();

includes/modules/wps_classic_checkout/wps_classic_checkout.php 2 locations

@@ 89-94 (lines=6) @@
86
87
			if ( !empty($current_step) ) {
88
				switch( $current_step) {
89
					case 1 :
90
						ob_start();
91
						require( wpshop_tools::get_template_part( WPS_CLASSIC_CHECKOUT_DIR, $this->template_dir, "frontend", "classic-checkout", "step-one") );
92
						$checkout_content .= ob_get_contents();
93
						ob_end_clean();
94
					break;
95
					case 2 :
96
						if ( get_current_user_id() != 0 ) {
97
							$permalink_option = get_option( 'permalink_structure' );
@@ 196-201 (lines=6) @@
193
							wpshop_tools::wpshop_safe_redirect( $url );
194
						}
195
					break;
196
					default :
197
						ob_start();
198
						require( wpshop_tools::get_template_part( WPS_CLASSIC_CHECKOUT_DIR, $this->template_dir, "frontend", "classic-checkout", "step-one") );
199
						$checkout_content .= ob_get_contents();
200
						ob_end_clean();
201
					break;
202
				}
203
204
			}