Code Duplication    Length = 5-5 lines in 3 locations

modules/comments/comments.php 3 locations

@@ 523-527 (lines=5) @@
520
		$comment_meta = array();
521
522
		switch ( $this->is_highlander_comment_post() ) {
523
			case 'facebook':
524
				$comment_meta['hc_post_as']         = 'facebook';
525
				$comment_meta['hc_avatar']          = stripslashes( $_POST['hc_avatar'] );
526
				$comment_meta['hc_foreign_user_id'] = stripslashes( $_POST['hc_userid'] );
527
				break;
528
529
			case 'twitter':
530
				$comment_meta['hc_post_as']         = 'twitter';
@@ 529-533 (lines=5) @@
526
				$comment_meta['hc_foreign_user_id'] = stripslashes( $_POST['hc_userid'] );
527
				break;
528
529
			case 'twitter':
530
				$comment_meta['hc_post_as']         = 'twitter';
531
				$comment_meta['hc_avatar']          = stripslashes( $_POST['hc_avatar'] );
532
				$comment_meta['hc_foreign_user_id'] = stripslashes( $_POST['hc_userid'] );
533
				break;
534
535
			// phpcs:ignore WordPress.WP.CapitalPDangit
536
			case 'wordpress':
@@ 544-548 (lines=5) @@
541
				$comment_meta['hc_wpcom_id_sig']    = stripslashes( $_POST['hc_wpcom_id_sig'] ); //since 1.9
542
				break;
543
544
			case 'jetpack':
545
				$comment_meta['hc_post_as']         = 'jetpack';
546
				$comment_meta['hc_avatar']          = stripslashes( $_POST['hc_avatar'] );
547
				$comment_meta['hc_foreign_user_id'] = stripslashes( $_POST['hc_userid'] );
548
				break;
549
550
		}
551