Code Duplication    Length = 10-10 lines in 2 locations

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

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