@@ -154,8 +154,7 @@ discard block |
||
| 154 | 154 | try |
| 155 | 155 | { |
| 156 | 156 | $validator->__invoke(); |
| 157 | - } |
|
| 158 | - catch ( AssertionFailedException $e ) |
|
| 157 | + } catch ( AssertionFailedException $e ) |
|
| 159 | 158 | { |
| 160 | 159 | $errors[$fieldName] = $e->getMessage(); |
| 161 | 160 | } |
@@ -2020,8 +2019,7 @@ discard block |
||
| 2020 | 2019 | $this->stringify($this->value) |
| 2021 | 2020 | ); |
| 2022 | 2021 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath); |
| 2023 | - } |
|
| 2024 | - else |
|
| 2022 | + } else |
|
| 2025 | 2023 | { |
| 2026 | 2024 | $host = substr($this->value, strpos($this->value, '@') + 1); |
| 2027 | 2025 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2147,8 +2145,7 @@ discard block |
||
| 2147 | 2145 | try |
| 2148 | 2146 | { |
| 2149 | 2147 | $this->regex('/^04[0-9]{8})$/', $message, $propertyPath); |
| 2150 | - } |
|
| 2151 | - catch ( AssertionFailedException $e ) |
|
| 2148 | + } catch ( AssertionFailedException $e ) |
|
| 2152 | 2149 | { |
| 2153 | 2150 | $message = $message ?: $this->overrideError; |
| 2154 | 2151 | $message = sprintf( |
@@ -2178,8 +2175,7 @@ discard block |
||
| 2178 | 2175 | try |
| 2179 | 2176 | { |
| 2180 | 2177 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath); |
| 2181 | - } |
|
| 2182 | - catch (AssertionFailedException $e) |
|
| 2178 | + } catch (AssertionFailedException $e) |
|
| 2183 | 2179 | { |
| 2184 | 2180 | $message = $message ?: $this->overrideError; |
| 2185 | 2181 | $message = sprintf( |