Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1700-1709 (lines=10) @@
1697
1698
		// For each of the "standard" fields, grab their field label and value.
1699
1700
		if ( isset( $field_ids['name'] ) ) {
1701
			$field = $this->fields[$field_ids['name']];
1702
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1703
				stripslashes(
1704
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1705
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1706
				)
1707
			);
1708
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1709
		}
1710
1711
		if ( isset( $field_ids['email'] ) ) {
1712
			$field = $this->fields[$field_ids['email']];
@@ 1711-1720 (lines=10) @@
1708
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1709
		}
1710
1711
		if ( isset( $field_ids['email'] ) ) {
1712
			$field = $this->fields[$field_ids['email']];
1713
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1714
				stripslashes(
1715
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1716
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1717
				)
1718
			);
1719
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1720
		}
1721
1722
		if ( isset( $field_ids['url'] ) ) {
1723
			$field = $this->fields[$field_ids['url']];