Coding Standards: Fix spacing for incrementors and decrementors in various files.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

git-svn-id: https://develop.svn.wordpress.org/trunk@54896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-11-29 21:11:42 +00:00
parent 4b55a18d23
commit 8e44ab05a6
10 changed files with 15 additions and 15 deletions

View File

@@ -73,7 +73,7 @@ class WPProfiler {
if ( isset( $this->profile[ $name ] ) ) {
$this->profile[ $name ]['time'] += $time;
$this->profile[ $name ]['calls'] ++;
$this->profile[ $name ]['calls']++;
$this->profile[ $name ]['cache_cold_hits'] += ( $wp_object_cache->cold_cache_hits - $item['cache_cold_hits'] );
$this->profile[ $name ]['cache_warm_hits'] += ( $wp_object_cache->warm_cache_hits - $item['cache_warm_hits'] );
$this->profile[ $name ]['cache_misses'] += ( $wp_object_cache->cache_misses - $item['cache_misses'] );
@@ -143,7 +143,7 @@ class WPProfiler {
$sql = preg_replace( '/(WHERE \w+ =) \d+/', '$1 x', $sql );
$sql = preg_replace( '/(WHERE \w+ =) \'\[-\w]+\'/', '$1 \'xxx\'', $sql );
$out[ $sql ] ++;
$out[ $sql ]++;
}
asort( $out );
return;