@@ -424,14 +424,14 @@ function ( $comment_id, $assoc_args ) {
424424 }
425425
426426 private function call ( $ args , $ status , $ success , $ failure ) {
427- $ comment_id = absint ( $ args );
427+ $ comment_id = absint ( $ args );
428428
429- $ func = "wp_ {$ status }_comment " ;
429+ $ func = "wp_ {$ status }_comment " ;
430430
431- if ( ! $ func ( $ comment_id ) ) {
432- WP_CLI ::error ( sprintf ( $ failure , "comment {$ comment_id }" ) );
433- }
434- WP_CLI ::success ( sprintf ( $ success , "comment {$ comment_id }" ) );
431+ if ( ! $ func ( $ comment_id ) ) {
432+ WP_CLI ::error ( sprintf ( $ failure , "comment {$ comment_id }" ) );
433+ }
434+ WP_CLI ::success ( sprintf ( $ success , "comment {$ comment_id }" ) );
435435 }
436436
437437 private function set_status ( $ args , $ status , $ success ) {
@@ -512,9 +512,9 @@ public function untrash( $args, $assoc_args ) {
512512 * Success: Marked as spam comment 1337.
513513 */
514514 public function spam ( $ args ) {
515- foreach ( $ args as $ id ) {
516- $ this ->call ( $ id , __FUNCTION__ , 'Marked %s as spam. ' , 'Failed marking %s as spam. ' );
517- }
515+ foreach ( $ args as $ id ) {
516+ $ this ->call ( $ id , __FUNCTION__ , 'Marked %s as spam. ' , 'Failed marking %s as spam. ' );
517+ }
518518 }
519519
520520 /**
0 commit comments