Code Duplication    Length = 3-3 lines in 2 locations

includes/wc-core-functions.php 2 locations

@@ 155-157 (lines=3) @@
152
	$template = '';
153
154
	// Look in yourtheme/slug-name.php and yourtheme/woocommerce/slug-name.php
155
	if ( $name && ! WC_TEMPLATE_DEBUG_MODE ) {
156
		$template = locate_template( array( "{$slug}-{$name}.php", WC()->template_path() . "{$slug}-{$name}.php" ) );
157
	}
158
159
	// Get default slug-name.php
160
	if ( ! $template && $name && file_exists( WC()->plugin_path() . "/templates/{$slug}-{$name}.php" ) ) {
@@ 165-167 (lines=3) @@
162
	}
163
164
	// If template file doesn't exist, look in yourtheme/slug.php and yourtheme/woocommerce/slug.php
165
	if ( ! $template && ! WC_TEMPLATE_DEBUG_MODE ) {
166
		$template = locate_template( array( "{$slug}.php", WC()->template_path() . "{$slug}.php" ) );
167
	}
168
169
	// Allow 3rd party plugins to filter template file from their plugin.
170
	$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );