Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2482-2491 (lines=10) @@
2479
		$comment_content      = $comment_content_label = null;
2480
2481
		// For each of the "standard" fields, grab their field label and value.
2482
		if ( isset( $field_ids['name'] ) ) {
2483
			$field          = $this->fields[ $field_ids['name'] ];
2484
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2485
				stripslashes(
2486
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2487
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2488
				)
2489
			);
2490
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2491
		}
2492
2493
		if ( isset( $field_ids['email'] ) ) {
2494
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2493-2502 (lines=10) @@
2490
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2491
		}
2492
2493
		if ( isset( $field_ids['email'] ) ) {
2494
			$field                = $this->fields[ $field_ids['email'] ];
2495
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2496
				stripslashes(
2497
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2498
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2499
				)
2500
			);
2501
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2502
		}
2503
2504
		if ( isset( $field_ids['url'] ) ) {
2505
			$field              = $this->fields[ $field_ids['url'] ];