@@ -158,8 +158,7 @@ discard block |
||
| 158 | 158 | { |
| 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 | } |
@@ -2206,8 +2205,7 @@ discard block |
||
| 2206 | 2205 | ); |
| 2207 | 2206 | |
| 2208 | 2207 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $fieldName); |
| 2209 | - } |
|
| 2210 | - else |
|
| 2208 | + } else |
|
| 2211 | 2209 | { |
| 2212 | 2210 | $host = substr($this->value, strpos($this->value, '@') + 1); |
| 2213 | 2211 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2341,8 +2339,7 @@ discard block |
||
| 2341 | 2339 | try |
| 2342 | 2340 | { |
| 2343 | 2341 | $this->regex('/^04[0-9]{8})$/', $message, $fieldName); |
| 2344 | - } |
|
| 2345 | - catch ( AssertionFailedException $e ) |
|
| 2342 | + } catch ( AssertionFailedException $e ) |
|
| 2346 | 2343 | { |
| 2347 | 2344 | $message = $message ?: $this->overrideError; |
| 2348 | 2345 | $message = sprintf( |
@@ -2374,8 +2371,7 @@ discard block |
||
| 2374 | 2371 | try |
| 2375 | 2372 | { |
| 2376 | 2373 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName); |
| 2377 | - } |
|
| 2378 | - catch (AssertionFailedException $e) |
|
| 2374 | + } catch (AssertionFailedException $e) |
|
| 2379 | 2375 | { |
| 2380 | 2376 | $message = $message ?: $this->overrideError; |
| 2381 | 2377 | $message = sprintf( |
@@ -2681,8 +2677,7 @@ discard block |
||
| 2681 | 2677 | try |
| 2682 | 2678 | { |
| 2683 | 2679 | $this->email($message, $fieldName); |
| 2684 | - } |
|
| 2685 | - catch (AssertionFailedException $e) |
|
| 2680 | + } catch (AssertionFailedException $e) |
|
| 2686 | 2681 | { |
| 2687 | 2682 | $message = $message ?: $this->overrideError; |
| 2688 | 2683 | $message = sprintf( |