| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function run(): void |
||
| 17 | { |
||
| 18 | $expected = $this->guesstimateGenerationTime(); |
||
| 19 | if ($expected >= 1) { |
||
| 20 | $this->line("<fg=gray>This will take an estimated $expected seconds. Terminal may seem non-responsive.</>"); |
||
| 21 | } |
||
| 22 | |||
| 23 | DocumentationSearchService::generate(); |
||
| 24 | |||
| 25 | if (config('docs.create_search_page', true)) { |
||
| 26 | $directory = DocumentationSearchService::generateSearchPage(); |
||
| 27 | |||
| 28 | $this->createdSiteFile("$directory/search.html"); |
||
| 29 | } |
||
| 45 |