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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user