We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 119-130 (lines=12) @@ | ||
| 116 | * @param SitemapGenerator $sitemap |
|
| 117 | * @return SitemapGenerator |
|
| 118 | */ |
|
| 119 | public function sitemap(SitemapGenerator $sitemap) |
|
| 120 | { |
|
| 121 | /** @var ArticleRepository $repository */ |
|
| 122 | $repository = app(ArticleRepository::class); |
|
| 123 | ||
| 124 | /** @var Article $article */ |
|
| 125 | foreach ($repository->whereSitemappable() as $article) { |
|
| 126 | $sitemap->store(url($article->route()), $article->updated_at, 'weekly', '1.0'); |
|
| 127 | } |
|
| 128 | ||
| 129 | return $sitemap; |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| @@ 29-40 (lines=12) @@ | ||
| 26 | * @param SitemapGenerator $sitemap |
|
| 27 | * @return SitemapGenerator |
|
| 28 | */ |
|
| 29 | public function sitemap(SitemapGenerator $sitemap) |
|
| 30 | { |
|
| 31 | /** @var PageRepository $repository */ |
|
| 32 | $repository = app(PageRepository::class); |
|
| 33 | ||
| 34 | /** @var Page $page */ |
|
| 35 | foreach ($repository->whereSitemap() as $page) { |
|
| 36 | $sitemap->store(url($page->route()), $page->updated_at, 'bi-weekly', '1.0'); |
|
| 37 | } |
|
| 38 | ||
| 39 | return $sitemap; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | ||