Code Duplication    Length = 3-5 lines in 2 locations

modules/contact-form/admin.php 2 locations

@@ 140-144 (lines=5) @@
137
	}
138
139
	// Only add to feedback, only to spam view
140
	if ( 'edit-feedback' != $screen->id
141
	|| empty( $_GET['post_status'] )
142
	|| 'spam' !== $_GET['post_status'] ) {
143
		return;
144
	}
145
146
	// Get HTML for the button
147
	$button_html = wp_nonce_field( 'bulk-destroy', '_destroy_nonce', true, false );
@@ 785-787 (lines=3) @@
782
	$screen = get_current_screen();
783
784
	// Only add to feedback, only to non-spam view
785
	if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) {
786
		return;
787
	}
788
789
	// Add the scripts that handle the spam check event.
790
	wp_register_script( 'grunion-admin', plugin_dir_url( __FILE__ ) . 'js/grunion-admin.js', array( 'jquery' ) );