Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 84-87 (lines=4) @@
81
			$user_hidden_notice = false;
82
83
			// If the user is allowed to install plugins and requested to hide the review notice then hide it for that user.
84
			if ( ! empty( $_GET['hide_auto_load_next_post_review_notice'] ) && current_user_can( 'install_plugins' ) ) {
85
				add_user_meta( $current_user->ID, 'auto_load_next_post_hide_review_notice', '1', true );
86
				$user_hidden_notice = true;
87
			}
88
89
			// If the user is allowed to install plugins and requested to hide the welcome notice then hide it for that user.
90
			if ( ! empty( $_GET['hide_auto_load_next_post_welcome_notice'] ) && current_user_can( 'install_plugins' ) ) {
@@ 90-93 (lines=4) @@
87
			}
88
89
			// If the user is allowed to install plugins and requested to hide the welcome notice then hide it for that user.
90
			if ( ! empty( $_GET['hide_auto_load_next_post_welcome_notice'] ) && current_user_can( 'install_plugins' ) ) {
91
				add_user_meta( $current_user->ID, 'auto_load_next_post_hide_welcome_notice', '1', true );
92
				$user_hidden_notice = true;
93
			}
94
95
			if ( ! empty( $_GET['hide_auto_load_next_post_beta_notice'] ) && current_user_can( 'install_plugins' ) ) {
96
				set_transient( 'alnp_beta_notice_hidden', 'hidden', WEEK_IN_SECONDS );