Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1668-1677 (lines=10) @@
1665
1666
		// For each of the "standard" fields, grab their field label and value.
1667
1668
		if ( isset( $field_ids['name'] ) ) {
1669
			$field = $this->fields[$field_ids['name']];
1670
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1671
				stripslashes(
1672
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1673
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1674
				)
1675
			);
1676
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1677
		}
1678
1679
		if ( isset( $field_ids['email'] ) ) {
1680
			$field = $this->fields[$field_ids['email']];
@@ 1679-1688 (lines=10) @@
1676
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1677
		}
1678
1679
		if ( isset( $field_ids['email'] ) ) {
1680
			$field = $this->fields[$field_ids['email']];
1681
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1682
				stripslashes(
1683
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1684
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1685
				)
1686
			);
1687
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1688
		}
1689
1690
		if ( isset( $field_ids['url'] ) ) {
1691
			$field = $this->fields[$field_ids['url']];