@@ -158,8 +158,7 @@ discard block |
||
158 | 158 | try |
159 | 159 | { |
160 | 160 | $validator->__invoke(); |
161 | - } |
|
162 | - catch ( AssertionFailedException $e ) |
|
161 | + } catch ( AssertionFailedException $e ) |
|
163 | 162 | { |
164 | 163 | $errors[$fieldName] = $e->getMessage(); |
165 | 164 | } |
@@ -2250,8 +2249,7 @@ discard block |
||
2250 | 2249 | ); |
2251 | 2250 | |
2252 | 2251 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $fieldName); |
2253 | - } |
|
2254 | - else |
|
2252 | + } else |
|
2255 | 2253 | { |
2256 | 2254 | $host = substr($this->value, strpos($this->value, '@') + 1); |
2257 | 2255 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2424,8 +2422,7 @@ discard block |
||
2424 | 2422 | try |
2425 | 2423 | { |
2426 | 2424 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName); |
2427 | - } |
|
2428 | - catch (AssertionFailedException $e) |
|
2425 | + } catch (AssertionFailedException $e) |
|
2429 | 2426 | { |
2430 | 2427 | $message = $message ?: $this->overrideError; |
2431 | 2428 | $message = sprintf( |
@@ -2731,8 +2728,7 @@ discard block |
||
2731 | 2728 | try |
2732 | 2729 | { |
2733 | 2730 | $this->email($message, $fieldName); |
2734 | - } |
|
2735 | - catch (AssertionFailedException $e) |
|
2731 | + } catch (AssertionFailedException $e) |
|
2736 | 2732 | { |
2737 | 2733 | $message = $message ?: $this->overrideError; |
2738 | 2734 | $message = sprintf( |