From 57f24766429b5d95ff72d1e3d492b8b5a907849f Mon Sep 17 00:00:00 2001 From: Brandon Lamb Date: Mon, 26 May 2014 13:37:13 -0700 Subject: [PATCH 1/2] Update docblocks, consistency/missing types, etc --- src/Valitron/Validator.php | 233 +++++++++++++++++++++++-------------- 1 file changed, 144 insertions(+), 89 deletions(-) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index bd669cb..8463d7b 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -1,4 +1,5 @@ Date: Mon, 26 May 2014 13:39:03 -0700 Subject: [PATCH 2/2] Add missing throws phpdoc --- src/Valitron/Validator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 8463d7b..7ee05a4 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -812,6 +812,7 @@ class Validator * @param string $fule * @param array $fields * @return $this + * @throws \InvalidArgumentException */ public function rule($rule, $fields) {