Code Duplication    Length = 4-4 lines in 2 locations

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

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