@@ -79,7 +79,7 @@ public function get_loggers() {
7979 public function run () {
8080 WP_CLI ::add_wp_hook (
8181 'muplugins_loaded ' ,
82- function () {
82+ function () {
8383 $ url = WP_CLI ::get_runner ()->config ['url ' ];
8484 if ( ! empty ( $ url ) ) {
8585 WP_CLI ::set_url ( trailingslashit ( $ url ) );
@@ -90,7 +90,7 @@ function() {
9090 );
9191 WP_CLI ::add_hook (
9292 'after_wp_config_load ' ,
93- function () {
93+ function () {
9494 if ( defined ( 'SAVEQUERIES ' ) && ! SAVEQUERIES ) {
9595 WP_CLI ::error ( "'SAVEQUERIES' is defined as false, and must be true. Please check your wp-config.php " );
9696 }
@@ -215,7 +215,7 @@ public function wp_hook_begin() {
215215 $ this ->wrap_current_filter_callbacks ( $ current_filter );
216216 }
217217
218- $ this ->filter_depth ++ ;
218+ ++ $ this ->filter_depth ;
219219
220220 WP_CLI ::add_wp_hook ( $ current_filter , array ( $ this , 'wp_hook_end ' ), 9999 );
221221 }
@@ -235,7 +235,7 @@ private function wrap_current_filter_callbacks( $current_filter ) {
235235 foreach ( $ callbacks as $ priority => $ priority_callbacks ) {
236236 foreach ( $ priority_callbacks as $ i => $ the_ ) {
237237 $ callbacks [ $ priority ][ $ i ] = array (
238- 'function ' => function () use ( $ the_ , $ i ) {
238+ 'function ' => function () use ( $ the_ , $ i ) {
239239 if ( ! isset ( $ this ->loggers [ $ i ] ) ) {
240240 $ this ->loggers [ $ i ] = new Logger (
241241 array (
@@ -281,7 +281,7 @@ public function wp_hook_end( $filter_value = null ) {
281281 }
282282 }
283283
284- $ this ->filter_depth -- ;
284+ -- $ this ->filter_depth ;
285285
286286 return $ filter_value ;
287287 }
@@ -315,7 +315,7 @@ public function handle_function_tick() {
315315 $ total_queries = count ( $ wpdb ->queries );
316316 for ( $ i = $ this ->tick_query_offset ; $ i < $ total_queries ; $ i ++ ) {
317317 $ this ->loggers [ $ callback_hash ]['query_time ' ] += $ wpdb ->queries [ $ i ][1 ];
318- $ this ->loggers [ $ callback_hash ]['query_count ' ]++ ;
318+ ++ $ this ->loggers [ $ callback_hash ]['query_count ' ];
319319 }
320320 }
321321
@@ -484,7 +484,6 @@ private function load_wordpress_with_template() {
484484 $ logger ->stop ();
485485 $ this ->loggers [] = $ logger ;
486486 }
487-
488487 }
489488
490489 /**
@@ -588,5 +587,4 @@ private static function set_filter_callbacks( $filter, $callbacks ) {
588587 $ wp_filter [ $ filter ] = $ callbacks ; // phpcs:ignore
589588 }
590589 }
591-
592590}
0 commit comments