Skip to content

Commit

Permalink
Rename method.
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu committed Aug 3, 2015
1 parent 0048ceb commit 62b8974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class_alias(get_class($this), $alias);
*
* @return \Illuminate\Contracts\Validation\Factory
*/
public function getValidationFactory()
public function getFactory()
{
return $this->factory;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ public function setAsGlobal()
*/
public function __call($method, $arguments)
{
$factory = $this->getValidationFactory();
$factory = $this->getFactory();

return call_user_func_array([$factory, $method], $arguments);
}
Expand All @@ -140,7 +140,7 @@ public function __call($method, $arguments)
*/
public static function __callStatic($method, $arguments)
{
$factory = static::$instance->getValidationFactory();
$factory = static::$instance->getFactory();

return call_user_func_array([$factory, $method], $arguments);
}
Expand Down

0 comments on commit 62b8974

Please sign in to comment.