Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addTLDWarnings example
}
$dotsResult
=
$this
->
checkConsecutiveDots
(
)
;
if
(
$dotsResult
->
isInvalid
(
)
)
{
return
$dotsResult
;
}
if
(
$this
->lexer->current->
isA
(
EmailLexer::S_OPENBRACKET
)
)
{
$literalResult
=
$this
->
parseDomainLiteral
(
)
;
$this
->
addTLDWarnings
(
$tldMissing
)
;
return
$literalResult
;
}
$labelCheck
=
$this
->
checkLabelLength
(
)
;
if
(
$labelCheck
->
isInvalid
(
)
)
{
return
$labelCheck
;
}
$FwsResult
=
$this
->
parseFWS
(
)
;
if
(
$FwsResult
->
isInvalid
(
)
)
{
return
$FwsResult
;
}