Skip to content

Commit

Permalink
Change constructor style
Browse files Browse the repository at this point in the history
Just makes it visually consistent
  • Loading branch information
caendesilva committed Dec 14, 2023
1 parent 57bdecb commit cca3610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BuildSearchCommand extends Command

public function handle(): int
{
StaticPageBuilder::handle(Pages::get('search.json') ?? DocumentationSearchIndex::make());
StaticPageBuilder::handle(Pages::get('search.json') ?? new DocumentationSearchIndex());

if (DocumentationSearchPage::enabled()) {
StaticPageBuilder::handle(Pages::get('docs/search') ?? new DocumentationSearchPage());
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Foundation/HydeCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function getPageClasses(): array
public function discoverPages(PageCollection $collection): void
{
if (Features::hasDocumentationSearch()) {
$collection->addPage(DocumentationSearchIndex::make());
$collection->addPage(new DocumentationSearchIndex());

if (DocumentationSearchPage::enabled()) {
$collection->addPage(new DocumentationSearchPage());
Expand Down

0 comments on commit cca3610

Please sign in to comment.