Commit ef2d2d85 authored by Taylor Otwell's avatar Taylor Otwell

Improving validation code and comments.

parent 4d892ad3
...@@ -5,7 +5,7 @@ use System\Validation\Rule; ...@@ -5,7 +5,7 @@ use System\Validation\Rule;
class With_Callback extends Rule { class With_Callback extends Rule {
/** /**
* The callback. * The callback that will be used to validate the attribute.
* *
* @var function * @var function
*/ */
...@@ -27,7 +27,7 @@ class With_Callback extends Rule { ...@@ -27,7 +27,7 @@ class With_Callback extends Rule {
if ( ! is_callable($this->callback)) 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]); return call_user_func($this->callback, $attributes[$attribute]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment