From 78301fb8c7ee10a3bb0d67ac911c56ba3d42ec96 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 21 Jun 2011 22:22:52 -0500 Subject: [PATCH] fixed bugs in validation classes. --- system/validation/rules/format_of.php | 2 +- system/validation/rules/uniqueness_of.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/validation/rules/format_of.php b/system/validation/rules/format_of.php index df0cd2de..c615b443 100644 --- a/system/validation/rules/format_of.php +++ b/system/validation/rules/format_of.php @@ -34,7 +34,7 @@ class Format_Of extends Rule { * @param string $expression * @return Format_Of */ - public function with($expression) + public function using($expression) { $this->expression = $expression; return $this; diff --git a/system/validation/rules/uniqueness_of.php b/system/validation/rules/uniqueness_of.php index 938e813a..3e89fd49 100644 --- a/system/validation/rules/uniqueness_of.php +++ b/system/validation/rules/uniqueness_of.php @@ -39,7 +39,7 @@ class Uniqueness_Of extends Rule { $this->column = $attribute; } - return DB::table(Eloquent::table($this->table)->where($this->column, '=', $attributes[$attribute])->count() == 0; + return DB::table(Eloquent::table($this->table))->where($this->column, '=', $attributes[$attribute])->count() == 0; } /**