From 1803304e115a15b9c73895d1c9dddcea82ace8a0 Mon Sep 17 00:00:00 2001 From: MGatner Date: Tue, 20 Aug 2019 10:04:53 -0400 Subject: [PATCH] Change save() return value --- system/Images/Handlers/ImageMagickHandler.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/Images/Handlers/ImageMagickHandler.php b/system/Images/Handlers/ImageMagickHandler.php index f928b2868946..3adf8e7566c8 100644 --- a/system/Images/Handlers/ImageMagickHandler.php +++ b/system/Images/Handlers/ImageMagickHandler.php @@ -232,9 +232,10 @@ public function getVersion(): string * @param string $action * @param integer $quality * - * @return ImageMagickHandler|boolean + * @return array Lines of output from shell command + * @throws \Exception */ - protected function process(string $action, int $quality = 100) + protected function process(string $action, int $quality = 100): array { // Do we have a vaild library path? if (empty($this->config->libraryPath)) @@ -303,8 +304,8 @@ public function save(string $target = null, int $quality = 90): bool $result = $this->process($action, $quality); unlink($this->resource); - - return $result; + + return true; } //--------------------------------------------------------------------