Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Comment.php

function Comment::warnEscaping

Return value

void

1 call to Comment::warnEscaping()
Comment::parse in vendor/egulias/email-validator/src/Parser/Comment.php

File

vendor/egulias/email-validator/src/Parser/Comment.php, line 78

Class

Comment

Namespace

Egulias\EmailValidator\Parser

Code

private function warnEscaping() : void {
    
    //Backslash found
    if (!$this->lexer->current
        ->isA(EmailLexer::S_BACKSLASH)) {
        return;
    }
    if (!$this->lexer
        ->isNextTokenAny(array(
        EmailLexer::S_SP,
        EmailLexer::S_HTAB,
        EmailLexer::C_DEL,
    ))) {
        return;
    }
    $this->warnings[QuotedPart::CODE] = new QuotedPart($this->lexer
        ->getPrevious()->type, $this->lexer->current->type);
}
RSS feed
Powered by Drupal