Skip to content

Commit

Permalink
Coding Standards: Remove superfluous blank lines at the end of variou…
Browse files Browse the repository at this point in the history
…s classes.

Note: This is enforced by WPCS 3.0.0.

Follow-up to [56536].

Props jrf.
See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56547 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 8, 2023
1 parent 3f9bc4e commit d790be1
Show file tree
Hide file tree
Showing 136 changed files with 0 additions and 138 deletions.
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-theme-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,5 +768,4 @@ public function theme_info( $theme = null ) {

return $theme;
}

}
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-walker-nav-menu-checklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,4 @@ public function start_el( &$output, $data_object, $depth = 0, $args = null, $cur
$output .= '<input type="hidden" class="menu-item-classes" name="menu-item[' . $possible_object_id . '][menu-item-classes]" value="' . esc_attr( implode( ' ', $menu_item->classes ) ) . '" />';
$output .= '<input type="hidden" class="menu-item-xfn" name="menu-item[' . $possible_object_id . '][menu-item-xfn]" value="' . esc_attr( $menu_item->xfn ) . '" />';
}

}
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-walker-nav-menu-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,4 @@ public function start_el( &$output, $data_object, $depth = 0, $args = null, $cur
<?php
$output .= ob_get_clean();
}

}
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-wp-filesystem-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -862,5 +862,4 @@ public function rmdir( $path, $recursive = false ) {
public function dirlist( $path, $include_hidden = true, $recursive = false ) {
return false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,4 @@ public function column_next_steps( $item ) {
break;
}
}

}
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -3633,5 +3633,4 @@ private function available_object_cache_services() {
*/
return apply_filters( 'site_status_available_object_cache_services', $services );
}

}
1 change: 0 additions & 1 deletion src/wp-admin/includes/class-wp-users-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,4 @@ protected function get_role_list( $user_object ) {
*/
return apply_filters( 'get_role_list', $role_list, $user_object );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -454,5 +454,4 @@ public static function get_social_link_svg( $uri, $size ) {
</svg>',

);

}
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ public static function sanitize_select( $input, $setting ) {
public static function sanitize_checkbox( $checked ) {
return ( ( isset( $checked ) && true === $checked ) ? true : false );
}

}

