@@ -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 | */ |
@@ -83,7 +83,6 @@ |
||
83 | 83 | /** |
84 | 84 | * Allow blank values to pass validation. |
85 | 85 | * |
86 | - * @param array $allowedBlanks |
|
87 | 86 | * |
88 | 87 | * @return ValidateSpec |
89 | 88 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param string $str string to convert case. |
46 | 46 | * |
47 | - * @return int |
|
47 | + * @return string |
|
48 | 48 | */ |
49 | 49 | protected function ucwords($str) |
50 | 50 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @param string $str string to convert case. |
62 | 62 | * |
63 | - * @return int |
|
63 | + * @return string |
|
64 | 64 | */ |
65 | 65 | protected function ucfirst($str) |
66 | 66 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @param string $str string to convert case. |
85 | 85 | * |
86 | - * @return int |
|
86 | + * @return string |
|
87 | 87 | */ |
88 | 88 | protected function lcfirst($str) |
89 | 89 | { |
@@ -215,11 +215,11 @@ discard block |
||
215 | 215 | * Userland UTF-8-aware implementation of `str_pad()`. |
216 | 216 | * |
217 | 217 | * @param string $input The input string. |
218 | - * @param int $pad_length If the value of pad_length is negative, less than, or equal to the length of the input |
|
218 | + * @param integer $padLength If the value of pad_length is negative, less than, or equal to the length of the input |
|
219 | 219 | * string, no padding takes place. |
220 | - * @param string $pad_str Pad with this string. The pad_string may be truncated if the required number of padding |
|
220 | + * @param string $padStr Pad with this string. The pad_string may be truncated if the required number of padding |
|
221 | 221 | * characters can't be evenly divided by the pad_string's length. |
222 | - * @param int $pad_type Optional argument pad_type can be STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If pad_type |
|
222 | + * @param integer $padType Optional argument pad_type can be STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If pad_type |
|
223 | 223 | * is not specified it is assumed to be STR_PAD_RIGHT. |
224 | 224 | * |
225 | 225 | * @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 | */ |
@@ -247,7 +247,6 @@ |
||
247 | 247 | * The optional second argument is used to supply an array of white listed items that should be considered blank. |
248 | 248 | * |
249 | 249 | * @param mixed $subject |
250 | - * @param array $blankWhiteList |
|
251 | 250 | * |
252 | 251 | * @return bool |
253 | 252 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Mbright\Validation\Spec; |
4 | 4 | |
5 | 5 | use Mbright\Validation\Exception\RuleClassNotDefinedException; |
6 | -use Mbright\Validation\Exception\ValidationException; |
|
7 | 6 | |
8 | 7 | abstract class AbstractSpec |
9 | 8 | { |