Scrutinized

This commit is contained in:
Eduardo Gulias Davis
2013-05-19 18:53:14 +02:00
parent 2f0f5ed6da
commit 0567c22d4a
3 changed files with 4 additions and 4 deletions
+3
View File
@@ -4,6 +4,9 @@ EmailValidator
#Installation#
Install via composer.
##Build Status##
[![Build Status](https://travis-ci.org/egulias/EmailValidator.png?branch=master)](https://travis-ci.org/egulias/EmailValidator)
#Usage#
Simple example:
@@ -189,7 +189,6 @@ class EmailParser extends AbstractParser
$this->warnings[] = EmailValidator::RFC5322_IPV6_COLONSTRT;
}
} catch (\Exception $e) {
break;
}
}
@@ -246,7 +245,6 @@ class EmailParser extends AbstractParser
$maxGroups = 8;
$matchesIP = array();
$index = 0;
// Extract IPv4 part from the end of the address-literal (if there is one)
if (preg_match(
@@ -276,7 +274,6 @@ class EmailParser extends AbstractParser
$matchesIP = explode(':', $IPv6);
$groupCount = count($matchesIP);
$colons = strpos($IPv6, '::');
$matches = array();
if (count(preg_grep('/^[0-9A-Fa-f]{0,4}$/', $matchesIP, PREG_GREP_INVERT)) !== 0) {
// Check for unmatched characters
@@ -226,7 +226,7 @@ class EmailValidator
!in_array(self::DNSWARN_NO_MX_RECORD, $this->warnings))
) {
if (in_array(RFC5322_DOMAINLITERAL)) {
if (in_array($this->warnings, RFC5322_DOMAINLITERAL)) {
$this->warnings[] = self::RFC5321_TLD;
}