Code Duplication    Length = 9-10 lines in 3 locations

deprecated/FrmDeprecated.php 3 locations

@@ 750-758 (lines=9) @@
747
	/**
748
	 * @deprecated 3.0
749
	 */
750
	public static function validate_email_field( &$errors, $field, $value, $args ) {
751
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
752
753
		if ( $field->type != 'email' ) {
754
			return;
755
		}
756
757
		FrmEntryValidate::validate_field_types( $errors, $field, $value, $args );
758
	}
759
760
	/**
761
	 * @deprecated 3.0
@@ 763-772 (lines=10) @@
760
	/**
761
	 * @deprecated 3.0
762
	 */
763
	public static function validate_number_field( &$errors, $field, $value, $args ) {
764
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
765
766
		//validate the number format
767
		if ( $field->type != 'number' ) {
768
			return;
769
		}
770
771
		FrmEntryValidate::validate_field_types( $errors, $field, $value, $args );
772
	}
773
774
	/**
775
	 * @deprecated 3.0
@@ 777-785 (lines=9) @@
774
	/**
775
	 * @deprecated 3.0
776
	 */
777
	public static function validate_recaptcha( &$errors, $field, $args ) {
778
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
779
780
		if ( $field->type != 'captcha' ) {
781
			return;
782
		}
783
784
		FrmEntryValidate::validate_field_types( $errors, $field, '', $args );
785
	}
786
}
787