Code Duplication    Length = 10-10 lines in 2 locations

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

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