From 59d40b831be36a4de00e2551e4da9b7ebc915826 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 12 Sep 2024 10:51:47 +0200 Subject: [PATCH] wip #6998 @0.25 --- src/Graphics/Image.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index faf1dd7..8548a82 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -91,10 +91,8 @@ class Image } } else if ($ext === 'zip') { $zip = ZipAnimation::getZIPData($path); - if (null !== $zip) { - if(isset($zip['width']) && isset($zip['height'])) { - $res = [$zip['width'], $zip['height']]; - } + if (null !== $zip && isset($zip['width']) && isset($zip['height'])) { + $res = [$zip['width'], $zip['height']]; } } else if ($ext === 'html') { $lottie = Lottie::getAnimationDataFromHTMLFile($path); -- 2.39.5