Olivier Massot 6 月之前
父节点
当前提交
4761596ac3
共有 2 个文件被更改,包括 3 次插入5 次删除
  1. 1 3
      src/Service/OnChange/Core/OnFileChange.php
  2. 2 2
      src/State/Provider/Core/ImageProvider.php

+ 1 - 3
src/Service/OnChange/Core/OnFileChange.php

@@ -15,12 +15,10 @@ use Liip\ImagineBundle\Imagine\Cache\CacheManager;
 class OnFileChange extends OnChangeDefault
 {
     public function __construct(
-        protected readonly CacheManager $cacheManager
+        protected readonly CacheManager $cacheManager,
     ) {
-
     }
 
-
     public function beforeChange(mixed $file, OnChangeContext $context): void
     {
         if ($context->previousData() && $context->previousData()->getConfig() !== $file->getConfig()) {

+ 2 - 2
src/State/Provider/Core/ImageProvider.php

@@ -40,8 +40,8 @@ final class ImageProvider implements ProviderInterface
         }
 
         $uncropped =
-            isset($context['filters']['uncropped']) &&
-            ($context['filters']['uncropped'] === '1' || $context['filters']['uncropped'] === 'true');
+            isset($context['filters']['uncropped'])
+            && ($context['filters']['uncropped'] === '1' || $context['filters']['uncropped'] === 'true');
 
         return $this->getImage($uriVariables['fileId'], $uriVariables['size'], $uncropped);
     }