/** * validate_email * Determines if the $value passed in is a valid email address. * @param string $value The piece of data that is supposed to be an email * address. * @return boolean True if $value is a valid email address, otherwise false. */ protected static function validate_email($value) { return WmfFramework::validateEmail($value) && !DataValidator::cc_number_exists_in_str($value); }