From 93fbe8dccec7b14c024259f83543bde4a95be298 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 29 Jan 2023 14:10:25 +0100 Subject: feat(PHP8.2): Fix deprecated string interpolation Signed-off-by: Florian Pritz --- application/libraries/Image/Drivers/imagemagick.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'application/libraries') diff --git a/application/libraries/Image/Drivers/imagemagick.php b/application/libraries/Image/Drivers/imagemagick.php index 33e62ffe4..e65d05d3e 100644 --- a/application/libraries/Image/Drivers/imagemagick.php +++ b/application/libraries/Image/Drivers/imagemagick.php @@ -80,14 +80,14 @@ class imagemagick implements \libraries\Image\ImageDriver { public function resize($width, $height) { $this->arguments[] = "-resize"; - $this->arguments[] = "${width}x${height}"; + $this->arguments[] = "{$width}x{$height}"; } public function crop($x, $y, $width, $height) { $this->arguments[] = "+repage"; $this->arguments[] = "-crop"; - $this->arguments[] = "${width}x${height}+${x}+${y}"; + $this->arguments[] = "{$width}x{$height}+{$x}+{$y}"; $this->arguments[] = "+repage"; } @@ -100,11 +100,11 @@ class imagemagick implements \libraries\Image\ImageDriver { $this->apply_exif_orientation(); $this->arguments[] = "-thumbnail"; - $this->arguments[] = "${target_width}x${target_height}^"; + $this->arguments[] = "{$target_width}x{$target_height}^"; $this->arguments[] = "-gravity"; $this->arguments[] = "center"; $this->arguments[] = "-extent"; - $this->arguments[] = "${target_width}x${target_height}^"; + $this->arguments[] = "{$target_width}x{$target_height}^"; } public function apply_exif_orientation() -- cgit v1.2.3-24-g4f1b