Skip to content

Commit dfb56d5

Browse files
committed
Move up method in source
1 parent 049e894 commit dfb56d5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/framework/src/Facades/Features.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ public static function hasRss(): bool
117117
&& count(MarkdownPost::files()) > 0;
118118
}
119119

120+
/**
121+
* Should documentation search be enabled?
122+
*/
123+
public static function hasDocumentationSearch(): bool
124+
{
125+
return static::has(Feature::DocumentationSearch)
126+
&& static::hasDocumentationPages()
127+
&& count(DocumentationPage::files()) > 0;
128+
}
129+
120130
/**
121131
* Torchlight is by default enabled automatically when an API token
122132
* is set in the `.env` file but is disabled when running tests.
@@ -128,16 +138,6 @@ public static function hasTorchlight(): bool
128138
&& (app('env') !== 'testing');
129139
}
130140

131-
/**
132-
* Should documentation search be enabled?
133-
*/
134-
public static function hasDocumentationSearch(): bool
135-
{
136-
return static::has(Feature::DocumentationSearch)
137-
&& static::hasDocumentationPages()
138-
&& count(DocumentationPage::files()) > 0;
139-
}
140-
141141
/**
142142
* Get an array representation of the features and their status.
143143
*

0 commit comments

Comments
 (0)