Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1429-1438 (lines=10) @@
1426
1427
		// For each of the "standard" fields, grab their field label and value.
1428
1429
		if ( isset( $field_ids['name'] ) ) {
1430
			$field = $this->fields[$field_ids['name']];
1431
			$comment_author = Grunion_Contact_Form_Plugin::strip_tags(
1432
				stripslashes(
1433
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1434
					apply_filters( 'pre_comment_author_name', addslashes( $field->value ) )
1435
				)
1436
			);
1437
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1438
		}
1439
1440
		if ( isset( $field_ids['email'] ) ) {
1441
			$field = $this->fields[$field_ids['email']];
@@ 1440-1449 (lines=10) @@
1437
			$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1438
		}
1439
1440
		if ( isset( $field_ids['email'] ) ) {
1441
			$field = $this->fields[$field_ids['email']];
1442
			$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags(
1443
				stripslashes(
1444
					/** This filter is already documented in core/wp-includes/comment-functions.php */
1445
					apply_filters( 'pre_comment_author_email', addslashes( $field->value ) )
1446
				)
1447
			);
1448
			$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) );
1449
		}
1450
1451
		if ( isset( $field_ids['url'] ) ) {
1452
			$field = $this->fields[$field_ids['url']];