@@ -1644,8 +1644,7 @@ discard block |
||
| 1644 | 1644 | $this->stringify($this->value) |
| 1645 | 1645 | ); |
| 1646 | 1646 | throw $this->createException($message, self::INVALID_EMAIL, $propertyPath); |
| 1647 | - } |
|
| 1648 | - else |
|
| 1647 | + } else |
|
| 1649 | 1648 | { |
| 1650 | 1649 | $host = substr($this->value, strpos($this->value, '@') + 1); |
| 1651 | 1650 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -1762,8 +1761,7 @@ discard block |
||
| 1762 | 1761 | try |
| 1763 | 1762 | { |
| 1764 | 1763 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath); |
| 1765 | - } |
|
| 1766 | - catch (AssertionFailedException $e) |
|
| 1764 | + } catch (AssertionFailedException $e) |
|
| 1767 | 1765 | { |
| 1768 | 1766 | $message = sprintf( |
| 1769 | 1767 | $message |