| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class GenerateRssFeed extends AbstractBuildTask |
||
| 10 | { |
||
| 11 | public static string $description = 'Generating RSS feed'; |
||
| 12 | |||
| 13 | public function run(): void |
||
| 14 | { |
||
| 15 | file_put_contents( |
||
| 16 | Hyde::getSiteOutputPath(RssFeedService::getDefaultOutputFilename()), |
||
| 17 | RssFeedService::generateFeed() |
||
| 18 | ); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function then(): void |
||
| 26 | )); |
||
| 27 | } |
||
| 29 |