CodeExplorer checkDomainPartExceptions example
$FwsResult =
$this->
parseFWS();
if ($FwsResult->
isInvalid()) { return $FwsResult;
} $domain .=
$this->lexer->current->value;
if ($this->lexer->current->
isA(EmailLexer::S_DOT
) &&
$this->lexer->
isNextToken(EmailLexer::GENERIC
)) { $tldMissing = false;
} $exceptionsResult =
$this->
checkDomainPartExceptions($prev,
$hasComments);
if ($exceptionsResult->
isInvalid()) { return $exceptionsResult;
} $this->lexer->
moveNext();
} while (!
$this->lexer->current->
isA(EmailLexer::S_EMPTY
));
$labelCheck =
$this->
checkLabelLength(true
);
if ($labelCheck->
isInvalid()) { return $labelCheck;
} $this->
addTLDWarnings($tldMissing);