| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | 1 | public function makeFromSheetCollection(SheetRepository $collection): Sitemap |
|
| 23 | { |
||
| 24 | 1 | $sitemap = Sitemap::create(); |
|
| 25 | |||
| 26 | $collection->all()->each(function(Sheet $sheet) use ($sitemap) { |
||
| 27 | 1 | $sitemap->add($this->pageFactory->makeFromSheet($sheet)->toSitemapItem()); |
|
| 28 | 1 | }); |
|
| 29 | |||
| 30 | 1 | return $sitemap; |
|
| 31 | } |
||
| 40 |