Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 authored and github-actions[bot] committed Jun 2, 2023
1 parent 0a334b7 commit 1de90e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Controller/MediaAdminController.php
Expand Up @@ -86,8 +86,8 @@ public function listAction(Request $request): Response

$rootCategory = null;
if (
$this->container->has('sonata.media.manager.category') &&
$this->container->has('sonata.media.manager.context')
$this->container->has('sonata.media.manager.category')
&& $this->container->has('sonata.media.manager.context')
) {
$categoryManager = $this->container->get('sonata.media.manager.category');
\assert($categoryManager instanceof CategoryManagerInterface);
Expand Down
4 changes: 2 additions & 2 deletions src/Provider/BaseProvider.php
Expand Up @@ -97,8 +97,8 @@ final public function flushCdn(MediaInterface $media): void

foreach ($this->getFormats() as $format => $settings) {
if (
MediaProviderInterface::FORMAT_ADMIN === $format ||
substr($format, 0, \strlen($media->getContext() ?? '')) === $media->getContext()
MediaProviderInterface::FORMAT_ADMIN === $format
|| substr($format, 0, \strlen($media->getContext() ?? '')) === $media->getContext()
) {
$flushPaths[] = $this->getFilesystem()->get($this->generatePrivateUrl($media, $format), true)->getKey();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Provider/FileProvider.php
Expand Up @@ -341,8 +341,8 @@ protected function doTransform(MediaInterface $media): void
}

// this is the name used to store the file
if (null === $media->getProviderReference() ||
MediaInterface::MISSING_BINARY_REFERENCE === $media->getProviderReference()
if (null === $media->getProviderReference()
|| MediaInterface::MISSING_BINARY_REFERENCE === $media->getProviderReference()
) {
$media->setProviderReference($this->generateReferenceName($media));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Thumbnail/FormatThumbnail.php
Expand Up @@ -93,8 +93,8 @@ public function generate(MediaProviderInterface $provider, MediaInterface $media

foreach ($provider->getFormats() as $format => $settings) {
if (
substr($format, 0, \strlen($media->getContext() ?? '')) === $media->getContext() ||
MediaProviderInterface::FORMAT_ADMIN === $format
substr($format, 0, \strlen($media->getContext() ?? '')) === $media->getContext()
|| MediaProviderInterface::FORMAT_ADMIN === $format
) {
$resizer = null !== $settings['resizer'] && $this->hasResizer($settings['resizer']) ?
$this->getResizer($settings['resizer']) :
Expand Down

0 comments on commit 1de90e4

Please sign in to comment.