CRLFX2 example

return new ValidEmail();
    }

    protected function checkCRLFInFWS(): Result
    {
        if (!$this->lexer->current->isA(EmailLexer::CRLF)) {
            return new ValidEmail();
        }

        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) {
            return new InvalidEmail(new CRLFX2()$this->lexer->current->value);
        }

        //this has no coverage. Condition is repeated from above one         if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) {
            return new InvalidEmail(new CRLFAtTheEnd()$this->lexer->current->value);
        }

        return new ValidEmail();
    }

    protected function isFWS(): bool
    {
Home | Imprint | This part of the site doesn't use cookies.