Code Duplication    Length = 17-17 lines in 2 locations

_inc/lib/functions.wp-notify.php 2 locations

@@ 159-175 (lines=17) @@
156
		);
157
158
		if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) {
159
			if ( EMPTY_TRASH_DAYS ) {
160
				$notify_message .= sprintf(
161
					/* translators: Placeholder is the edit URL */
162
					__( 'Trash it: %s' ),
163
					$moderate_on_wpcom
164
					? str_replace( '__action__', 'trash', $base_wpcom_edit_comment_url )
165
					: admin_url( "comment.php?action=trash&c={$comment->comment_ID}#wpbody-content" )
166
				) . "\r\n";
167
			} else {
168
				$notify_message .= sprintf(
169
					/* translators: Placeholder is the edit URL */
170
					__( 'Delete it: %s' ),
171
					$moderate_on_wpcom
172
					? str_replace( '__action__', 'delete', $base_wpcom_edit_comment_url )
173
					: admin_url( "comment.php?action=delete&c={$comment->comment_ID}#wpbody-content" )
174
				) . "\r\n";
175
			}
176
			$notify_message .= sprintf(
177
				/* translators: Placeholder is the edit URL */
178
				__( 'Spam it: %s' ),
@@ 337-353 (lines=17) @@
334
			: admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" )
335
		) . "\r\n";
336
337
		if ( EMPTY_TRASH_DAYS ) {
338
			$notify_message .= sprintf(
339
				/* translators: Comment moderation. 1: Comment action URL */
340
				__( 'Trash it: %s' ),
341
				$moderate_on_wpcom
342
				? str_replace( '__action__', 'trash', $base_wpcom_edit_comment_url )
343
				: admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" )
344
			) . "\r\n";
345
		} else {
346
			$notify_message .= sprintf(
347
				/* translators: Comment moderation. 1: Comment action URL */
348
				__( 'Delete it: %s' ),
349
				$moderate_on_wpcom
350
				? str_replace( '__action__', 'delete', $base_wpcom_edit_comment_url )
351
				: admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" )
352
			) . "\r\n";
353
		}
354
355
		$notify_message .= sprintf(
356
			/* translators: Comment moderation. 1: Comment action URL */