Skip to content

Commit a504042

Browse files
committed
Remove old-style PHPCS ignores
1 parent f323174 commit a504042

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Post_Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,7 @@ public function generate( $args, $assoc_args ) {
748748
$post_date = $post_date_gmt ? $post_date_gmt : $call_time;
749749
}
750750

751-
// @codingStandardsIgnoreStart
752-
if ( !post_type_exists( $post_type ) ) {
751+
if ( ! post_type_exists( $post_type ) ) {
753752
WP_CLI::error( sprintf( "'%s' is not a registered post type.", $post_type ) );
754753
}
755754

@@ -835,7 +834,6 @@ public function generate( $args, $assoc_args ) {
835834
if ( 'progress' === $format ) {
836835
$notify->finish();
837836
}
838-
// @codingStandardsIgnoreEnd
839837
}
840838

841839
private function maybe_make_child() {

src/Site_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ public function empty_( $args, $assoc_args ) {
260260
}
261261
foreach ( $directories_to_delete as $directory ) {
262262
// Directory could be main sites directory '/sites' which may be non-empty.
263-
@rmdir( $directory ); // @codingStandardsIgnoreLine
263+
@rmdir( $directory );
264264
}
265265
// May be non-empty if '/sites' still around.
266-
@rmdir( $upload_dir['basedir'] ); // @codingStandardsIgnoreLine
266+
@rmdir( $upload_dir['basedir'] );
267267
}
268268

269269
WP_CLI::success( "The site at '" . site_url() . "' was emptied." );

0 commit comments

Comments
 (0)