Code Duplication    Length = 3-5 lines in 2 locations

includes/admin/class-wc-admin-notices.php 2 locations

@@ 57-59 (lines=3) @@
54
	 * Reset notices for themes when switched or a new version of WC is installed.
55
	 */
56
	public function reset_admin_notices() {
57
		if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) {
58
			self::add_notice( 'theme_support' );
59
		}
60
		self::add_notice( 'template_files' );
61
	}
62
@@ 174-178 (lines=5) @@
171
	 * Show the Theme Check notice.
172
	 */
173
	public function theme_check_notice() {
174
		if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) {
175
			include( 'views/html-notice-theme-support.php' );
176
		} else {
177
			self::remove_notice( 'theme_support' );
178
		}
179
	}
180
181
	/**