@@ -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 | { |
@@ -114,8 +114,6 @@ |
||
114 | 114 | * Configure the validator to sanitize the given $field, with the given $rule. |
115 | 115 | * |
116 | 116 | * @param string $field |
117 | - * @param string $ruleName |
|
118 | - * @param array $args |
|
119 | 117 | * |
120 | 118 | * @return SanitizeSpec |
121 | 119 | */ |
@@ -2,12 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Mbright\Validation; |
4 | 4 | |
5 | -use Mbright\Validation\Exception\ValidationException; |
|
6 | 5 | use Mbright\Validation\Exception\ValidationFailureException; |
6 | +use Mbright\Validation\Failure\FailureCollection; |
|
7 | 7 | use Mbright\Validation\Spec\AbstractSpec; |
8 | 8 | use Mbright\Validation\Spec\SanitizeSpec; |
9 | 9 | use Mbright\Validation\Spec\ValidateSpec; |
10 | -use Mbright\Validation\Failure\FailureCollection; |
|
11 | 10 | |
12 | 11 | class Validator |
13 | 12 | { |