Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 2285-2294 (lines=10) @@
2282
		$comment_content      = $comment_content_label = null;
2283
2284
		// For each of the "standard" fields, grab their field label and value.
2285
		if ( isset( $field_ids['name'] ) ) {
2286
			$field          = $this->fields[ $field_ids['name'] ];
2287
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
2288
				stripslashes(
2289
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2290
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
2291
				)
2292
			);
2293
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2294
		}
2295
2296
		if ( isset( $field_ids['email'] ) ) {
2297
			$field                = $this->fields[ $field_ids['email'] ];
@@ 2296-2305 (lines=10) @@
2293
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2294
		}
2295
2296
		if ( isset( $field_ids['email'] ) ) {
2297
			$field                = $this->fields[ $field_ids['email'] ];
2298
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
2299
				stripslashes(
2300
					/** This filter is already documented in core/wp-includes/comment-functions.php */
2301
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
2302
				)
2303
			);
2304
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
2305
		}
2306
2307
		if ( isset( $field_ids['url'] ) ) {
2308
			$field              = $this->fields[ $field_ids['url'] ];