CodeExplorer isFWS example
public const FWS_TYPES =
[ EmailLexer::S_SP,
EmailLexer::S_HTAB,
EmailLexer::S_CR,
EmailLexer::S_LF,
EmailLexer::CRLF
];
public function parse(): Result
{ if (!
$this->
isFWS()) { return new ValidEmail();
} $previous =
$this->lexer->
getPrevious();
$resultCRLF =
$this->
checkCRLFInFWS();
if ($resultCRLF->
isInvalid()) { return $resultCRLF;
} if ($this->lexer->current->
isA(EmailLexer::S_CR
)) {