Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2662-2671 (lines=10) @@
2659
		$comment_content      = $comment_content_label = null;
2660
2661
		// For each of the "standard" fields, grab their field label and value.
2662
		if ( isset( $field_ids['name'] ) ) {
2663
			$field          = $this->fields[ $field_ids['name'] ];
2664
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2665
				stripslashes(
2666
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2667
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2668
				)
2669
			);
2670
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2671
		}
2672
2673
		if ( isset( $field_ids['email'] ) ) {
2674
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2673-2682 (lines=10) @@
2670
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2671
		}
2672
2673
		if ( isset( $field_ids['email'] ) ) {
2674
			$field                = $this->fields[ $field_ids['email'] ];
2675
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2676
				stripslashes(
2677
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2678
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2679
				)
2680
			);
2681
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2682
		}
2683
2684
		if ( isset( $field_ids['url'] ) ) {
2685
			$field              = $this->fields[ $field_ids['url'] ];