Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2191-2200 (lines=10) @@
2188
		$comment_content      = $comment_content_label      = null;
2189
2190
		// For each of the "standard" fields, grab their field label and value.
2191
		if ( isset( $field_ids['name'] ) ) {
2192
			$field = $this->fields[ $field_ids['name'] ];
2193
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2194
				stripslashes(
2195
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2196
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2197
				)
2198
			);
2199
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2200
		}
2201
2202
		if ( isset( $field_ids['email'] ) ) {
2203
			$field = $this->fields[ $field_ids['email'] ];
@@ 2202-2211 (lines=10) @@
2199
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2200
		}
2201
2202
		if ( isset( $field_ids['email'] ) ) {
2203
			$field = $this->fields[ $field_ids['email'] ];
2204
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2205
				stripslashes(
2206
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2207
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2208
				)
2209
			);
2210
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2211
		}
2212
2213
		if ( isset( $field_ids['url'] ) ) {
2214
			$field = $this->fields[ $field_ids['url'] ];