File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 44 return ;
55}
66
7- $ wpcli_find_autoloader = dirname ( __FILE__ ) . '/vendor/autoload.php ' ;
7+ $ wpcli_find_autoloader = __DIR__ . '/vendor/autoload.php ' ;
88if ( file_exists ( $ wpcli_find_autoloader ) ) {
99 require_once $ wpcli_find_autoloader ;
1010}
1111
1212WP_CLI ::add_command ( 'find ' , 'Find_Command ' );
13-
Original file line number Diff line number Diff line change @@ -310,9 +310,9 @@ private function recurse_directory( $path ) {
310310 $ this ->log ( "Recursing into ' {$ path }' " );
311311 foreach ( $ iterator as $ file_info ) {
312312 if ( $ file_info ->isDir () ) {
313- $ this ->current_depth ++ ;
313+ ++ $ this ->current_depth ;
314314 $ this ->recurse_directory ( $ file_info ->getPathname () );
315- $ this ->current_depth -- ;
315+ -- $ this ->current_depth ;
316316 }
317317 }
318318 }
@@ -368,5 +368,4 @@ private static function format_log_timestamp( $s ) {
368368 $ s -= $ m * 60 ;
369369 return $ h . ': ' . sprintf ( '%02d ' , $ m ) . ': ' . sprintf ( '%02d ' , $ s );
370370 }
371-
372371}
You can’t perform that action at this time.
0 commit comments