Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2117-2126 (lines=10) @@
2114
		$comment_content      = $comment_content_label      = null;
2115
2116
		// For each of the "standard" fields, grab their field label and value.
2117
		if ( isset( $field_ids['name'] ) ) {
2118
			$field = $this->fields[ $field_ids['name'] ];
2119
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2120
				stripslashes(
2121
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2122
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2123
				)
2124
			);
2125
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2126
		}
2127
2128
		if ( isset( $field_ids['email'] ) ) {
2129
			$field = $this->fields[ $field_ids['email'] ];
@@ 2128-2137 (lines=10) @@
2125
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2126
		}
2127
2128
		if ( isset( $field_ids['email'] ) ) {
2129
			$field = $this->fields[ $field_ids['email'] ];
2130
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2131
				stripslashes(
2132
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2133
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2134
				)
2135
			);
2136
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2137
		}
2138
2139
		if ( isset( $field_ids['url'] ) ) {
2140
			$field = $this->fields[ $field_ids['url'] ];