@@ -1997,8 +1997,7 @@ discard block |
||
1997 | 1997 | $this->stringify($this->value) |
1998 | 1998 | ); |
1999 | 1999 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath); |
2000 | - } |
|
2001 | - else |
|
2000 | + } else |
|
2002 | 2001 | { |
2003 | 2002 | $host = substr($this->value, strpos($this->value, '@') + 1); |
2004 | 2003 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2124,8 +2123,7 @@ discard block |
||
2124 | 2123 | try |
2125 | 2124 | { |
2126 | 2125 | $this->regex('/^04[0-9]{8})$/', $message, $propertyPath); |
2127 | - } |
|
2128 | - catch ( AssertionFailedException $e ) |
|
2126 | + } catch ( AssertionFailedException $e ) |
|
2129 | 2127 | { |
2130 | 2128 | $message = $message ?: $this->overrideError; |
2131 | 2129 | $message = sprintf( |
@@ -2155,8 +2153,7 @@ discard block |
||
2155 | 2153 | try |
2156 | 2154 | { |
2157 | 2155 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath); |
2158 | - } |
|
2159 | - catch (AssertionFailedException $e) |
|
2156 | + } catch (AssertionFailedException $e) |
|
2160 | 2157 | { |
2161 | 2158 | $message = $message ?: $this->overrideError; |
2162 | 2159 | $message = sprintf( |
@@ -2441,8 +2438,7 @@ discard block |
||
2441 | 2438 | try |
2442 | 2439 | { |
2443 | 2440 | $this->email($message, $propertyPath); |
2444 | - } |
|
2445 | - catch (AssertionFailedException $e) |
|
2441 | + } catch (AssertionFailedException $e) |
|
2446 | 2442 | { |
2447 | 2443 | $message = $message ?: $this->overrideError; |
2448 | 2444 | $message = sprintf( |