Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1803-1812 (lines=10) @@
1800
1801
		// For each of the "standard" fields, grab their field label and value.
1802
1803
		if ( isset( $field_ids['name'] ) ) {
1804
			$field = $this->fields[$field_ids['name']];
1805
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1806
				stripslashes(
1807
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1808
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1809
				)
1810
			);
1811
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1812
		}
1813
1814
		if ( isset( $field_ids['email'] ) ) {
1815
			$field = $this->fields[$field_ids['email']];
@@ 1814-1823 (lines=10) @@
1811
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1812
		}
1813
1814
		if ( isset( $field_ids['email'] ) ) {
1815
			$field = $this->fields[$field_ids['email']];
1816
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1817
				stripslashes(
1818
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1819
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1820
				)
1821
			);
1822
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1823
		}
1824
1825
		if ( isset( $field_ids['url'] ) ) {
1826
			$field = $this->fields[$field_ids['url']];