Code Duplication    Length = 10-10 lines in 2 locations

projects/plugins/jetpack/modules/contact-form/grunion-contact-form.php 2 locations

@@ 2684-2693 (lines=10) @@
2681
		$comment_content      = $comment_content_label = null;
2682
2683
		// For each of the "standard" fields, grab their field label and value.
2684
		if ( isset( $field_ids['name'] ) ) {
2685
			$field          = $this->fields[ $field_ids['name'] ];
2686
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2687
				stripslashes(
2688
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2689
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2690
				)
2691
			);
2692
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2693
		}
2694
2695
		if ( isset( $field_ids['email'] ) ) {
2696
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2695-2704 (lines=10) @@
2692
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2693
		}
2694
2695
		if ( isset( $field_ids['email'] ) ) {
2696
			$field                = $this->fields[ $field_ids['email'] ];
2697
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2698
				stripslashes(
2699
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2700
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2701
				)
2702
			);
2703
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2704
		}
2705
2706
		if ( isset( $field_ids['url'] ) ) {
2707
			$field              = $this->fields[ $field_ids['url'] ];