Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseDomainLiteral example
if
(
$commentsResult
->
isInvalid
(
)
)
{
return
$commentsResult
;
}
}
$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
(
)
;