| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 39 | public function handle() |
||
| 40 | { |
||
| 41 | $limit = config('blog.services.siteMapLimit'); |
||
| 42 | |||
| 43 | if ($this->argument('limit')) { |
||
| 44 | $limit = $this->argument('limit'); |
||
| 45 | } |
||
| 46 | |||
| 47 | SitemapGenerator::create(config('app.url')) |
||
| 48 | ->setMaximumCrawlCount($limit) |
||
| 49 | ->writeToFile(public_path('sitemap.xml')); |
||
| 50 | } |
||
| 52 |