Code Duplication    Length = 3-5 lines in 2 locations

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

@@ 56-58 (lines=3) @@
53
	 * Reset notices for themes when switched or a new version of WC is installed.
54
	 */
55
	public function reset_admin_notices() {
56
		if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) {
57
			self::add_notice( 'theme_support' );
58
		}
59
		self::add_notice( 'template_files' );
60
	}
61
@@ 142-146 (lines=5) @@
139
	 * Show the Theme Check notice.
140
	 */
141
	public function theme_check_notice() {
142
		if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) {
143
			include( 'views/html-notice-theme-support.php' );
144
		} else {
145
			self::remove_notice( 'theme_support' );
146
		}
147
	}
148
149
	/**