| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function handle(Jigsaw $jigsaw): void |
||
| 13 | { |
||
| 14 | $episodes = $jigsaw->getCollection('episodes'); |
||
| 15 | |||
| 16 | $jigsaw->getSiteData()->put(self::COLLECTION_NAME_ALL, $episodes); |
||
| 17 | |||
| 18 | $episodes |
||
| 19 | ->groupBy('category') |
||
| 20 | ->each(function (PageVariable $episodes, string $category) use ($jigsaw) { |
||
| 21 | $jigsaw |
||
| 22 | ->getSiteData() |
||
| 23 | ->put($category, $episodes); |
||
| 24 | }); |
||
| 27 |