You are here

protected function Parser::isUnclosedComment in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php \Egulias\EmailValidator\Parser\Parser::isUnclosedComment()
2 calls to Parser::isUnclosedComment()
DomainPart::parseDomainComments in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php
Parser::parseComments in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php, line 61

Class

Parser

Namespace

Egulias\EmailValidator\Parser

Code

protected function isUnclosedComment() {
  try {
    $this->lexer
      ->find(EmailLexer::S_CLOSEPARENTHESIS);
    return true;
  } catch (\RuntimeException $e) {
    throw new \InvalidArgumentException('ERR_UNCLOSEDCOMMENT');
  }
}