You are here

protected function Parser::checkConsecutiveDots 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::checkConsecutiveDots()
2 calls to Parser::checkConsecutiveDots()
DomainPart::doParseDomainPart in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php
LocalPart::parse in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/LocalPart.php

File

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

Class

Parser

Namespace

Egulias\EmailValidator\Parser

Code

protected function checkConsecutiveDots() {
  if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer
    ->isNextToken(EmailLexer::S_DOT)) {
    throw new \InvalidArgumentException('ERR_CONSECUTIVEDOTS');
  }
}