From 06765e9aa3730bf6e05980362832c27945260c5e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 16 Oct 2011 14:27:23 -0500 Subject: [PATCH] continuing to refactor the validator. --- laravel/validation/validator.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/laravel/validation/validator.php b/laravel/validation/validator.php index 6db3832b..2084f959 100644 --- a/laravel/validation/validator.php +++ b/laravel/validation/validator.php @@ -495,11 +495,6 @@ protected function validate_mimes($attribute, $parameters) /** * Get the proper error message for an attribute and rule. * - * Developer specified attribute specific rules take first priority. - * Developer specified error rules take second priority. If the error - * message has not been specified by the developer, the default will - * be used from the validation language file. - * * @param string $attribute * @param string $rule * @return string @@ -520,7 +515,6 @@ protected function message($attribute, $rule) { return $this->messages[$rule]; } - // If the elseif (in_array($rule, $this->size_rules) and ! $this->has_rule($attribute, $this->numeric_rules)) { $line = (array_key_exists($attribute, Input::file())) ? "file" : "string";