@@ -62,7 +62,6 @@ |
||
| 62 | 62 | * Sets a rule factory by name. |
| 63 | 63 | * |
| 64 | 64 | * @param string $name The rule name. |
| 65 | - * @param callable $spec A callable that returns a rule. |
|
| 66 | 65 | * |
| 67 | 66 | * @return void |
| 68 | 67 | */ |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $str String to convert case. |
| 45 | 45 | * |
| 46 | - * @return int |
|
| 46 | + * @return string |
|
| 47 | 47 | */ |
| 48 | 48 | protected function ucwords($str) |
| 49 | 49 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @param string $str String to convert case. |
| 61 | 61 | * |
| 62 | - * @return int |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function ucfirst($str) |
| 65 | 65 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $str String to convert case. |
| 84 | 84 | * |
| 85 | - * @return int |
|
| 85 | + * @return string |
|
| 86 | 86 | */ |
| 87 | 87 | protected function lcfirst($str) |
| 88 | 88 | { |
@@ -214,11 +214,11 @@ discard block |
||
| 214 | 214 | * Userland UTF-8-aware implementation of `str_pad()`. |
| 215 | 215 | * |
| 216 | 216 | * @param string $input The input string. |
| 217 | - * @param int $pad_length If the value of pad_length is negative, less than, or equal to the length of the input |
|
| 217 | + * @param integer $padLength If the value of pad_length is negative, less than, or equal to the length of the input |
|
| 218 | 218 | * string, no padding takes place. |
| 219 | - * @param string $pad_str Pad with this string. The pad_string may be truncated if the required number of padding |
|
| 219 | + * @param string $padStr Pad with this string. The pad_string may be truncated if the required number of padding |
|
| 220 | 220 | * characters can't be evenly divided by the pad_string's length. |
| 221 | - * @param int $pad_type Optional argument pad_type can be STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If pad_type |
|
| 221 | + * @param integer $padType Optional argument pad_type can be STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If pad_type |
|
| 222 | 222 | * is not specified it is assumed to be STR_PAD_RIGHT. |
| 223 | 223 | * |
| 224 | 224 | * @return string |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @param string $field The subject field name. |
| 14 | 14 | * @param int $min The minimum length. |
| 15 | 15 | * @param int $max The maximum length. |
| 16 | - * @param string $pad_string Pad using this string. |
|
| 17 | - * @param int $pad_type A `STR_PAD_*` constant. |
|
| 16 | + * @param string $padString Pad using this string. |
|
| 17 | + * @param int $padType A `STR_PAD_*` constant. |
|
| 18 | 18 | * |
| 19 | 19 | * @return bool True if the value was sanitized, false if not. |
| 20 | 20 | */ |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | * @param object $subject The subject to be filtered. |
| 13 | 13 | * @param string $field The subject field name. |
| 14 | 14 | * @param int $len The string length. |
| 15 | - * @param string $pad_string Pad using this string. |
|
| 16 | - * @param int $pad_type A `STR_PAD_*` constant. |
|
| 15 | + * @param string $padString Pad using this string. |
|
| 16 | + * @param int $padType A `STR_PAD_*` constant. |
|
| 17 | 17 | * |
| 18 | 18 | * @return bool True if the value was sanitized, false if not. |
| 19 | 19 | */ |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | * @param object $subject The subject to be filtered. |
| 13 | 13 | * @param string $field The subject field name. |
| 14 | 14 | * @param int $min The minimum length. |
| 15 | - * @param string $pad_string Pad using this string. |
|
| 16 | - * @param int $pad_type A `STR_PAD_*` constant. |
|
| 15 | + * @param string $padString Pad using this string. |
|
| 16 | + * @param int $padType A `STR_PAD_*` constant. |
|
| 17 | 17 | * |
| 18 | 18 | * @return bool True if the value was sanitized, false if not. |
| 19 | 19 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @param object $subject The subject to be filtered. |
| 11 | 11 | * @param string $field The subject field name. |
| 12 | - * @param mixed $other_value The value to set. |
|
| 12 | + * @param mixed $otherValue The value to set. |
|
| 13 | 13 | * |
| 14 | 14 | * @return bool Always true. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @param $subject |
| 11 | 11 | * @param $field |
| 12 | - * @param null $max |
|
| 12 | + * @param null|integer $max |
|
| 13 | 13 | * |
| 14 | 14 | * @return bool |
| 15 | 15 | */ |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Tests if a 13 digit ISBN is correct. |
| 44 | 44 | * |
| 45 | - * @param mixed $value The value to test. |
|
| 45 | + * @param string $value The value to test. |
|
| 46 | 46 | * |
| 47 | 47 | * @return bool |
| 48 | 48 | */ |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Tests if a 10 digit ISBN is correct. |
| 68 | 68 | * |
| 69 | - * @param mixed $value The value to test. |
|
| 69 | + * @param string $value The value to test. |
|
| 70 | 70 | * |
| 71 | 71 | * @return bool |
| 72 | 72 | */ |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * Sets the rule and ruleName for the spec. |
| 171 | 171 | * |
| 172 | - * @param $ruleName |
|
| 172 | + * @param string $ruleName |
|
| 173 | 173 | * |
| 174 | 174 | * @throws ValidationException |
| 175 | 175 | * |
@@ -252,7 +252,6 @@ discard block |
||
| 252 | 252 | * The optional second argument is used to supply an array of white listed items that should be considered blank. |
| 253 | 253 | * |
| 254 | 254 | * @param mixed $subject |
| 255 | - * @param array $blankWhiteList |
|
| 256 | 255 | * |
| 257 | 256 | * @return bool |
| 258 | 257 | */ |