]> _ Git - cubist_util.git/commitdiff
wip #6998 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Sep 2024 08:51:47 +0000 (10:51 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Sep 2024 08:51:47 +0000 (10:51 +0200)
src/Graphics/Image.php

index faf1dd71112e2a59993e7fcd19de0fa7271f4a2a..8548a82e7a1d3e1650b3f172663bd5f718b56f34 100644 (file)
@@ -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);