| @@ -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 | |