From 478dca3b8ed348c4c899de72310eb02343ff7010 Mon Sep 17 00:00:00 2001 From: vlakoff Date: Sun, 23 Apr 2017 03:29:03 +0200 Subject: [PATCH] Indicate the default boolean value For explicitness and consistency. --- src/Intervention/Image/Gd/Commands/ResizeCanvasCommand.php | 2 +- src/Intervention/Image/Imagick/Commands/ResizeCanvasCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Intervention/Image/Gd/Commands/ResizeCanvasCommand.php b/src/Intervention/Image/Gd/Commands/ResizeCanvasCommand.php index c88e6f19..70739fff 100644 --- a/src/Intervention/Image/Gd/Commands/ResizeCanvasCommand.php +++ b/src/Intervention/Image/Gd/Commands/ResizeCanvasCommand.php @@ -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(); diff --git a/src/Intervention/Image/Imagick/Commands/ResizeCanvasCommand.php b/src/Intervention/Image/Imagick/Commands/ResizeCanvasCommand.php index 8884230e..f394c15d 100644 --- a/src/Intervention/Image/Imagick/Commands/ResizeCanvasCommand.php +++ b/src/Intervention/Image/Imagick/Commands/ResizeCanvasCommand.php @@ -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();