@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | } |
281 | 281 | |
282 | 282 | /** |
283 | - * @param $exceptionClass |
|
283 | + * @param string $exceptionClass |
|
284 | 284 | * @return Assert |
285 | 285 | */ |
286 | 286 | public function setExceptionClass($exceptionClass) |
@@ -1408,7 +1408,7 @@ discard block |
||
1408 | 1408 | /** |
1409 | 1409 | * Alias of {@see choice()} |
1410 | 1410 | * |
1411 | - * @param array $choices |
|
1411 | + * @param integer[] $choices |
|
1412 | 1412 | * @param string|null $message |
1413 | 1413 | * @param string|null $fieldName |
1414 | 1414 | * @return Assert |
@@ -2532,8 +2532,8 @@ discard block |
||
2532 | 2532 | |
2533 | 2533 | /** |
2534 | 2534 | * @param $interfaceName |
2535 | - * @param null $message |
|
2536 | - * @param null $fieldName |
|
2535 | + * @param string|null $message |
|
2536 | + * @param string|null $fieldName |
|
2537 | 2537 | * @return $this |
2538 | 2538 | * @throws AssertionFailedException |
2539 | 2539 | * @throws \ReflectionException |
@@ -2728,7 +2728,7 @@ discard block |
||
2728 | 2728 | } |
2729 | 2729 | |
2730 | 2730 | /** |
2731 | - * @param $func |
|
2731 | + * @param string $func |
|
2732 | 2732 | * @param $args |
2733 | 2733 | * @return bool |
2734 | 2734 | * @throws AssertionFailedException |
@@ -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( |