@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | - * @param $exceptionClass |
|
300 | + * @param string $exceptionClass |
|
301 | 301 | * @return Assert |
302 | 302 | */ |
303 | 303 | public function setExceptionClass($exceptionClass) |
@@ -1353,7 +1353,7 @@ discard block |
||
1353 | 1353 | /** |
1354 | 1354 | * Alias of {@see choice()} |
1355 | 1355 | * |
1356 | - * @param array $choices |
|
1356 | + * @param integer[] $choices |
|
1357 | 1357 | * @param string|null $message |
1358 | 1358 | * @param string|null $fieldName |
1359 | 1359 | * @return Assert |
@@ -2593,7 +2593,7 @@ discard block |
||
2593 | 2593 | } |
2594 | 2594 | |
2595 | 2595 | /** |
2596 | - * @param $func |
|
2596 | + * @param string $func |
|
2597 | 2597 | * @param $args |
2598 | 2598 | * @return bool |
2599 | 2599 | * @throws AssertionFailedException |
@@ -157,8 +157,7 @@ discard block |
||
157 | 157 | try |
158 | 158 | { |
159 | 159 | $validator->__invoke(); |
160 | - } |
|
161 | - catch ( AssertionFailedException $e ) |
|
160 | + } catch ( AssertionFailedException $e ) |
|
162 | 161 | { |
163 | 162 | $errors[$fieldName] = $e->getMessage(); |
164 | 163 | } |
@@ -179,8 +178,7 @@ discard block |
||
179 | 178 | try |
180 | 179 | { |
181 | 180 | $validator->__invoke(); |
182 | - } |
|
183 | - catch ( AssertionFailedException $e ) |
|
181 | + } catch ( AssertionFailedException $e ) |
|
184 | 182 | { |
185 | 183 | $errors[$fieldName] = $e->getMessage(); |
186 | 184 | } |
@@ -2101,8 +2099,7 @@ discard block |
||
2101 | 2099 | $this->stringify($this->value) |
2102 | 2100 | ); |
2103 | 2101 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $fieldName); |
2104 | - } |
|
2105 | - else |
|
2102 | + } else |
|
2106 | 2103 | { |
2107 | 2104 | $host = substr($this->value, strpos($this->value, '@') + 1); |
2108 | 2105 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2230,8 +2227,7 @@ discard block |
||
2230 | 2227 | try |
2231 | 2228 | { |
2232 | 2229 | $this->regex('/^04[0-9]{8})$/', $message, $fieldName); |
2233 | - } |
|
2234 | - catch ( AssertionFailedException $e ) |
|
2230 | + } catch ( AssertionFailedException $e ) |
|
2235 | 2231 | { |
2236 | 2232 | $message = $message ?: $this->overrideError; |
2237 | 2233 | $message = sprintf( |
@@ -2261,8 +2257,7 @@ discard block |
||
2261 | 2257 | try |
2262 | 2258 | { |
2263 | 2259 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName); |
2264 | - } |
|
2265 | - catch (AssertionFailedException $e) |
|
2260 | + } catch (AssertionFailedException $e) |
|
2266 | 2261 | { |
2267 | 2262 | $message = $message ?: $this->overrideError; |
2268 | 2263 | $message = sprintf( |
@@ -2550,8 +2545,7 @@ discard block |
||
2550 | 2545 | try |
2551 | 2546 | { |
2552 | 2547 | $this->email($message, $fieldName); |
2553 | - } |
|
2554 | - catch (AssertionFailedException $e) |
|
2548 | + } catch (AssertionFailedException $e) |
|
2555 | 2549 | { |
2556 | 2550 | $message = $message ?: $this->overrideError; |
2557 | 2551 | $message = sprintf( |