mirror of
https://github.com/Intervention/image.git
synced 2025-01-29 17:57:50 +01:00
renamed Argument::get() to Argument::value()
This commit is contained in:
parent
3cd31b86ad
commit
2e98670930
@ -19,7 +19,7 @@ class Argument
|
||||
return isset($matches[1]) ? lcfirst($matches[1]).'()' : 'Method';
|
||||
}
|
||||
|
||||
public function get($default = null)
|
||||
public function value($default = null)
|
||||
{
|
||||
$arguments = $this->command->arguments;
|
||||
|
||||
@ -43,7 +43,7 @@ class Argument
|
||||
{
|
||||
$fail = false;
|
||||
|
||||
$value = $this->get();
|
||||
$value = $this->value();
|
||||
|
||||
if (is_null($value)) {
|
||||
return $this;
|
||||
@ -89,7 +89,7 @@ class Argument
|
||||
|
||||
public function between($x, $y)
|
||||
{
|
||||
$value = $this->type('numeric')->get();
|
||||
$value = $this->type('numeric')->value();
|
||||
|
||||
if (is_null($value)) {
|
||||
return $this;
|
||||
|
@ -200,7 +200,7 @@ class ArgumentTest extends PHPUnit_Framework_TestCase
|
||||
private function validateArgument($argument, $value)
|
||||
{
|
||||
$this->assertInstanceOf('\Intervention\Image\Commands\Argument', $argument);
|
||||
$this->assertEquals($value, $argument->get());
|
||||
$this->assertEquals($value, $argument->value());
|
||||
}
|
||||
|
||||
private function getMockedCommand($arguments = array())
|
||||
|
Loading…
x
Reference in New Issue
Block a user