mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-09-18 22:16:52 +00:00
CS and minor changes
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
report/
|
||||
vendor/
|
||||
.idea
|
||||
.local.php.vimrc
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
EmailValidator [](https://travis-ci.org/egulias/EmailValidator)
|
||||
EmailValidator [](https://travis-ci.org/egulias/EmailValidator) [](https://insight.sensiolabs.com/projects/b18d473e-bd5a-4d88-a7b2-7aeaee0ebd7b)
|
||||
=============================
|
||||
|
||||
##Installation##
|
||||
|
||||
@@ -307,8 +307,6 @@ class EmailParser
|
||||
|
||||
/**
|
||||
* validateQuotedPair
|
||||
*
|
||||
* @TODO This needs to be reviewed
|
||||
*/
|
||||
private function validateQuotedPair()
|
||||
{
|
||||
@@ -330,7 +328,6 @@ class EmailParser
|
||||
throw new \InvalidArgumentException('ERR_DOT_START');
|
||||
}
|
||||
if ($this->lexer->token['type'] === EmailLexer::S_DQUOTE) {
|
||||
//@TODO this can be improbed
|
||||
if (!$closingQuote) {
|
||||
if ($this->lexer->isNextToken(EmailLexer::GENERIC) && $previous['type'] === EmailLexer::GENERIC) {
|
||||
throw new \InvalidArgumentException('ERR_EXPECTING_ATEXT');
|
||||
|
||||
@@ -230,7 +230,6 @@ class EmailValidator
|
||||
$this->warnings[] = self::RFC5321_TLD;
|
||||
}
|
||||
|
||||
//@TODO review how to test TLD
|
||||
//if (isset($this->atomList[self::COMPONENT_DOMAIN][$this->elementCount][0]) &&
|
||||
// is_numeric($this->atomList[self::COMPONENT_DOMAIN][$this->elementCount][0])
|
||||
//) {
|
||||
|
||||
Reference in New Issue
Block a user