CS and minor changes

This commit is contained in:
Eduardo Gulias Davis
2014-01-12 18:13:13 +01:00
parent dd9541be28
commit 1a859493ee
4 changed files with 1 additions and 7 deletions
-2
View File
@@ -1,4 +1,2 @@
report/
vendor/
.idea
.local.php.vimrc
+1 -1
View File
@@ -1,4 +1,4 @@
EmailValidator [![Build Status](https://travis-ci.org/egulias/EmailValidator.png?branch=master)](https://travis-ci.org/egulias/EmailValidator)
EmailValidator [![Build Status](https://travis-ci.org/egulias/EmailValidator.png?branch=master)](https://travis-ci.org/egulias/EmailValidator) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/b18d473e-bd5a-4d88-a7b2-7aeaee0ebd7b/small.png)](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])
//) {