Make WordPress Core


Ignore:
Timestamp:
11/29/2022 09:11:42 PM (12 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/wp-profiler.php

    r51551 r54896  
    7474        if ( isset( $this->profile[ $name ] ) ) {
    7575            $this->profile[ $name ]['time'] += $time;
    76             $this->profile[ $name ]['calls'] ++;
     76            $this->profile[ $name ]['calls']++;
    7777            $this->profile[ $name ]['cache_cold_hits']    += ( $wp_object_cache->cold_cache_hits - $item['cache_cold_hits'] );
    7878            $this->profile[ $name ]['cache_warm_hits']    += ( $wp_object_cache->warm_cache_hits - $item['cache_warm_hits'] );
     
    144144            $sql = preg_replace( '/(WHERE \w+ =) \'\[-\w]+\'/', '$1 \'xxx\'', $sql );
    145145
    146             $out[ $sql ] ++;
     146            $out[ $sql ]++;
    147147        }
    148148        asort( $out );
Note: See TracChangeset for help on using the changeset viewer.