@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * clear all existing errors |
| 253 | 253 | * |
| 254 | - * @return bool |
|
| 254 | + * @return boolean|null |
|
| 255 | 255 | */ |
| 256 | 256 | public function clearErrors(){ |
| 257 | 257 | $this->errors = []; |
@@ -275,7 +275,6 @@ discard block |
||
| 275 | 275 | * min string length |
| 276 | 276 | * |
| 277 | 277 | * @param string $str |
| 278 | - * @param array $args(min) |
|
| 279 | 278 | * |
| 280 | 279 | * @return bool |
| 281 | 280 | */ |
@@ -287,7 +286,6 @@ discard block |
||
| 287 | 286 | * max string length |
| 288 | 287 | * |
| 289 | 288 | * @param string $str |
| 290 | - * @param array $args(max) |
|
| 291 | 289 | * |
| 292 | 290 | * @return bool |
| 293 | 291 | */ |
@@ -299,7 +297,6 @@ discard block |
||
| 299 | 297 | * check if number between given range of numbers |
| 300 | 298 | * |
| 301 | 299 | * @param int $num |
| 302 | - * @param array $args(min,max) |
|
| 303 | 300 | * @return bool |
| 304 | 301 | */ |
| 305 | 302 | private function rangeNum($num, $args){ |
@@ -340,7 +337,7 @@ discard block |
||
| 340 | 337 | * check if value is contains alphabetic characters and numbers |
| 341 | 338 | * |
| 342 | 339 | * @param mixed $value |
| 343 | - * @return bool |
|
| 340 | + * @return integer |
|
| 344 | 341 | */ |
| 345 | 342 | private function alphaNum($value){ |
| 346 | 343 | return preg_match('/\A[a-z0-9]+\z/i', $value); |
@@ -350,7 +347,7 @@ discard block |
||
| 350 | 347 | * check if value is contains alphabetic characters, numbers and spaces |
| 351 | 348 | * |
| 352 | 349 | * @param mixed $value |
| 353 | - * @return bool |
|
| 350 | + * @return integer |
|
| 354 | 351 | */ |
| 355 | 352 | private function alphaNumWithSpaces($value){ |
| 356 | 353 | return preg_match('/\A[a-z0-9 ]+\z/i', $value); |
@@ -364,7 +361,7 @@ discard block |
||
| 364 | 361 | * - one special(non-word) character |
| 365 | 362 | * |
| 366 | 363 | * @param mixed $value |
| 367 | - * @return bool |
|
| 364 | + * @return integer |
|
| 368 | 365 | * @see http://stackoverflow.com/questions/8141125/regex-for-password-php |
| 369 | 366 | * @see http://code.runnable.com/UmrnTejI6Q4_AAIM/how-to-validate-complex-passwords-using-regular-expressions-for-php-and-pcre |
| 370 | 367 | */ |
@@ -376,7 +373,6 @@ discard block |
||
| 376 | 373 | * check if value is equals to another value(strings) |
| 377 | 374 | * |
| 378 | 375 | * @param string $value |
| 379 | - * @param array $args(value) |
|
| 380 | 376 | * @return bool |
| 381 | 377 | */ |
| 382 | 378 | private function equals($value, $args){ |
@@ -387,7 +383,6 @@ discard block |
||
| 387 | 383 | * check if value is not equal to another value(strings) |
| 388 | 384 | * |
| 389 | 385 | * @param string $value |
| 390 | - * @param array $args(value) |
|
| 391 | 386 | * @return bool |
| 392 | 387 | */ |
| 393 | 388 | private function notEqual($value, $args){ |
@@ -412,7 +407,6 @@ discard block |
||
| 412 | 407 | * check if a value of a column is unique. |
| 413 | 408 | * |
| 414 | 409 | * @param string $value |
| 415 | - * @param array $args(table, column) |
|
| 416 | 410 | * @return bool |
| 417 | 411 | */ |
| 418 | 412 | private function unique($value, $args){ |
@@ -568,7 +562,6 @@ discard block |
||
| 568 | 562 | * checks from file size |
| 569 | 563 | * |
| 570 | 564 | * @param array $file |
| 571 | - * @param array $args(min,max) |
|
| 572 | 565 | * @return bool |
| 573 | 566 | */ |
| 574 | 567 | private function fileSize($file, $args){ |
@@ -594,7 +587,6 @@ discard block |
||
| 594 | 587 | * checks from image size(dimensions) |
| 595 | 588 | * |
| 596 | 589 | * @param array $file |
| 597 | - * @param array $dimensions(width,height) |
|
| 598 | 590 | * @return bool |
| 599 | 591 | */ |
| 600 | 592 | private function imageSize($file, $dimensions){ |
@@ -671,7 +663,7 @@ discard block |
||
| 671 | 663 | * you need to change it here as well. |
| 672 | 664 | * |
| 673 | 665 | * @param string $rule |
| 674 | - * @return mixed |
|
| 666 | + * @return string|null |
|
| 675 | 667 | */ |
| 676 | 668 | private static function defaultMessages($rule){ |
| 677 | 669 | $messages = [ |