PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/StatusReport/Features.php +6 -6 5.0.15.3.5 View file →
@@ -7,10 +7,10 @@
7 7 */
8 8
9 9 namespace ElasticPress\StatusReport;
10 10
11 -use \ElasticPress\Features as EP_Features;
12 -use \ElasticPress\Feature\Search\Search;
11 +use ElasticPress\Features as EP_Features;
12 +use ElasticPress\Feature\Search\Search;
13 13
14 14 defined( 'ABSPATH' ) || exit;
15 15
16 16 /**
@@ -24,9 +24,9 @@
24 24 * Return the report title
25 25 *
26 26 * @return string
27 27 */
28 - public function get_title() : string {
28 + public function get_title(): string {
29 29 return __( 'Feature Settings', 'elasticpress' );
30 30 }
31 31
32 32 /**
@@ -33,14 +33,14 @@
33 33 * Return the report fields
34 34 *
35 35 * @return array
36 36 */
37 - public function get_groups() : array {
37 + public function get_groups(): array {
38 38 $features_settings = \ElasticPress\Utils\get_option( 'ep_feature_settings', [] );
39 39
40 40 $features = array_filter(
41 41 EP_Features::factory()->registered_features,
42 - function( $feature ) {
42 + function ( $feature ) {
43 43 return $feature->is_active();
44 44 }
45 45 );
46 46 $features = wp_list_sort( $features, 'title' );
@@ -78,9 +78,9 @@
78 78 * @param array $fields Current fields
79 79 * @param Search $feature Feature object
80 80 * @return array New fields
81 81 */
82 - protected function get_search_extra_fields( array $fields, Search $feature ) : array {
82 + protected function get_search_extra_fields( array $fields, Search $feature ): array {
83 83 if ( defined( 'EP_IS_NETWORK' ) && EP_IS_NETWORK ) {
84 84 return $fields;
85 85 }
86 86