@@ -347,8 +347,7 @@ discard block |
||
| 347 | 347 | $closure->__invoke($this); |
| 348 | 348 | } |
| 349 | 349 | $this->getLogger()->info("[{$testName}] - " . $testCase->getSuccessMessage()); |
| 350 | - } |
|
| 351 | - catch ( \Exception $e ) |
|
| 350 | + } catch ( \Exception $e ) |
|
| 352 | 351 | { |
| 353 | 352 | $expectedCode = $testCase->getExceptionCode(); |
| 354 | 353 | $expectedClass = $testCase->getExceptionType(); |
@@ -1030,8 +1029,7 @@ discard block |
||
| 1030 | 1029 | if ( is_callable($this->formatter) ) |
| 1031 | 1030 | { |
| 1032 | 1031 | $message = $this->formatter->__invoke(static::$logLevels[$level][4], $message, $context); |
| 1033 | - } |
|
| 1034 | - else |
|
| 1032 | + } else |
|
| 1035 | 1033 | { |
| 1036 | 1034 | $message = $this->formatMessage($level, $message, $context); |
| 1037 | 1035 | } |
@@ -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( |