Skip to content

Commit 1803304

Browse files
authored
Change save() return value
1 parent 868e0d0 commit 1803304

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

system/Images/Handlers/ImageMagickHandler.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ public function getVersion(): string
232232
* @param string $action
233233
* @param integer $quality
234234
*
235-
* @return ImageMagickHandler|boolean
235+
* @return array Lines of output from shell command
236+
* @throws \Exception
236237
*/
237-
protected function process(string $action, int $quality = 100)
238+
protected function process(string $action, int $quality = 100): array
238239
{
239240
// Do we have a vaild library path?
240241
if (empty($this->config->libraryPath))
@@ -303,8 +304,8 @@ public function save(string $target = null, int $quality = 90): bool
303304
$result = $this->process($action, $quality);
304305

305306
unlink($this->resource);
306-
307-
return $result;
307+
308+
return true;
308309
}
309310

310311
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)