1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 01:00:06 +02:00

Indicate the default boolean value

For explicitness and consistency.
This commit is contained in:
vlakoff
2017-04-23 03:29:03 +02:00
parent 836026b47f
commit 478dca3b8e
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
$width = $this->argument(0)->type('digit')->required()->value();
$height = $this->argument(1)->type('digit')->required()->value();
$anchor = $this->argument(2)->value('center');
$relative = $this->argument(3)->type('boolean')->value();
$relative = $this->argument(3)->type('boolean')->value(false);
$bgcolor = $this->argument(4)->value();
$original_width = $image->getWidth();

View File

@@ -15,7 +15,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
$width = $this->argument(0)->type('digit')->required()->value();
$height = $this->argument(1)->type('digit')->required()->value();
$anchor = $this->argument(2)->value('center');
$relative = $this->argument(3)->type('boolean')->value();
$relative = $this->argument(3)->type('boolean')->value(false);
$bgcolor = $this->argument(4)->value();
$original_width = $image->getWidth();