Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Oct 18, 2023
1 parent 3aa65eb commit d5115b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Tags/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public function setOptions(array $options): self

return $this;
}
}
}
5 changes: 3 additions & 2 deletions src/Tags/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function addVideo(string $thumbnailLoc, string $title, string $descriptio
return $this;
}

public function addNews(string $name, string $language, string $title, DateTimeInterface $publicationDate, array $options = []): static {
public function addNews(string $name, string $language, string $title, DateTimeInterface $publicationDate, array $options = []): static
{
$this->news[] = new News($name, $language, $title, $publicationDate, $options);

return $this;
Expand All @@ -121,7 +122,7 @@ public function segments(?int $index = null): array|string|null
->values()
->toArray();

if (!is_null($index)) {
if (! is_null($index)) {
return $this->segment($index);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/NewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

$options = [
'access' => News::OPTION_ACCESS_SUB,
'genres' => implode(', ', [News::OPTION_GENRES_BLOG, News::OPTION_GENRES_UG])
'genres' => implode(', ', [News::OPTION_GENRES_BLOG, News::OPTION_GENRES_UG]),
];
$sitemap = Sitemap::create()
->add(
Expand Down

0 comments on commit d5115b4

Please sign in to comment.