From 4a4a79ce3434343b98093d4be448fc1e9e3f3e6f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 07:24:28 -0700 Subject: [PATCH] Remove comment bloat from Validator class. --- system/validator.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/system/validator.php b/system/validator.php index eb4532f0..b4f87ccb 100644 --- a/system/validator.php +++ b/system/validator.php @@ -38,10 +38,7 @@ class Validator { $target = Input::get(); } - // --------------------------------------------------------- - // If the source is an Eloquent model, use the model's - // attributes as the validation attributes. - // --------------------------------------------------------- + // If the source is an Eloquent model, use the model's attributes as the validation attributes. $this->attributes = ($target instanceof DB\Eloquent) ? $target->attributes : (array) $target; } @@ -67,10 +64,6 @@ class Validator { foreach ($this->rules as $rule) { - // --------------------------------------------------------- - // The error collector is passed to the rule so that the - // rule may conveniently add error messages. - // --------------------------------------------------------- $rule->validate($this->attributes, $this->errors); } @@ -82,10 +75,6 @@ class Validator { */ public function __call($method, $parameters) { - // --------------------------------------------------------- - // Check if the validation rule is defined in the rules - // directory. If it is, create a new rule and return it. - // --------------------------------------------------------- if (file_exists(SYS_PATH.'validation/rules/'.$method.EXT)) { $rule = '\\System\\Validation\\Rules\\'.$method;