public function query( $query ): string {

		global $wpdb;

		if ( empty( $this->query_starts ) && ! empty( $wpdb->queries ) ) {
			/** @var array $wpdb->queries */
			$this->query_starts[ count( $wpdb->queries ) ] = microtime( true );
		} else {
			$this->query_starts[] = microtime( true );
		}

		return $query;
	}
public function query( $query ): string {

		global $wpdb;

		if ( empty( $this->query_starts ) && ! empty( $wpdb->queries ) ) {
			/** @var array $wpdb->queries */
			$this->query_starts[ count( $wpdb->queries ) ] = microtime( true );
		} else {
			$this->query_starts[] = microtime( true );
		}

		return $query;
	}
public function query ( $ query ) : string { global $ wpdb ; if ( empty ( $ this -> query_starts ) && ! empty ( $ wpdb -> queries ) ) { /** @var array $wpdb->queries */ $ this -> query_starts [ count ( $ wpdb -> queries ) ] = microtime ( true ) ; } else { $ this -> query_starts [ ] = microtime ( true ) ; } return $ query ; }
Capture SQL queries start times

@param string $query SQL query.

@return string

@psalm-suppress MixedPropertyFetch
Capture SQL queries start times