You are here

protected function EmailValidator::addTLDWarnings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailValidator.php \Egulias\EmailValidator\EmailValidator::addTLDWarnings()
1 call to EmailValidator::addTLDWarnings()
EmailValidator::checkDNS in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailValidator.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailValidator.php, line 160

Class

EmailValidator
EmailValidator

Namespace

Egulias\EmailValidator

Code

protected function addTLDWarnings() {
  if (!in_array(self::DNSWARN_NO_RECORD, $this->warnings) && !in_array(self::DNSWARN_NO_MX_RECORD, $this->warnings) && in_array(self::RFC5322_DOMAINLITERAL, $this->warnings)) {
    $this->warnings[] = self::RFC5321_TLD;
  }
}