Skip to content

Commit

Permalink
apply cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Dec 12, 2024
1 parent 6d8dee9 commit 4299def
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Async/ResolveCacheProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions Binary/Loader/FileSystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Binary/Loader/FlysystemV2Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FlysystemV2Loader implements LoaderInterface

public function __construct(
MimeTypesInterface $extensionGuesser,
FilesystemOperator $filesystem
FilesystemOperator $filesystem,
) {
$this->extensionGuesser = $extensionGuesser;
$this->filesystem = $filesystem;
Expand Down
2 changes: 1 addition & 1 deletion Config/Filter/Type/Background.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
?string $color,
?string $transparency,
?string $position,
Size $size
Size $size,
) {
$this->color = $color;
$this->transparency = $transparency;
Expand Down
2 changes: 1 addition & 1 deletion Config/Filter/Type/RelativeResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Config/Filter/Type/Thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Controller/ImagineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(
SignerInterface $signer,
EventDispatcherInterface $dispatcher,
$defaultResolver = null,
$webpGenerate = false
$webpGenerate = false,
) {
$this->filterConfig = $filterConfig;
$this->router = $router;
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Cache/Resolver/FlysystemResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Cache/Resolver/FlysystemV2Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Cache/Resolver/WebPathResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
Filesystem $filesystem,
RequestContext $requestContext,
$webRootDir,
$cachePrefix = 'media/cache'
$cachePrefix = 'media/cache',
) {
$this->filesystem = $filesystem;
$this->requestContext = $requestContext;
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Data/DataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion Imagine/Filter/PostProcessor/CwebpPostProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function __construct(
?string $alphaFilter = null,
?int $alphaMethod = null,
?bool $exact = null,
array $metadata = []
array $metadata = [],
) {
parent::__construct($executablePath, $temporaryRootPath);

Expand Down
10 changes: 5 additions & 5 deletions Service/FilterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -97,7 +97,7 @@ public function warmUpCache(
string $path,
string $filter,
?string $resolver = null,
bool $forced = false
bool $forced = false,
): bool {
$warmedUp = false;

Expand Down Expand Up @@ -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 = [
Expand Down Expand Up @@ -178,7 +178,7 @@ private function resolveFilterPathContainer(
FilterPathContainer $filterPathContainer,
string $filter,
?string $resolver = null,
bool $webpSupported = false
bool $webpSupported = false,
): string {
$path = $filterPathContainer->getTarget();

Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Templating/FilterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4299def

Please sign in to comment.