Code Duplication    Length = 9-10 lines in 3 locations

deprecated/FrmDeprecated.php 3 locations

@@ 885-893 (lines=9) @@
882
	/**
883
	 * @deprecated 3.0
884
	 */
885
	public static function validate_email_field( &$errors, $field, $value, $args ) {
886
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
887
888
		if ( $field->type != 'email' ) {
889
			return;
890
		}
891
892
		FrmEntryValidate::validate_field_types( $errors, $field, $value, $args );
893
	}
894
895
	/**
896
	 * @deprecated 3.0
@@ 898-907 (lines=10) @@
895
	/**
896
	 * @deprecated 3.0
897
	 */
898
	public static function validate_number_field( &$errors, $field, $value, $args ) {
899
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
900
901
		//validate the number format
902
		if ( $field->type != 'number' ) {
903
			return;
904
		}
905
906
		FrmEntryValidate::validate_field_types( $errors, $field, $value, $args );
907
	}
908
909
	/**
910
	 * @deprecated 3.0
@@ 912-920 (lines=9) @@
909
	/**
910
	 * @deprecated 3.0
911
	 */
912
	public static function validate_recaptcha( &$errors, $field, $args ) {
913
		_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' );
914
915
		if ( $field->type != 'captcha' ) {
916
			return;
917
		}
918
919
		FrmEntryValidate::validate_field_types( $errors, $field, '', $args );
920
	}
921
}
922