Skip to content

Commit

Permalink
fixed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony committed Oct 28, 2015
1 parent b70466e commit 5c0bc60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
composer.phar
vendor/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock
5 changes: 1 addition & 4 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
composer.phar
vendor/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock
6 changes: 3 additions & 3 deletions src/PHPixie/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ public function __construct()
$this->builder = $this->buildBuilder();
}

public function valueValidator($callback = null)
public function validator($callback = null)
{
$rule = $this->rules()->value();
if($callback !== null) {
$callback($rule);
}
return $this->validator($rule);
return $this->buildValidator($rule);
}

public function validator($rule)
public function buildValidator($rule)
{
return $this->builder->validator($rule);
}
Expand Down

0 comments on commit 5c0bc60

Please sign in to comment.