From 9a49b70239245841f4c49620372fd2af960fc4e6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 8 Sep 2023 09:32:23 +0000 Subject: [PATCH] Coding Standards: Remove superfluous blank lines at the end of various classes. Note: This is enforced by WPCS 3.0.0. Follow-up to [56536]. Props jrf. See #59161, #58831. Built from https://develop.svn.wordpress.org/trunk@56547 git-svn-id: http://core.svn.wordpress.org/trunk@56059 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-theme-upgrader.php | 1 - wp-admin/includes/class-walker-nav-menu-checklist.php | 1 - wp-admin/includes/class-walker-nav-menu-edit.php | 1 - wp-admin/includes/class-wp-filesystem-base.php | 1 - .../class-wp-privacy-data-removal-requests-list-table.php | 1 - wp-admin/includes/class-wp-site-health.php | 1 - wp-admin/includes/class-wp-users-list-table.php | 1 - .../twentynineteen/classes/class-twentynineteen-svg-icons.php | 1 - .../twentytwenty/classes/class-twentytwenty-customize.php | 1 - .../twentytwenty/classes/class-twentytwenty-script-loader.php | 1 - .../classes/class-twentytwenty-separator-control.php | 1 - .../twentytwenty/classes/class-twentytwenty-svg-icons.php | 1 - .../classes/class-twenty-twenty-one-dark-mode.php | 1 - .../classes/class-twenty-twenty-one-svg-icons.php | 1 - wp-includes/class-walker-category.php | 1 - wp-includes/class-walker-page.php | 1 - wp-includes/class-wp-block-list.php | 1 - wp-includes/class-wp-block.php | 1 - wp-includes/class-wp-customize-control.php | 1 - wp-includes/class-wp-dependencies.php | 1 - wp-includes/class-wp-hook.php | 1 - wp-includes/class-wp-http.php | 1 - wp-includes/class-wp-image-editor-imagick.php | 1 - wp-includes/class-wp-role.php | 1 - wp-includes/class-wp-text-diff-renderer-inline.php | 1 - wp-includes/class-wp-theme-json-data.php | 1 - wp-includes/class-wp-walker.php | 1 - .../customize/class-wp-customize-cropped-image-control.php | 1 - wp-includes/pomo/streams.php | 1 - .../rest-api/endpoints/class-wp-rest-attachments-controller.php | 1 - .../rest-api/endpoints/class-wp-rest-block-types-controller.php | 1 - .../rest-api/endpoints/class-wp-rest-blocks-controller.php | 1 - .../endpoints/class-wp-rest-post-statuses-controller.php | 1 - .../rest-api/search/class-wp-rest-post-search-handler.php | 1 - wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-categories.php | 1 - wp-includes/widgets/class-wp-widget-pages.php | 1 - wp-includes/widgets/class-wp-widget-search.php | 1 - 38 files changed, 1 insertion(+), 38 deletions(-) diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php index 6bb9ba784a..688f8d612d 100644 --- a/wp-admin/includes/class-theme-upgrader.php +++ b/wp-admin/includes/class-theme-upgrader.php @@ -768,5 +768,4 @@ class Theme_Upgrader extends WP_Upgrader { return $theme; } - } diff --git a/wp-admin/includes/class-walker-nav-menu-checklist.php b/wp-admin/includes/class-walker-nav-menu-checklist.php index 939d08b420..6fc5c41690 100644 --- a/wp-admin/includes/class-walker-nav-menu-checklist.php +++ b/wp-admin/includes/class-walker-nav-menu-checklist.php @@ -123,5 +123,4 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { $output .= ''; $output .= ''; } - } diff --git a/wp-admin/includes/class-walker-nav-menu-edit.php b/wp-admin/includes/class-walker-nav-menu-edit.php index cb585c9b18..5869247d64 100644 --- a/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/wp-admin/includes/class-walker-nav-menu-edit.php @@ -319,5 +319,4 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { ', ); - } diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php index d4b21ece58..dedcb37882 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php @@ -463,7 +463,6 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) { public static function sanitize_checkbox( $checked ) { return ( ( isset( $checked ) && true === $checked ) ? true : false ); } - } // Setup the Theme Customizer settings and controls. diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-script-loader.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-script-loader.php index 0327420471..f57811614b 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-script-loader.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-script-loader.php @@ -46,6 +46,5 @@ if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) { } return $tag; } - } } diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-separator-control.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-separator-control.php index 270d8e598e..6e988aa124 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-separator-control.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-separator-control.php @@ -24,7 +24,6 @@ if ( class_exists( 'WP_Customize_Control' ) ) { public function render_content() { echo '
'; } - } } } diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php index 0e576f0af6..6f28dd7dbc 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php @@ -335,6 +335,5 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { 'youtube' => '', ); - } } diff --git a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php index 27c50cf530..611ce3756f 100644 --- a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php +++ b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php @@ -384,5 +384,4 @@ class Twenty_Twenty_One_Dark_Mode { . __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.
LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.
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 ) ) ); } - } diff --git a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php index d88aabc094..398ef82bbd 100644 --- a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php +++ b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php @@ -249,5 +249,4 @@ class Twenty_Twenty_One_SVG_Icons { } return null; } - } diff --git a/wp-includes/class-walker-category.php b/wp-includes/class-walker-category.php index 36f631c1b2..24ae740030 100644 --- a/wp-includes/class-walker-category.php +++ b/wp-includes/class-walker-category.php @@ -275,5 +275,4 @@ class Walker_Category extends Walker { $output .= "\n"; } - } diff --git a/wp-includes/class-walker-page.php b/wp-includes/class-walker-page.php index 3ee5bbda61..e26c21d0cb 100644 --- a/wp-includes/class-walker-page.php +++ b/wp-includes/class-walker-page.php @@ -241,5 +241,4 @@ class Walker_Page extends Walker { } $output .= "{$n}"; } - } diff --git a/wp-includes/class-wp-block-list.php b/wp-includes/class-wp-block-list.php index 9b7caaf01f..2505920755 100644 --- a/wp-includes/class-wp-block-list.php +++ b/wp-includes/class-wp-block-list.php @@ -210,5 +210,4 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable { public function count() { return count( $this->blocks ); } - } diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php index 890ae5e559..cdbc678f13 100644 --- a/wp-includes/class-wp-block.php +++ b/wp-includes/class-wp-block.php @@ -309,5 +309,4 @@ class WP_Block { return $block_content; } - } diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index ab4d2523a0..30e8c2c639 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -701,7 +701,6 @@ class WP_Customize_Control { * @since 4.1.0 */ protected function content_template() {} - } /** diff --git a/wp-includes/class-wp-dependencies.php b/wp-includes/class-wp-dependencies.php index 0bc42bb282..e2bbf4ff98 100644 --- a/wp-includes/class-wp-dependencies.php +++ b/wp-includes/class-wp-dependencies.php @@ -490,5 +490,4 @@ class WP_Dependencies { return true; } - } diff --git a/wp-includes/class-wp-hook.php b/wp-includes/class-wp-hook.php index 795aec4fe1..8a6cdfd09f 100644 --- a/wp-includes/class-wp-hook.php +++ b/wp-includes/class-wp-hook.php @@ -564,5 +564,4 @@ final class WP_Hook implements Iterator, ArrayAccess { public function rewind() { reset( $this->callbacks ); } - } diff --git a/wp-includes/class-wp-http.php b/wp-includes/class-wp-http.php index 546ba96c1c..bc411179d3 100644 --- a/wp-includes/class-wp-http.php +++ b/wp-includes/class-wp-http.php @@ -1102,5 +1102,4 @@ class WP_Http { return false; } - } diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 7229c903b4..03fe0bca69 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -1043,5 +1043,4 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { return true; } - } diff --git a/wp-includes/class-wp-role.php b/wp-includes/class-wp-role.php index 6f25c3cb03..b9884f2065 100644 --- a/wp-includes/class-wp-role.php +++ b/wp-includes/class-wp-role.php @@ -100,5 +100,4 @@ class WP_Role { return false; } } - } diff --git a/wp-includes/class-wp-text-diff-renderer-inline.php b/wp-includes/class-wp-text-diff-renderer-inline.php index 19a00d83c7..f3e4f6b7b0 100644 --- a/wp-includes/class-wp-text-diff-renderer-inline.php +++ b/wp-includes/class-wp-text-diff-renderer-inline.php @@ -30,5 +30,4 @@ class WP_Text_Diff_Renderer_inline extends Text_Diff_Renderer_inline { $words = str_replace( "\n", $newlineEscape, $words ); return $words; } - } diff --git a/wp-includes/class-wp-theme-json-data.php b/wp-includes/class-wp-theme-json-data.php index 9ffa2f3585..6aa8a3971c 100644 --- a/wp-includes/class-wp-theme-json-data.php +++ b/wp-includes/class-wp-theme-json-data.php @@ -69,5 +69,4 @@ class WP_Theme_JSON_Data { public function get_data() { return $this->theme_json->get_raw_data(); } - } diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index f7f4715ed1..28cecfe79e 100644 --- a/wp-includes/class-wp-walker.php +++ b/wp-includes/class-wp-walker.php @@ -446,5 +446,4 @@ class Walker { unset( $children_elements[ $id ] ); } - } diff --git a/wp-includes/customize/class-wp-customize-cropped-image-control.php b/wp-includes/customize/class-wp-customize-cropped-image-control.php index c8a55f401c..5f0debba29 100644 --- a/wp-includes/customize/class-wp-customize-cropped-image-control.php +++ b/wp-includes/customize/class-wp-customize-cropped-image-control.php @@ -82,5 +82,4 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control { $this->json['flex_width'] = absint( $this->flex_width ); $this->json['flex_height'] = absint( $this->flex_height ); } - } diff --git a/wp-includes/pomo/streams.php b/wp-includes/pomo/streams.php index 8fa5fc6156..af76c5c5b3 100644 --- a/wp-includes/pomo/streams.php +++ b/wp-includes/pomo/streams.php @@ -299,7 +299,6 @@ if ( ! class_exists( 'POMO_StringReader', false ) ) : public function read_all() { return $this->substr( $this->_str, $this->_pos, $this->strlen( $this->_str ) ); } - } endif; diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index 138440e8c2..bbb02c8765 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -1451,5 +1451,4 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller { ), ); } - } diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php index 26bd0e0544..fe86ff669d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php @@ -767,5 +767,4 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller { ), ); } - } diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php index a270e0ff48..305647451b 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php @@ -97,5 +97,4 @@ class WP_REST_Blocks_Controller extends WP_REST_Posts_Controller { return $this->add_additional_fields_schema( $this->schema ); } - } diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php index 4801d7943d..93e466191d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php @@ -369,5 +369,4 @@ class WP_REST_Post_Statuses_Controller extends WP_REST_Controller { 'context' => $this->get_context_param( array( 'default' => 'view' ) ), ); } - } diff --git a/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php b/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php index 5809245acf..fb85fce2e2 100644 --- a/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php +++ b/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php @@ -202,5 +202,4 @@ class WP_REST_Post_Search_Handler extends WP_REST_Search_Handler { return rest_get_route_for_post( $post ); } - } diff --git a/wp-includes/version.php b/wp-includes/version.php index bb2184d96f..bfacdb0388 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56546'; +$wp_version = '6.4-alpha-56547'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-categories.php b/wp-includes/widgets/class-wp-widget-categories.php index 5961fb19ec..3c009709ba 100644 --- a/wp-includes/widgets/class-wp-widget-categories.php +++ b/wp-includes/widgets/class-wp-widget-categories.php @@ -203,5 +203,4 @@ class WP_Widget_Categories extends WP_Widget {