Code Duplication    Length = 3-3 lines in 2 locations

classes/models/FrmEntryValidate.php 2 locations

@@ 109-111 (lines=3) @@
106
        }
107
108
        //validate the url format
109
        if ( ! preg_match('/^http(s)?:\/\/([\da-z\.-]+)\.([\da-z\.-]+)/i', $value) ) {
110
			$errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $field, 'invalid' );
111
        }
112
    }
113
114
	public static function validate_email_field( &$errors, $field, $value, $args ) {
@@ 120-122 (lines=3) @@
117
        }
118
119
        //validate the email format
120
        if ( ! is_email($value) ) {
121
			$errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $field, 'invalid' );
122
        }
123
    }
124
125
	public static function validate_number_field( &$errors, $field, $value ) {