Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1669-1678 (lines=10) @@
1666
1667
		// For each of the "standard" fields, grab their field label and value.
1668
1669
		if ( isset( $field_ids['name'] ) ) {
1670
			$field = $this->fields[$field_ids['name']];
1671
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1672
				stripslashes(
1673
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1674
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1675
				)
1676
			);
1677
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1678
		}
1679
1680
		if ( isset( $field_ids['email'] ) ) {
1681
			$field = $this->fields[$field_ids['email']];
@@ 1680-1689 (lines=10) @@
1677
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1678
		}
1679
1680
		if ( isset( $field_ids['email'] ) ) {
1681
			$field = $this->fields[$field_ids['email']];
1682
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1683
				stripslashes(
1684
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1685
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1686
				)
1687
			);
1688
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1689
		}
1690
1691
		if ( isset( $field_ids['url'] ) ) {
1692
			$field = $this->fields[$field_ids['url']];