From: Vincent Vanwaelscappel Date: Thu, 12 Sep 2024 08:51:47 +0000 (+0200) Subject: wip #6998 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=59d40b831be36a4de00e2551e4da9b7ebc915826;p=cubist_util.git wip #6998 @0.25 --- 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);