@@ -1972,8 +1972,7 @@ discard block |
||
1972 | 1972 | $this->stringify($this->value) |
1973 | 1973 | ); |
1974 | 1974 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath); |
1975 | - } |
|
1976 | - else |
|
1975 | + } else |
|
1977 | 1976 | { |
1978 | 1977 | $host = substr($this->value, strpos($this->value, '@') + 1); |
1979 | 1978 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2099,8 +2098,7 @@ discard block |
||
2099 | 2098 | try |
2100 | 2099 | { |
2101 | 2100 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath); |
2102 | - } |
|
2103 | - catch (AssertionFailedException $e) |
|
2101 | + } catch (AssertionFailedException $e) |
|
2104 | 2102 | { |
2105 | 2103 | $message = $message ?: $this->overrideError; |
2106 | 2104 | $message = sprintf( |