Skip to content

Commit 5c0bc60

Browse files
committed
fixed methods
1 parent b70466e commit 5c0bc60

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.gitignore

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

examples/.gitignore

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

src/PHPixie/Validate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ public function __construct()
1111
$this->builder = $this->buildBuilder();
1212
}
1313

14-
public function valueValidator($callback = null)
14+
public function validator($callback = null)
1515
{
1616
$rule = $this->rules()->value();
1717
if($callback !== null) {
1818
$callback($rule);
1919
}
20-
return $this->validator($rule);
20+
return $this->buildValidator($rule);
2121
}
2222

23-
public function validator($rule)
23+
public function buildValidator($rule)
2424
{
2525
return $this->builder->validator($rule);
2626
}

0 commit comments

Comments
 (0)