Code Duplication    Length = 10-10 lines in 2 locations

modules/contact-form/grunion-contact-form.php 2 locations

@@ 2601-2610 (lines=10) @@
2598
		$comment_content      = $comment_content_label = null;
2599
2600
		// For each of the "standard" fields, grab their field label and value.
2601
		if ( isset( $field_ids['name'] ) ) {
2602
			$field          = $this->fields[ $field_ids['name'] ];
2603
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2604
				stripslashes(
2605
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2606
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2607
				)
2608
			);
2609
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2610
		}
2611
2612
		if ( isset( $field_ids['email'] ) ) {
2613
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2612-2621 (lines=10) @@
2609
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2610
		}
2611
2612
		if ( isset( $field_ids['email'] ) ) {
2613
			$field                = $this->fields[ $field_ids['email'] ];
2614
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2615
				stripslashes(
2616
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2617
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2618
				)
2619
			);
2620
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2621
		}
2622
2623
		if ( isset( $field_ids['url'] ) ) {
2624
			$field              = $this->fields[ $field_ids['url'] ];