Skip to content

Commit e712836

Browse files
author
Kyam Harris
committed
Undo formatting changes
1 parent 59504d2 commit e712836

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Comment_Command.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)