Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1748-1757 (lines=10) @@
1745
1746
		// For each of the "standard" fields, grab their field label and value.
1747
1748
		if ( isset( $field_ids['name'] ) ) {
1749
			$field = $this->fields[$field_ids['name']];
1750
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1751
				stripslashes(
1752
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1753
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1754
				)
1755
			);
1756
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1757
		}
1758
1759
		if ( isset( $field_ids['email'] ) ) {
1760
			$field = $this->fields[$field_ids['email']];
@@ 1759-1768 (lines=10) @@
1756
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1757
		}
1758
1759
		if ( isset( $field_ids['email'] ) ) {
1760
			$field = $this->fields[$field_ids['email']];
1761
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1762
				stripslashes(
1763
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1764
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1765
				)
1766
			);
1767
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1768
		}
1769
1770
		if ( isset( $field_ids['url'] ) ) {
1771
			$field = $this->fields[$field_ids['url']];