]> _ Git - cubist_util.git/commitdiff
#7684
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:08:36 +0000 (17:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:08:36 +0000 (17:08 +0200)
src/CommandLine/Poppler.php

index 1915bcfe34a4b602da611811ab147af5fd489e8b..9e504d249d4a9b5240144fbf1daedf66ca26fea2 100644 (file)
@@ -44,7 +44,7 @@ class Poppler
         if (null !== $cache) {
             Files::mkdir($cache);
 
-            $hash = self::filehash($file, $page, $rect, $options);
+            $hash = self::extractAreaFilehash($file, $page, $rect, $options);
 
             $cacheFileWithoutExt = $cache . $hash;
             $cacheFile = $cacheFileWithoutExt . '.' . $extension;
@@ -111,7 +111,7 @@ class Poppler
         return $res;
     }
 
-    public static function filehash($file, $page, $rect, $options)
+    public static function extractAreaFilehash($file, $page, $rect, $options)
     {
         $f = Files::hashFileAttributes($file) . '||' . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!';
         return hash('sha256', $f);