Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2585-2594 (lines=10) @@
2582
		$comment_content      = $comment_content_label = null;
2583
2584
		// For each of the "standard" fields, grab their field label and value.
2585
		if ( isset( $field_ids['name'] ) ) {
2586
			$field          = $this->fields[ $field_ids['name'] ];
2587
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2588
				stripslashes(
2589
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2590
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2591
				)
2592
			);
2593
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2594
		}
2595
2596
		if ( isset( $field_ids['email'] ) ) {
2597
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2596-2605 (lines=10) @@
2593
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2594
		}
2595
2596
		if ( isset( $field_ids['email'] ) ) {
2597
			$field                = $this->fields[ $field_ids['email'] ];
2598
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2599
				stripslashes(
2600
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2601
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2602
				)
2603
			);
2604
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2605
		}
2606
2607
		if ( isset( $field_ids['url'] ) ) {
2608
			$field              = $this->fields[ $field_ids['url'] ];