@@ -120,7 +120,6 @@ public function list_( $args, $assoc_args ) {
120120 } else {
121121 $ formatter ->display_items ( $ events );
122122 }
123-
124123 }
125124
126125 /**
@@ -196,7 +195,6 @@ public function schedule( $args, $assoc_args ) {
196195 } else {
197196 WP_CLI ::error ( 'Event not scheduled. ' );
198197 }
199-
200198 }
201199
202200 /**
@@ -285,7 +283,7 @@ function ( $event ) use ( $args, $exclude ) {
285283 $ start = microtime ( true );
286284 $ result = self ::run_event ( $ event );
287285 $ total = round ( microtime ( true ) - $ start , 3 );
288- $ executed ++ ;
286+ ++ $ executed ;
289287 WP_CLI ::log ( sprintf ( "Executed the cron event '%s' in %ss. " , $ event ->hook , $ total ) );
290288 }
291289
@@ -337,7 +335,6 @@ public function unschedule( $args, $assoc_args ) {
337335 )
338336 );
339337 }
340-
341338 }
342339
343340 /**
@@ -364,7 +361,6 @@ protected static function run_event( stdClass $event ) {
364361 do_action_ref_array ( $ event ->hook , $ event ->args );
365362
366363 return true ;
367-
368364 }
369365
370366 /**
@@ -395,7 +391,7 @@ public function delete( $args, $assoc_args ) {
395391 if ( $ event ->hook === $ hook ) {
396392 $ result = self ::delete_event ( $ event );
397393 if ( $ result ) {
398- $ deleted ++ ;
394+ ++ $ deleted ;
399395 } else {
400396 WP_CLI ::warning ( sprintf ( "Failed to the delete the cron event '%s'. " , $ hook ) );
401397 }
@@ -408,7 +404,6 @@ public function delete( $args, $assoc_args ) {
408404 } else {
409405 WP_CLI ::error ( sprintf ( "Invalid cron event '%s'. " , $ hook ) );
410406 }
411-
412407 }
413408
414409 /**
@@ -495,7 +490,6 @@ protected static function get_cron_events( $is_due_now = false ) {
495490 $ events = array_map ( 'Cron_Event_Command::format_event ' , $ events );
496491
497492 return $ events ;
498-
499493 }
500494
501495 /**
@@ -562,5 +556,4 @@ private static function interval( $since ) {
562556 private function get_formatter ( &$ assoc_args ) {
563557 return new \WP_CLI \Formatter ( $ assoc_args , $ this ->fields , 'event ' );
564558 }
565-
566559}
0 commit comments