@@ -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 |
@@ -2385,8 +2383,7 @@ discard block |
||
| 2385 | 2383 | try |
| 2386 | 2384 | { |
| 2387 | 2385 | $this->regex('/^04([0-9]{8})$/', $message, $fieldName); |
| 2388 | - } |
|
| 2389 | - catch ( AssertionFailedException $e ) |
|
| 2386 | + } catch ( AssertionFailedException $e ) |
|
| 2390 | 2387 | { |
| 2391 | 2388 | $message = $message ?: $this->overrideError; |
| 2392 | 2389 | $message = sprintf( |
@@ -2418,8 +2415,7 @@ discard block |
||
| 2418 | 2415 | try |
| 2419 | 2416 | { |
| 2420 | 2417 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName); |
| 2421 | - } |
|
| 2422 | - catch (AssertionFailedException $e) |
|
| 2418 | + } catch (AssertionFailedException $e) |
|
| 2423 | 2419 | { |
| 2424 | 2420 | $message = $message ?: $this->overrideError; |
| 2425 | 2421 | $message = sprintf( |
@@ -2725,8 +2721,7 @@ discard block |
||
| 2725 | 2721 | try |
| 2726 | 2722 | { |
| 2727 | 2723 | $this->email($message, $fieldName); |
| 2728 | - } |
|
| 2729 | - catch (AssertionFailedException $e) |
|
| 2724 | + } catch (AssertionFailedException $e) |
|
| 2730 | 2725 | { |
| 2731 | 2726 | $message = $message ?: $this->overrideError; |
| 2732 | 2727 | $message = sprintf( |