Code Duplication    Length = 3-3 lines in 3 locations

wp-admin/edit-comments.php 3 locations

@@ 264-266 (lines=3) @@
261
262
		if ( $same > 0 && $comment = get_comment( $same ) ) {
263
			switch ( $comment->comment_approved ) {
264
				case '1' :
265
					$messages[] = __('This comment is already approved.') . ' <a href="' . esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ) . '">' . __( 'Edit comment' ) . '</a>';
266
					break;
267
				case 'trash' :
268
					$messages[] = __( 'This comment is already in the Trash.' ) . ' <a href="' . esc_url( admin_url( 'edit-comments.php?comment_status=trash' ) ) . '"> ' . __( 'View Trash' ) . '</a>';
269
					break;
@@ 267-269 (lines=3) @@
264
				case '1' :
265
					$messages[] = __('This comment is already approved.') . ' <a href="' . esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ) . '">' . __( 'Edit comment' ) . '</a>';
266
					break;
267
				case 'trash' :
268
					$messages[] = __( 'This comment is already in the Trash.' ) . ' <a href="' . esc_url( admin_url( 'edit-comments.php?comment_status=trash' ) ) . '"> ' . __( 'View Trash' ) . '</a>';
269
					break;
270
				case 'spam' :
271
					$messages[] = __( 'This comment is already marked as spam.' ) . ' <a href="' . esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ) . '">' . __( 'Edit comment' ) . '</a>';
272
					break;
@@ 270-272 (lines=3) @@
267
				case 'trash' :
268
					$messages[] = __( 'This comment is already in the Trash.' ) . ' <a href="' . esc_url( admin_url( 'edit-comments.php?comment_status=trash' ) ) . '"> ' . __( 'View Trash' ) . '</a>';
269
					break;
270
				case 'spam' :
271
					$messages[] = __( 'This comment is already marked as spam.' ) . ' <a href="' . esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ) . '">' . __( 'Edit comment' ) . '</a>';
272
					break;
273
			}
274
		}
275