Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
parseLocalFWS example
$resultEscaping
=
$this
->
validateEscaping
(
)
;
if
(
$resultEscaping
->
isInvalid
(
)
)
{
return
$resultEscaping
;
}
$resultToken
=
$this
->
validateTokens
(
false
)
;
if
(
$resultToken
->
isInvalid
(
)
)
{
return
$resultToken
;
}
$resultFWS
=
$this
->
parseLocalFWS
(
)
;
if
(
$resultFWS
->
isInvalid
(
)
)
{
return
$resultFWS
;
}
$this
->lexer->
moveNext
(
)
;
}
$this
->lexer->
stopRecording
(
)
;
$this
->localPart =
rtrim
(
$this
->lexer->
getAccumulatedValues
(
)
, '@'
)
;
if
(
strlen
(
$this
->localPart
)
> LocalTooLong::LOCAL_PART_LENGTH
)
{
$this
->warnings
[
LocalTooLong::CODE
]
=
new
LocalTooLong
(
)
;
}