Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1876-1885 (lines=10) @@
1873
		$comment_content      = $comment_content_label      = null;
1874
1875
		// For each of the "standard" fields, grab their field label and value.
1876
		if ( isset( $field_ids['name'] ) ) {
1877
			$field = $this->fields[ $field_ids['name'] ];
1878
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1879
				stripslashes(
1880
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1881
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1882
				)
1883
			);
1884
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1885
		}
1886
1887
		if ( isset( $field_ids['email'] ) ) {
1888
			$field = $this->fields[ $field_ids['email'] ];
@@ 1887-1896 (lines=10) @@
1884
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1885
		}
1886
1887
		if ( isset( $field_ids['email'] ) ) {
1888
			$field = $this->fields[ $field_ids['email'] ];
1889
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1890
				stripslashes(
1891
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1892
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1893
				)
1894
			);
1895
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1896
		}
1897
1898
		if ( isset( $field_ids['url'] ) ) {
1899
			$field = $this->fields[ $field_ids['url'] ];