diff --git a/Async/ResolveCacheProcessor.php b/Async/ResolveCacheProcessor.php index 2e600fbf..935233a0 100644 --- a/Async/ResolveCacheProcessor.php +++ b/Async/ResolveCacheProcessor.php @@ -45,7 +45,7 @@ final class ResolveCacheProcessor implements Processor, CommandSubscriberInterfa public function __construct( FilterManager $filterManager, FilterService $filterService, - ProducerInterface $producer + ProducerInterface $producer, ) { $this->filterManager = $filterManager; $this->filterService = $filterService; diff --git a/Binary/Loader/FileSystemLoader.php b/Binary/Loader/FileSystemLoader.php index 6185e46c..e7182688 100644 --- a/Binary/Loader/FileSystemLoader.php +++ b/Binary/Loader/FileSystemLoader.php @@ -44,7 +44,7 @@ class FileSystemLoader implements LoaderInterface public function __construct( $mimeGuesser, $extensionGuesser, - LocatorInterface $locator + LocatorInterface $locator, ) { if (!$mimeGuesser instanceof MimeTypeGuesserInterface && !$mimeGuesser instanceof DeprecatedMimeTypeGuesserInterface) { throw new InvalidArgumentException('$mimeGuesser must be an instance of Symfony\Component\Mime\MimeTypeGuesserInterface or Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface'); @@ -70,11 +70,11 @@ public function __construct( public function find($path) { $path = $this->locator->locate($path); - - if (\is_file($path) === false) { + + if (false === is_file($path)) { throw new NotLoadableException(\sprintf('Source image: "%s" is no file.', $path)); } - + $mimeType = $this->mimeTypeGuesser instanceof DeprecatedMimeTypeGuesserInterface ? $this->mimeTypeGuesser->guess($path) : $this->mimeTypeGuesser->guessMimeType($path); $extension = $this->getExtension($mimeType); diff --git a/Binary/Loader/FlysystemV2Loader.php b/Binary/Loader/FlysystemV2Loader.php index b0103e40..6e41136f 100644 --- a/Binary/Loader/FlysystemV2Loader.php +++ b/Binary/Loader/FlysystemV2Loader.php @@ -31,7 +31,7 @@ class FlysystemV2Loader implements LoaderInterface public function __construct( MimeTypesInterface $extensionGuesser, - FilesystemOperator $filesystem + FilesystemOperator $filesystem, ) { $this->extensionGuesser = $extensionGuesser; $this->filesystem = $filesystem; diff --git a/Config/Filter/Type/Background.php b/Config/Filter/Type/Background.php index ea9b6a72..c540e48b 100644 --- a/Config/Filter/Type/Background.php +++ b/Config/Filter/Type/Background.php @@ -49,7 +49,7 @@ public function __construct( ?string $color, ?string $transparency, ?string $position, - Size $size + Size $size, ) { $this->color = $color; $this->transparency = $transparency; diff --git a/Config/Filter/Type/RelativeResize.php b/Config/Filter/Type/RelativeResize.php index 4004137f..aa44e491 100644 --- a/Config/Filter/Type/RelativeResize.php +++ b/Config/Filter/Type/RelativeResize.php @@ -42,7 +42,7 @@ public function __construct( ?float $heighten = null, ?float $widen = null, ?float $increase = null, - ?float $scale = null + ?float $scale = null, ) { $this->heighten = $heighten; $this->widen = $widen; diff --git a/Config/Filter/Type/Thumbnail.php b/Config/Filter/Type/Thumbnail.php index 4ff645f2..5ed7a0f4 100644 --- a/Config/Filter/Type/Thumbnail.php +++ b/Config/Filter/Type/Thumbnail.php @@ -44,7 +44,7 @@ public function __construct( Size $size, ?string $mode = null, ?bool $allowUpscale = null, - ?string $filter = null + ?string $filter = null, ) { $this->size = $size; $this->mode = $mode; diff --git a/Controller/ImagineController.php b/Controller/ImagineController.php index c21a8cd5..c796d356 100644 --- a/Controller/ImagineController.php +++ b/Controller/ImagineController.php @@ -52,7 +52,7 @@ public function __construct( FilterService $filterService, DataManager $dataManager, SignerInterface $signer, - ?ControllerConfig $controllerConfig = null + ?ControllerConfig $controllerConfig = null, ) { $this->filterService = $filterService; $this->dataManager = $dataManager; diff --git a/Imagine/Cache/CacheManager.php b/Imagine/Cache/CacheManager.php index 6be92419..c01736c0 100644 --- a/Imagine/Cache/CacheManager.php +++ b/Imagine/Cache/CacheManager.php @@ -71,7 +71,7 @@ public function __construct( SignerInterface $signer, EventDispatcherInterface $dispatcher, $defaultResolver = null, - $webpGenerate = false + $webpGenerate = false, ) { $this->filterConfig = $filterConfig; $this->router = $router; diff --git a/Imagine/Cache/Resolver/FlysystemResolver.php b/Imagine/Cache/Resolver/FlysystemResolver.php index edce9432..0c0466b0 100644 --- a/Imagine/Cache/Resolver/FlysystemResolver.php +++ b/Imagine/Cache/Resolver/FlysystemResolver.php @@ -65,7 +65,7 @@ public function __construct( RequestContext $requestContext, $rootUrl, $cachePrefix = 'media/cache', - $visibility = AdapterInterface::VISIBILITY_PUBLIC + $visibility = AdapterInterface::VISIBILITY_PUBLIC, ) { $this->flysystem = $flysystem; $this->requestContext = $requestContext; diff --git a/Imagine/Cache/Resolver/FlysystemV2Resolver.php b/Imagine/Cache/Resolver/FlysystemV2Resolver.php index f1f27106..a9c23e57 100644 --- a/Imagine/Cache/Resolver/FlysystemV2Resolver.php +++ b/Imagine/Cache/Resolver/FlysystemV2Resolver.php @@ -66,7 +66,7 @@ public function __construct( RequestContext $requestContext, $rootUrl, $cachePrefix = 'media/cache', - $visibility = Visibility::PUBLIC + $visibility = Visibility::PUBLIC, ) { $this->flysystem = $flysystem; $this->requestContext = $requestContext; diff --git a/Imagine/Cache/Resolver/WebPathResolver.php b/Imagine/Cache/Resolver/WebPathResolver.php index a84e0c11..b9919776 100644 --- a/Imagine/Cache/Resolver/WebPathResolver.php +++ b/Imagine/Cache/Resolver/WebPathResolver.php @@ -51,7 +51,7 @@ public function __construct( Filesystem $filesystem, RequestContext $requestContext, $webRootDir, - $cachePrefix = 'media/cache' + $cachePrefix = 'media/cache', ) { $this->filesystem = $filesystem; $this->requestContext = $requestContext; diff --git a/Imagine/Data/DataManager.php b/Imagine/Data/DataManager.php index 0f4ff727..8f9ca6aa 100644 --- a/Imagine/Data/DataManager.php +++ b/Imagine/Data/DataManager.php @@ -63,7 +63,7 @@ public function __construct( $extensionGuesser, FilterConfiguration $filterConfig, $defaultLoader = null, - $globalDefaultImage = null + $globalDefaultImage = null, ) { if (!$extensionGuesser instanceof MimeTypesInterface && !$extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { throw new InvalidArgumentException('$extensionGuesser must be an instance of Symfony\Component\Mime\MimeTypesInterface or Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface'); diff --git a/Imagine/Filter/PostProcessor/CwebpPostProcessor.php b/Imagine/Filter/PostProcessor/CwebpPostProcessor.php index 86ae48c7..ee3bc6e9 100644 --- a/Imagine/Filter/PostProcessor/CwebpPostProcessor.php +++ b/Imagine/Filter/PostProcessor/CwebpPostProcessor.php @@ -102,7 +102,7 @@ public function __construct( ?string $alphaFilter = null, ?int $alphaMethod = null, ?bool $exact = null, - array $metadata = [] + array $metadata = [], ) { parent::__construct($executablePath, $temporaryRootPath); diff --git a/Service/FilterService.php b/Service/FilterService.php index 3e1b20d5..de74cde5 100644 --- a/Service/FilterService.php +++ b/Service/FilterService.php @@ -57,7 +57,7 @@ public function __construct( CacheManager $cacheManager, bool $webpGenerate = false, array $webpOptions = [], - ?LoggerInterface $logger = null + ?LoggerInterface $logger = null, ) { $this->dataManager = $dataManager; $this->filterManager = $filterManager; @@ -97,7 +97,7 @@ public function warmUpCache( string $path, string $filter, ?string $resolver = null, - bool $forced = false + bool $forced = false, ): bool { $warmedUp = false; @@ -138,7 +138,7 @@ public function getUrlOfFilteredImageWithRuntimeFilters( $filter, array $runtimeFilters = [], $resolver = null, - bool $webpSupported = false + bool $webpSupported = false, ) { $runtimePath = $this->cacheManager->getRuntimePath($path, $runtimeFilters); $runtimeOptions = [ @@ -178,7 +178,7 @@ private function resolveFilterPathContainer( FilterPathContainer $filterPathContainer, string $filter, ?string $resolver = null, - bool $webpSupported = false + bool $webpSupported = false, ): string { $path = $filterPathContainer->getTarget(); @@ -198,7 +198,7 @@ private function warmUpCacheFilterPathContainer( FilterPathContainer $filterPathContainer, string $filter, ?string $resolver = null, - bool $forced = false + bool $forced = false, ): bool { if ($forced || !$this->cacheManager->isStored($filterPathContainer->getTarget(), $filter, $resolver)) { $this->cacheManager->store( diff --git a/Templating/FilterTrait.php b/Templating/FilterTrait.php index 7c806daf..fea2bf1c 100644 --- a/Templating/FilterTrait.php +++ b/Templating/FilterTrait.php @@ -53,7 +53,7 @@ public function filterCache( string $path, string $filter, array $config = [], - ?string $resolver = null + ?string $resolver = null, ): string { $path = parse_url($path, PHP_URL_PATH);