File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/framework/src/Facades Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments