From ef2d2d85ff4a2b26446d63306c92e028b424cf73 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 22 Jun 2011 07:09:02 -0700 Subject: [PATCH] Improving validation code and comments. --- system/validation/rules/with_callback.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/validation/rules/with_callback.php b/system/validation/rules/with_callback.php index 7ddbb75e..8630b460 100644 --- a/system/validation/rules/with_callback.php +++ b/system/validation/rules/with_callback.php @@ -5,7 +5,7 @@ class With_Callback extends Rule { /** - * The callback. + * The callback that will be used to validate the attribute. * * @var function */ @@ -27,7 +27,7 @@ public function check($attribute, $attributes) if ( ! is_callable($this->callback)) { - throw new \Exception("A validation callback for the [$attribute] attribute is not callable."); + throw new \Exception("The validation callback for the [$attribute] attribute is not callable."); } return call_user_func($this->callback, $attributes[$attribute]);