Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1772-1781 (lines=10) @@
1769
1770
		// For each of the "standard" fields, grab their field label and value.
1771
1772
		if ( isset( $field_ids['name'] ) ) {
1773
			$field = $this->fields[$field_ids['name']];
1774
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1775
				stripslashes(
1776
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1777
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1778
				)
1779
			);
1780
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1781
		}
1782
1783
		if ( isset( $field_ids['email'] ) ) {
1784
			$field = $this->fields[$field_ids['email']];
@@ 1783-1792 (lines=10) @@
1780
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1781
		}
1782
1783
		if ( isset( $field_ids['email'] ) ) {
1784
			$field = $this->fields[$field_ids['email']];
1785
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1786
				stripslashes(
1787
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1788
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1789
				)
1790
			);
1791
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1792
		}
1793
1794
		if ( isset( $field_ids['url'] ) ) {
1795
			$field = $this->fields[$field_ids['url']];