1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 11:30:16 +02:00
This commit is contained in:
Oliver Vogel
2014-05-17 23:43:44 +02:00
parent a9f97363ce
commit e5cc8d6331
3 changed files with 4 additions and 4 deletions

View File

@@ -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',

View File

@@ -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);

View File

@@ -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);