Skip to content

Commit

Permalink
3096: Fix parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
turegjorup committed Nov 27, 2024
1 parent 0de1ed4 commit d757e86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Service/ImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use function PHPUnit\Framework\stringContains;

final readonly class ImageService implements ImageServiceInterface
{
Expand Down Expand Up @@ -138,8 +137,8 @@ public function getTransformedImageUrls(string $imageUrl, bool $absolute = true)
{
// Uploaded files only have the filename in the db, but are actually in the uploads dir to support the ImageField in EasyAdmin
// Fetched files have the subfolder in the db field
if (!str_contains('/', $imageUrl)) {
$imageUrl = 'uploads/' . $imageUrl;
if (!str_contains($imageUrl, '/')) {
$imageUrl = 'uploads/'.$imageUrl;
}
$urls = [];
$filters = $this->filterManager->getFilterConfiguration()->all();
Expand Down

0 comments on commit d757e86

Please sign in to comment.