Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Nov 26, 2024
1 parent ca5ddbd commit a58a8b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/classes/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ public function add_elasticpress_version_to_user_agent( $user_agent ) {
*/
protected function add_query_log( $query ) {
$wp_debug = defined( 'WP_DEBUG' ) && WP_DEBUG;

Check warning on line 1738 in includes/classes/Elasticsearch.php

View workflow job for this annotation

GitHub Actions / PHP Lint

Equals sign not aligned with surrounding assignments; expected 4 spaces but found 6 spaces
$wp_ep_debug = defined( 'WP_EP_DEBUG' ) && WP_EP_DEBUG );
$wp_ep_debug = defined( 'WP_EP_DEBUG' ) && WP_EP_DEBUG;

Check warning on line 1739 in includes/classes/Elasticsearch.php

View workflow job for this annotation

GitHub Actions / PHP Lint

Equals sign not aligned with surrounding assignments; expected 1 space but found 3 spaces

Check failure on line 1740 in includes/classes/Elasticsearch.php

View workflow job for this annotation

GitHub Actions / PHP Lint

Whitespace found at end of line
/**
* Filter query logging. Don't log anything to the queries property when true.
Expand All @@ -1746,7 +1746,7 @@ protected function add_query_log( $query ) {
* @return {bool} New value
* @since 5.2.0
*/
$disable_query_logging = apply_filters( 'ep_disable_query_logging', false )
$disable_query_logging = apply_filters( 'ep_disable_query_logging', false );

if ( ! $disable_query_logging && ( $wp_debug || $wp_ep_debug ) ) {
$this->queries[] = $query;
Expand Down

0 comments on commit a58a8b9

Please sign in to comment.