// Setup the Theme Customizer settings and controls.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public function filter_script_loader_tag( $tag, $handle ) {
}
return $tag;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class TwentyTwenty_Separator_Control extends WP_Customize_Control {
public function render_content() {
echo '<hr/>';
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,5 @@ public static function get_social_link_svg( $uri ) {
'youtube' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"></path></svg>',

);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -384,5 +384,4 @@ public function add_privacy_policy_content() {
. __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.<br> LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.<br> No data is saved in the database or transferred.', 'twentytwentyone' );
wp_add_privacy_policy_content( __( 'Twenty Twenty-One', 'twentytwentyone' ), wp_kses_post( wpautop( $content, false ) ) );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,4 @@ public static function get_social_link_svg( $uri, $size ) {
}
return null;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-walker-category.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,4 @@ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {

$output .= "</li>\n";
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-walker-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,4 @@ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
}
$output .= "</li>{$n}";
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-block-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,4 @@ public function valid() {
public function count() {
return count( $this->blocks );
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,4 @@ public function render( $options = array() ) {

return $block_content;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-customize-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ final public function print_template() {
* @since 4.1.0
*/
protected function content_template() {}

}

/**
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,5 +490,4 @@ public function set_group( $handle, $recursion, $group ) {

return true;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,5 +564,4 @@ public function valid() {
public function rewind() {
reset( $this->callbacks );
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-http.php
Original file line number Diff line number Diff line change
Expand Up @@ -1102,5 +1102,4 @@ public static function is_ip_address( $maybe_ip ) {

return false;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-image-editor-imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -1043,5 +1043,4 @@ protected function pdf_load_source() {

return true;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-role.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,4 @@ public function has_cap( $cap ) {
return false;
}
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-text-diff-renderer-inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ public function _splitOnWords( $string, $newlineEscape = "\n" ) { // phpcs:ignor
$words = str_replace( "\n", $newlineEscape, $words );
return $words;
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-theme-json-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ public function update_with( $new_data ) {
public function get_data() {
return $this->theme_json->get_raw_data();
}

}
1 change: 0 additions & 1 deletion src/wp-includes/class-wp-walker.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,5 +446,4 @@ public function unset_children( $element, &$children_elements ) {

unset( $children_elements[ $id ] );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ public function to_json() {
$this->json['flex_width'] = absint( $this->flex_width );
$this->json['flex_height'] = absint( $this->flex_height );
}

}
1 change: 0 additions & 1 deletion src/wp-includes/pomo/streams.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ public function length() {
public function read_all() {
return $this->substr( $this->_str, $this->_pos, $this->strlen( $this->_str ) );
}

}
endif;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1451,5 +1451,4 @@ protected function get_edit_media_item_args() {
),
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -767,5 +767,4 @@ public function get_collection_params() {
),
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ public function get_item_schema() {

return $this->add_additional_fields_schema( $this->schema );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -369,5 +369,4 @@ public function get_collection_params() {
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,4 @@ protected function detect_rest_item_route( $post ) {

return rest_get_route_for_post( $post );
}

}
1 change: 0 additions & 1 deletion src/wp-includes/widgets/class-wp-widget-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,4 @@ public function form( $instance ) {
</p>
<?php
}

}
1 change: 0 additions & 1 deletion src/wp-includes/widgets/class-wp-widget-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,4 @@ public function form( $instance ) {
</p>
<?php
}

}
1 change: 0 additions & 1 deletion src/wp-includes/widgets/class-wp-widget-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ public function update( $new_instance, $old_instance ) {
$instance['title'] = sanitize_text_field( $new_instance['title'] );
return $instance;
}

}
1 change: 0 additions & 1 deletion tests/phpunit/includes/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,5 @@ public function __construct( $argv ) {
echo PHP_EOL;
}
}

}
new WP_PHPUnit_Util_Getopt( $_SERVER['argv'] );
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,4 @@ public function addslashes_deep( $value ) {

return $value;
}

}
1 change: 0 additions & 1 deletion tests/phpunit/includes/mock-fs.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ public function dirlist( $path = '.', $include_hidden = true, $recursive = false
}
return $ret;
}

}

class MockFS_Node {
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/includes/phpunit6/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public static function getTickets( $class_name, $method_name ) {

return array_unique( $tickets );
}

}

}
1 change: 0 additions & 1 deletion tests/phpunit/includes/testcase-xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ protected static function make_user_by_role( $role ) {
)
);
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/admin/includesTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,4 @@ public function test_wp_add_dashboard_widget() {
// This doesn't actually get removed due to the invalid priority.
remove_meta_box( 'dashboard2', 'dashboard', 'normal' );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/admin/wpCommentsListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,4 @@ public function test_get_views_should_return_views_by_default() {
);
$this->assertSame( $expected, $this->table->get_views() );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/admin/wpPostCommentsListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ public function test_get_views_should_return_views_by_default() {
);
$this->assertSame( $expected, $this->table->get_views() );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/admin/wpPostsListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,4 @@ public function test_get_views_should_return_views_by_default() {

$this->assertSame( $expected, $actual );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/attachment/slashes.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ public function test_wp_insert_attachment() {
$this->assertSame( wp_unslash( self::SLASH_4 ), $post->post_content_filtered );
$this->assertSame( wp_unslash( self::SLASH_6 ), $post->post_excerpt );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,4 @@ public function test_get_avatar_data_should_return_invalid_url_when_input_not_av
$this->assertFalse( is_avatar_comment_type( $comment_type ) );
$this->assertFalse( $actual_data['url'] );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/blocks/context.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,4 @@ public function test_default_context_is_filterable() {

$this->assertSame( array( 'example' => 'ok' ), $provided_context[0] );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/blocks/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,5 +521,4 @@ public function render_test_block_wp_query() {

return $content;
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/blocks/serialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ public function test_serialized_block_name() {
$this->assertSame( 'example', strip_core_block_namespace( 'core/example' ) );
$this->assertSame( 'plugin/example', strip_core_block_namespace( 'plugin/example' ) );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/blocks/wpBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,4 @@ public function test_countable() {

$this->assertCount( 1, $blocks );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/canonical/https.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ public function test_https_request_with_https_home() {

remove_filter( 'home_url', array( $this, 'set_https' ) );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/canonical/paged.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ public function test_redirect_canonical_with_nextpage_pagination() {
// Non-existing page should redirect to the permalink.
$this->assertCanonical( $link . '4/', $link );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/canonical/robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public function test_remove_trailing_slashes_for_robots_requests() {
$this->assertCanonical( '/robots.txt', '/robots.txt' );
$this->assertCanonical( '/robots.txt/', '/robots.txt' );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/comment/commentTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,4 @@ public function test_should_output_an_empty_string_when_global_comment_is_not_se

$this->assertSame( '', $actual );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/comment/getCommentReplyLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@ public function test_should_return_null_when_depth_less_than_max_depth_and_comme

$this->assertNull( $actual );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/comment/isAvatarCommentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ public function _filter_avatar_comment_types( $types ) {
$types[] = 'review';
return $types;
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/comment/slashes.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,4 @@ public function test_wp_update_comment() {
$this->assertSame( wp_unslash( self::SLASH_2 ), $comment->comment_author );
$this->assertSame( wp_unslash( self::SLASH_4 ), $comment->comment_content );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/comment/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,4 @@ public function data_get_comments_number_text_declension() {
),
);
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,5 +1283,4 @@ static function() {
$this->assertWPError( $unscheduled );
$this->assertSame( 'could_not_set', $unscheduled->get_error_code() );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/customize/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3669,5 +3669,4 @@ public function validate( $value ) {
}
return true;
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/customize/panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,4 @@ protected function content_template() {
</li>
<?php
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/customize/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,4 @@ protected function render_template() {
</li>
<?php
}

}
Loading

0 comments on commit d790be1

Please sign in to comment.