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