Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Jan 15, 2025
1 parent f198ec8 commit cb92217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function load_elasticpress() {
// Set up packages feature.
Packages\bootstrap();

// Hook the reset_elasticsearch_queries function to the ep_stop_the_insanity action
// Hook the reset_elasticsearch_queries function to the ep_stop_the_insanity action.
add_action( 'ep_stop_the_insanity', __NAMESPACE__ . '\\reset_elasticsearch_queries' );
}

Expand Down Expand Up @@ -2208,7 +2208,7 @@ function sanitize_query_args( WP_Query $query ) : void {
* @return void
*/
function reset_elasticsearch_queries() {
$reflection = new ReflectionProperty(Elasticsearch::class, 'queries');
$reflection->setAccessible(true);
$reflection->setValue(Elasticsearch::factory(), []);
$reflection = new ReflectionProperty( Elasticsearch::class, 'queries' );
$reflection->setAccessible( true );
$reflection->setValue( Elasticsearch::factory(), [] );
}

0 comments on commit cb92217

Please sign in to comment.