Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2392-2401 (lines=10) @@
2389
		$comment_content      = $comment_content_label = null;
2390
2391
		// For each of the "standard" fields, grab their field label and value.
2392
		if ( isset( $field_ids['name'] ) ) {
2393
			$field          = $this->fields[ $field_ids['name'] ];
2394
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2395
				stripslashes(
2396
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2397
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2398
				)
2399
			);
2400
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2401
		}
2402
2403
		if ( isset( $field_ids['email'] ) ) {
2404
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2403-2412 (lines=10) @@
2400
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2401
		}
2402
2403
		if ( isset( $field_ids['email'] ) ) {
2404
			$field                = $this->fields[ $field_ids['email'] ];
2405
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2406
				stripslashes(
2407
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2408
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2409
				)
2410
			);
2411
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2412
		}
2413
2414
		if ( isset( $field_ids['url'] ) ) {
2415
			$field              = $this->fields[ $field_ids['url'] ];