mirror of
https://github.com/Intervention/image.git
synced 2025-08-01 11:30:16 +02:00
fix
This commit is contained in:
@@ -14,8 +14,8 @@ class TextCommand extends \Intervention\Image\Commands\AbstractCommand
|
||||
public function execute($image)
|
||||
{
|
||||
$text = $this->argument(0)->required()->value();
|
||||
$x = $this->argument(1, 0)->type('numeric')->value();
|
||||
$y = $this->argument(2, 0)->type('numeric')->value();
|
||||
$x = $this->argument(1)->type('numeric')->value(0);
|
||||
$y = $this->argument(2)->type('numeric')->value(0);
|
||||
$callback = $this->argument(3)->type('closure')->value();
|
||||
|
||||
$fontclassname = sprintf('\Intervention\Image\%s\Font',
|
||||
|
@@ -12,7 +12,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand
|
||||
*/
|
||||
public function execute($image)
|
||||
{
|
||||
$source = $this->argument(0)->value();
|
||||
$source = $this->argument(0)->required()->value();
|
||||
$position = $this->argument(1)->type('string')->value();
|
||||
$x = $this->argument(2)->type('integer')->value(0);
|
||||
$y = $this->argument(3)->type('integer')->value(0);
|
||||
|
@@ -14,7 +14,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand
|
||||
*/
|
||||
public function execute($image)
|
||||
{
|
||||
$source = $this->argument(0)->value();
|
||||
$source = $this->argument(0)->required()->value();
|
||||
$position = $this->argument(1)->type('string')->value();
|
||||
$x = $this->argument(2)->type('integer')->value(0);
|
||||
$y = $this->argument(3)->type('integer')->value(0);
|
||||
|
Reference in New Issue
Block a user