Skip to content

Commit

Permalink
fix: CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian ALEXANDRE committed May 15, 2024
1 parent c36a13b commit 7c04882
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bundle/Controller/SitemapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Ibexa\Contracts\Core\Variation\VariationHandler;
use Ibexa\Core\Helper\FieldHelper;
use Ibexa\Core\MVC\Symfony\Routing\UrlAliasRouter;
use Ibexa\Core\Repository\Values\Content\VersionInfo;
use Novactive\Bundle\eZSEOBundle\Core\Sitemap\QueryFactory;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
Expand Down Expand Up @@ -166,7 +165,11 @@ protected function fillSitemap(DOMDocument $sitemap, DOMElement $root, SearchRes
if ($this->fieldHelper->isFieldEmpty($content, $field->fieldDefIdentifier)) {
continue;
}
$variation = $this->imageVariationService->getVariation($field, $content->getVersionInfo(), 'original');
$variation = $this->imageVariationService->getVariation(
$field,
$content->getVersionInfo(),
'original'
);
$imageContainer = $sitemap->createElement('image:image');
$imageLoc = $sitemap->createElement('image:loc', $variation->uri);
$imageContainer->appendChild($imageLoc);
Expand Down

0 comments on commit 7c04882

Please sign in to comment.