Skip to content

Commit

Permalink
Applied fixes from FlintCI
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored and OskarStark committed Feb 12, 2020
1 parent 0210b23 commit 99e1264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Command/SitemapGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public function configure(): void
);

$this->setDescription('Create a sitemap');
$this->setHelp(<<<'EOT'
$this->setHelp(
<<<'EOT'
The <info>sonata:seo:sitemap</info> command create new sitemap files (index + sitemap).
EOT
Expand Down
6 changes: 4 additions & 2 deletions src/Twig/Extension/SeoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ public function getMetadatas()
list($content, $extras) = $meta;

if (!empty($content)) {
$html .= sprintf("<meta %s=\"%s\" content=\"%s\" />\n",
$html .= sprintf(
"<meta %s=\"%s\" content=\"%s\" />\n",
$type,
$this->normalize($name),
$this->normalize($content)
);
} else {
$html .= sprintf("<meta %s=\"%s\" />\n",
$html .= sprintf(
"<meta %s=\"%s\" />\n",
$type,
$this->normalize($name)
);
Expand Down

0 comments on commit 99e1264

Please sign in to comment.