From d790be16dc0d167508c5e791e423b1f544a7e8f3 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
';
}
-
}
}
}
diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php
index 0e576f0af6651..6f28dd7dbc728 100644
--- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php
+++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php
@@ -335,6 +335,5 @@ public static function get_social_link_svg( $uri ) {
'youtube' => '',
);
-
}
}
diff --git a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
index 27c50cf530163..611ce3756f195 100644
--- a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
+++ b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
@@ -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.
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/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php
index d88aabc0944ac..398ef82bbd7c8 100644
--- a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php
+++ b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php
@@ -249,5 +249,4 @@ public static function get_social_link_svg( $uri, $size ) {
}
return null;
}
-
}
diff --git a/src/wp-includes/class-walker-category.php b/src/wp-includes/class-walker-category.php
index 36f631c1b24fe..24ae740030bdf 100644
--- a/src/wp-includes/class-walker-category.php
+++ b/src/wp-includes/class-walker-category.php
@@ -275,5 +275,4 @@ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
$output .= "\n";
}
-
}
diff --git a/src/wp-includes/class-walker-page.php b/src/wp-includes/class-walker-page.php
index 3ee5bbda61301..e26c21d0cbc93 100644
--- a/src/wp-includes/class-walker-page.php
+++ b/src/wp-includes/class-walker-page.php
@@ -241,5 +241,4 @@ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
}
$output .= "{$n}";
}
-
}
diff --git a/src/wp-includes/class-wp-block-list.php b/src/wp-includes/class-wp-block-list.php
index 9b7caaf01f7e1..2505920755340 100644
--- a/src/wp-includes/class-wp-block-list.php
+++ b/src/wp-includes/class-wp-block-list.php
@@ -210,5 +210,4 @@ public function valid() {
public function count() {
return count( $this->blocks );
}
-
}
diff --git a/src/wp-includes/class-wp-block.php b/src/wp-includes/class-wp-block.php
index 890ae5e559353..cdbc678f13d56 100644
--- a/src/wp-includes/class-wp-block.php
+++ b/src/wp-includes/class-wp-block.php
@@ -309,5 +309,4 @@ public function render( $options = array() ) {
return $block_content;
}
-
}
diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php
index ab4d2523a0eb7..30e8c2c63914b 100644
--- a/src/wp-includes/class-wp-customize-control.php
+++ b/src/wp-includes/class-wp-customize-control.php
@@ -701,7 +701,6 @@ final public function print_template() {
* @since 4.1.0
*/
protected function content_template() {}
-
}
/**
diff --git a/src/wp-includes/class-wp-dependencies.php b/src/wp-includes/class-wp-dependencies.php
index 0bc42bb282b77..e2bbf4ff98bb7 100644
--- a/src/wp-includes/class-wp-dependencies.php
+++ b/src/wp-includes/class-wp-dependencies.php
@@ -490,5 +490,4 @@ public function set_group( $handle, $recursion, $group ) {
return true;
}
-
}
diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php
index 795aec4fe1ee8..8a6cdfd09f758 100644
--- a/src/wp-includes/class-wp-hook.php
+++ b/src/wp-includes/class-wp-hook.php
@@ -564,5 +564,4 @@ public function valid() {
public function rewind() {
reset( $this->callbacks );
}
-
}
diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
index 546ba96c1cdfb..bc411179d3261 100644
--- a/src/wp-includes/class-wp-http.php
+++ b/src/wp-includes/class-wp-http.php
@@ -1102,5 +1102,4 @@ public static function is_ip_address( $maybe_ip ) {
return false;
}
-
}
diff --git a/src/wp-includes/class-wp-image-editor-imagick.php b/src/wp-includes/class-wp-image-editor-imagick.php
index 7229c903b40a0..03fe0bca6975f 100644
--- a/src/wp-includes/class-wp-image-editor-imagick.php
+++ b/src/wp-includes/class-wp-image-editor-imagick.php
@@ -1043,5 +1043,4 @@ protected function pdf_load_source() {
return true;
}
-
}
diff --git a/src/wp-includes/class-wp-role.php b/src/wp-includes/class-wp-role.php
index 6f25c3cb0342a..b9884f206529c 100644
--- a/src/wp-includes/class-wp-role.php
+++ b/src/wp-includes/class-wp-role.php
@@ -100,5 +100,4 @@ public function has_cap( $cap ) {
return false;
}
}
-
}
diff --git a/src/wp-includes/class-wp-text-diff-renderer-inline.php b/src/wp-includes/class-wp-text-diff-renderer-inline.php
index 19a00d83c7eaa..f3e4f6b7b0394 100644
--- a/src/wp-includes/class-wp-text-diff-renderer-inline.php
+++ b/src/wp-includes/class-wp-text-diff-renderer-inline.php
@@ -30,5 +30,4 @@ public function _splitOnWords( $string, $newlineEscape = "\n" ) { // phpcs:ignor
$words = str_replace( "\n", $newlineEscape, $words );
return $words;
}
-
}
diff --git a/src/wp-includes/class-wp-theme-json-data.php b/src/wp-includes/class-wp-theme-json-data.php
index 9ffa2f358570e..6aa8a3971c62d 100644
--- a/src/wp-includes/class-wp-theme-json-data.php
+++ b/src/wp-includes/class-wp-theme-json-data.php
@@ -69,5 +69,4 @@ public function update_with( $new_data ) {
public function get_data() {
return $this->theme_json->get_raw_data();
}
-
}
diff --git a/src/wp-includes/class-wp-walker.php b/src/wp-includes/class-wp-walker.php
index f7f4715ed1250..28cecfe79ec46 100644
--- a/src/wp-includes/class-wp-walker.php
+++ b/src/wp-includes/class-wp-walker.php
@@ -446,5 +446,4 @@ public function unset_children( $element, &$children_elements ) {
unset( $children_elements[ $id ] );
}
-
}
diff --git a/src/wp-includes/customize/class-wp-customize-cropped-image-control.php b/src/wp-includes/customize/class-wp-customize-cropped-image-control.php
index c8a55f401c0b4..5f0debba2984a 100644
--- a/src/wp-includes/customize/class-wp-customize-cropped-image-control.php
+++ b/src/wp-includes/customize/class-wp-customize-cropped-image-control.php
@@ -82,5 +82,4 @@ public function to_json() {
$this->json['flex_width'] = absint( $this->flex_width );
$this->json['flex_height'] = absint( $this->flex_height );
}
-
}
diff --git a/src/wp-includes/pomo/streams.php b/src/wp-includes/pomo/streams.php
index 8fa5fc61561ba..af76c5c5b3600 100644
--- a/src/wp-includes/pomo/streams.php
+++ b/src/wp-includes/pomo/streams.php
@@ -299,7 +299,6 @@ public function length() {
public function read_all() {
return $this->substr( $this->_str, $this->_pos, $this->strlen( $this->_str ) );
}
-
}
endif;
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
index 138440e8c24e5..bbb02c8765eab 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
@@ -1451,5 +1451,4 @@ protected function get_edit_media_item_args() {
),
);
}
-
}
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
index 26bd0e05449e6..fe86ff669d0bf 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
@@ -767,5 +767,4 @@ public function get_collection_params() {
),
);
}
-
}
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
index a270e0ff4829d..305647451b02c 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
@@ -97,5 +97,4 @@ public function get_item_schema() {
return $this->add_additional_fields_schema( $this->schema );
}
-
}
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
index 4801d7943d576..93e466191d3ce 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
@@ -369,5 +369,4 @@ public function get_collection_params() {
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
);
}
-
}
diff --git a/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php b/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
index 5809245acf00e..fb85fce2e2cca 100644
--- a/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
+++ b/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
@@ -202,5 +202,4 @@ protected function detect_rest_item_route( $post ) {
return rest_get_route_for_post( $post );
}
-
}
diff --git a/src/wp-includes/widgets/class-wp-widget-categories.php b/src/wp-includes/widgets/class-wp-widget-categories.php
index 5961fb19ecad9..3c009709ba9f5 100644
--- a/src/wp-includes/widgets/class-wp-widget-categories.php
+++ b/src/wp-includes/widgets/class-wp-widget-categories.php
@@ -203,5 +203,4 @@ public function form( $instance ) {
Links: No rel
'; $this->assertSame( $expected, wp_targeted_link_rel( $content ) ); } - } diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 1451117b91732..0a5703d94ba8e 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -2160,5 +2160,4 @@ public function test_wp_recursive_ksort() { ); $this->assertSameSetsWithIndex( $theme_json, $expected_theme_json ); } - } diff --git a/tests/phpunit/tests/functions/addMagicQuotes.php b/tests/phpunit/tests/functions/addMagicQuotes.php index f42b601e09816..47085efe76460 100644 --- a/tests/phpunit/tests/functions/addMagicQuotes.php +++ b/tests/phpunit/tests/functions/addMagicQuotes.php @@ -61,5 +61,4 @@ public function data_add_magic_quotes() { ), ); } - } diff --git a/tests/phpunit/tests/functions/anonymization.php b/tests/phpunit/tests/functions/anonymization.php index a7849ddf46152..7a4ff6a26be5f 100644 --- a/tests/phpunit/tests/functions/anonymization.php +++ b/tests/phpunit/tests/functions/anonymization.php @@ -320,5 +320,4 @@ public function filter_wp_privacy_anonymize_data( $anonymous, $type, $data ) { } return $anonymous; } - } diff --git a/tests/phpunit/tests/functions/canonicalCharset.php b/tests/phpunit/tests/functions/canonicalCharset.php index 973562c6a993c..4a11e9c7648bb 100644 --- a/tests/phpunit/tests/functions/canonicalCharset.php +++ b/tests/phpunit/tests/functions/canonicalCharset.php @@ -88,5 +88,4 @@ public function test_update_option_blog_charset() { update_option( 'blog_charset', $orig_blog_charset ); } - } diff --git a/tests/phpunit/tests/functions/doEnclose.php b/tests/phpunit/tests/functions/doEnclose.php index 5611878bd258b..d906ed6f610bc 100644 --- a/tests/phpunit/tests/functions/doEnclose.php +++ b/tests/phpunit/tests/functions/doEnclose.php @@ -289,5 +289,4 @@ public function mock_http_request( $response, $parsed_args, $url ) { ), ); } - } diff --git a/tests/phpunit/tests/functions/isNewDay.php b/tests/phpunit/tests/functions/isNewDay.php index f852c8908faba..b1993e09e1082 100644 --- a/tests/phpunit/tests/functions/isNewDay.php +++ b/tests/phpunit/tests/functions/isNewDay.php @@ -33,5 +33,4 @@ public function data_is_new_date() { array( '21.05.19', false, 1 ), ); } - } diff --git a/tests/phpunit/tests/functions/wp.php b/tests/phpunit/tests/functions/wp.php index 04df43b3489d5..14356a4ebc91b 100644 --- a/tests/phpunit/tests/functions/wp.php +++ b/tests/phpunit/tests/functions/wp.php @@ -16,5 +16,4 @@ public function test_wp_sets_global_vars() { $this->assertInstanceOf( 'WP_Query', $wp_query ); $this->assertInstanceOf( 'WP_Query', $wp_the_query ); } - } diff --git a/tests/phpunit/tests/functions/wpFuzzyNumberMatch.php b/tests/phpunit/tests/functions/wpFuzzyNumberMatch.php index 85034165cecdd..77a06e2bb7ffb 100644 --- a/tests/phpunit/tests/functions/wpFuzzyNumberMatch.php +++ b/tests/phpunit/tests/functions/wpFuzzyNumberMatch.php @@ -108,5 +108,4 @@ public function data_wp_fuzzy_number_match() { ), ); } - } diff --git a/tests/phpunit/tests/functions/wpListUtil.php b/tests/phpunit/tests/functions/wpListUtil.php index 752ea1382caee..dba0a127973e3 100644 --- a/tests/phpunit/tests/functions/wpListUtil.php +++ b/tests/phpunit/tests/functions/wpListUtil.php @@ -1161,5 +1161,4 @@ public function data_wp_list_util_sort_non_existent_orderby_fields() { ), ); } - } diff --git a/tests/phpunit/tests/general/wpPreloadResources.php b/tests/phpunit/tests/general/wpPreloadResources.php index fe2a4e6fa51c0..8648da8949c09 100644 --- a/tests/phpunit/tests/general/wpPreloadResources.php +++ b/tests/phpunit/tests/general/wpPreloadResources.php @@ -249,5 +249,4 @@ public function data_preload_resources() { ), ); } - } diff --git a/tests/phpunit/tests/hooks/applyFilters.php b/tests/phpunit/tests/hooks/applyFilters.php index f25bd0858243a..4c3a594aa98e0 100644 --- a/tests/phpunit/tests/hooks/applyFilters.php +++ b/tests/phpunit/tests/hooks/applyFilters.php @@ -42,5 +42,4 @@ public function test_apply_filters_with_multiple_calls() { $this->assertSame( $returned_two, $arg ); $this->assertSame( 2, $a->get_call_count() ); } - } diff --git a/tests/phpunit/tests/http/base.php b/tests/phpunit/tests/http/base.php index 00abf1655bacd..976827c4afb33 100644 --- a/tests/phpunit/tests/http/base.php +++ b/tests/phpunit/tests/http/base.php @@ -487,6 +487,4 @@ public function test_url_with_double_slashes_path() { $this->skipTestOnTimeout( $res ); $this->assertNotWPError( $res ); } - - } diff --git a/tests/phpunit/tests/image/dimensions.php b/tests/phpunit/tests/image/dimensions.php index 5820f64ae7206..a80c4ece3e646 100644 --- a/tests/phpunit/tests/image/dimensions.php +++ b/tests/phpunit/tests/image/dimensions.php @@ -181,5 +181,4 @@ public function test_crop_anchors() { // dst_x, dst_y, src_x, src_y, dst_w, dst_h, src_w, src_h. $this->assertSame( array( 0, 0, 0, 40, 400, 500, 480, 600 ), $out ); } - } diff --git a/tests/phpunit/tests/image/editor.php b/tests/phpunit/tests/image/editor.php index 6e800deb7af12..bd54b803e2897 100644 --- a/tests/phpunit/tests/image/editor.php +++ b/tests/phpunit/tests/image/editor.php @@ -363,5 +363,4 @@ public function data_wp_get_webp_info() { ), ); } - } diff --git a/tests/phpunit/tests/image/resizeGd.php b/tests/phpunit/tests/image/resizeGd.php index 40a3faebfc4b1..a990c0a126bbd 100644 --- a/tests/phpunit/tests/image/resizeGd.php +++ b/tests/phpunit/tests/image/resizeGd.php @@ -38,5 +38,4 @@ public function test_resize_bad_image() { $this->assertInstanceOf( 'WP_Error', $image ); $this->assertSame( 'invalid_image', $image->get_error_code() ); } - } diff --git a/tests/phpunit/tests/image/size.php b/tests/phpunit/tests/image/size.php index 60819b41b5500..c8c6234b23742 100644 --- a/tests/phpunit/tests/image/size.php +++ b/tests/phpunit/tests/image/size.php @@ -208,5 +208,4 @@ public function test_constrain_size_for_editor_full() { $content_width = $_content_width; } - } diff --git a/tests/phpunit/tests/link/getNextCommentsLink.php b/tests/phpunit/tests/link/getNextCommentsLink.php index 459ad9d176fde..fc18dc3f4c627 100644 --- a/tests/phpunit/tests/link/getNextCommentsLink.php +++ b/tests/phpunit/tests/link/getNextCommentsLink.php @@ -37,5 +37,4 @@ public function test_page_should_default_to_1_when_no_cpage_query_var_is_found() set_query_var( 'cpage', $cpage ); } - } diff --git a/tests/phpunit/tests/link/getPostPermalink.php b/tests/phpunit/tests/link/getPostPermalink.php index 16d1da0beacdd..fa36e8bfea7cc 100644 --- a/tests/phpunit/tests/link/getPostPermalink.php +++ b/tests/phpunit/tests/link/getPostPermalink.php @@ -14,5 +14,4 @@ public function test_get_post_permalink_should_return_string_on_success() { public function test_get_post_permalink_should_return_false_for_non_existing_post() { $this->assertFalse( get_post_permalink( -1 ) ); } - } diff --git a/tests/phpunit/tests/link/getPreviewPostLink.php b/tests/phpunit/tests/link/getPreviewPostLink.php index a689cb31f397e..ce4dcf2c4a432 100644 --- a/tests/phpunit/tests/link/getPreviewPostLink.php +++ b/tests/phpunit/tests/link/getPreviewPostLink.php @@ -83,5 +83,4 @@ public function test_get_preview_post_link_should_return_empty_string_for_non_vi $this->assertSame( '', get_preview_post_link( $post ) ); } - } diff --git a/tests/phpunit/tests/link/getPreviousCommentsLink.php b/tests/phpunit/tests/link/getPreviousCommentsLink.php index cda521a204569..596a6eaca0ed1 100644 --- a/tests/phpunit/tests/link/getPreviousCommentsLink.php +++ b/tests/phpunit/tests/link/getPreviousCommentsLink.php @@ -35,5 +35,4 @@ public function test_page_should_default_to_1_when_no_cpage_query_var_is_found() set_query_var( 'cpage', $cpage ); } - } diff --git a/tests/phpunit/tests/link/getThePostsNavigation.php b/tests/phpunit/tests/link/getThePostsNavigation.php index 83c262d911bae..d7d3846b9a1fd 100644 --- a/tests/phpunit/tests/link/getThePostsNavigation.php +++ b/tests/phpunit/tests/link/getThePostsNavigation.php @@ -104,5 +104,4 @@ public function data_get_the_posts_navigation() { ), ); } - } diff --git a/tests/phpunit/tests/link/themeFile.php b/tests/phpunit/tests/link/themeFile.php index f988dc100621f..711689c4a46a5 100644 --- a/tests/phpunit/tests/link/themeFile.php +++ b/tests/phpunit/tests/link/themeFile.php @@ -182,5 +182,4 @@ public function data_theme_files() { ), ); } - } diff --git a/tests/phpunit/tests/meta/isProtectedMeta.php b/tests/phpunit/tests/meta/isProtectedMeta.php index ba3eeed9a2bf7..3216d3a745778 100644 --- a/tests/phpunit/tests/meta/isProtectedMeta.php +++ b/tests/phpunit/tests/meta/isProtectedMeta.php @@ -51,5 +51,4 @@ public function data_is_protected_meta_false() { return $unprotected_keys; } - } diff --git a/tests/phpunit/tests/meta/updateMetadata.php b/tests/phpunit/tests/meta/updateMetadata.php index 7f5aff32cdb34..355e53f160ce6 100644 --- a/tests/phpunit/tests/meta/updateMetadata.php +++ b/tests/phpunit/tests/meta/updateMetadata.php @@ -105,5 +105,4 @@ public function test_clear_post_metadata_caches() { $found = get_metadata( 'post', $post_id, 'key', true ); $this->assertSame( 'value2', $found ); } - } diff --git a/tests/phpunit/tests/multisite/getIdFromBlogname.php b/tests/phpunit/tests/multisite/getIdFromBlogname.php index 49b4bf6f85c49..63f8ab79e7df5 100644 --- a/tests/phpunit/tests/multisite/getIdFromBlogname.php +++ b/tests/phpunit/tests/multisite/getIdFromBlogname.php @@ -136,7 +136,6 @@ public function test_get_id_from_blogname_invalid_slug() { $this->assertNull( $result ); } - } endif; diff --git a/tests/phpunit/tests/multisite/getSite.php b/tests/phpunit/tests/multisite/getSite.php index 46a5121247fd9..c87f99649caee 100644 --- a/tests/phpunit/tests/multisite/getSite.php +++ b/tests/phpunit/tests/multisite/getSite.php @@ -47,7 +47,6 @@ public function test_get_site_in_switched_state_returns_switched_site() { $this->assertSame( self::$site_ids['wordpress.org/foo/'], $site->id ); } - } endif; diff --git a/tests/phpunit/tests/multisite/updateBlogDetails.php b/tests/phpunit/tests/multisite/updateBlogDetails.php index d3249a126165d..d53c2f8c2bdec 100644 --- a/tests/phpunit/tests/multisite/updateBlogDetails.php +++ b/tests/phpunit/tests/multisite/updateBlogDetails.php @@ -127,6 +127,5 @@ public function data_single_directory_path() { array( 'multiple///dirs', '/multiple///dirs/' ), ); } - } endif; diff --git a/tests/phpunit/tests/option/sanitizeOption.php b/tests/phpunit/tests/option/sanitizeOption.php index 38fdda1a2187f..b4f8293041e3f 100644 --- a/tests/phpunit/tests/option/sanitizeOption.php +++ b/tests/phpunit/tests/option/sanitizeOption.php @@ -174,5 +174,4 @@ public function data_sanitize_option_permalink_structure() { array( new WP_Error( 'wpdb_get_table_charset_failure' ), false, false ), // @ticket 53986 ); } - } diff --git a/tests/phpunit/tests/option/themeMods.php b/tests/phpunit/tests/option/themeMods.php index b062554a2c4a8..379d7887f656c 100644 --- a/tests/phpunit/tests/option/themeMods.php +++ b/tests/phpunit/tests/option/themeMods.php @@ -129,5 +129,4 @@ public function data_theme_mod_default_value_with_percent_symbols() { ), ); } - } diff --git a/tests/phpunit/tests/post/getBodyClass.php b/tests/phpunit/tests/post/getBodyClass.php index 2872218afb805..25810e6075740 100644 --- a/tests/phpunit/tests/post/getBodyClass.php +++ b/tests/phpunit/tests/post/getBodyClass.php @@ -257,5 +257,4 @@ public function test_privacy_policy_body_class() { $this->assertContains( 'page', $class ); $this->assertContains( "page-id-{$page_id}", $class ); } - } diff --git a/tests/phpunit/tests/post/getPageByTitle.php b/tests/phpunit/tests/post/getPageByTitle.php index a85d8f42c5eeb..084453cbb0144 100644 --- a/tests/phpunit/tests/post/getPageByTitle.php +++ b/tests/phpunit/tests/post/getPageByTitle.php @@ -17,5 +17,4 @@ class Tests_Post_GetPageByTitle extends WP_UnitTestCase { public function test_get_page_by_title_should_be_deprecated() { $this->assertNull( get_page_by_title( '#57041 Page' ) ); } - } diff --git a/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php b/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php index 5374cd5701056..951039cb086d1 100644 --- a/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php +++ b/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php @@ -240,5 +240,4 @@ public function modify_email_headers( $headers ) { return $headers; } - } diff --git a/tests/phpunit/tests/query/conditionals.php b/tests/phpunit/tests/query/conditionals.php index c447c638d6986..b365a1207f828 100644 --- a/tests/phpunit/tests/query/conditionals.php +++ b/tests/phpunit/tests/query/conditionals.php @@ -1692,5 +1692,4 @@ public function data_loop_functions_do_not_trigger_a_fatal_error_if_wp_query_is_ array( 'the_comment', null ), ); } - } diff --git a/tests/phpunit/tests/query/searchColumns.php b/tests/phpunit/tests/query/searchColumns.php index 463bef810738f..9ef30c2113920 100644 --- a/tests/phpunit/tests/query/searchColumns.php +++ b/tests/phpunit/tests/query/searchColumns.php @@ -410,5 +410,4 @@ public function post_non_existing_search_column( $search_columns, $search, $wp_q $search_columns = array( 'post_non_existing_column' ); return $search_columns; } - } diff --git a/tests/phpunit/tests/query/vars.php b/tests/phpunit/tests/query/vars.php index 4b4b96561b6ac..87e7fa7bb75c6 100644 --- a/tests/phpunit/tests/query/vars.php +++ b/tests/phpunit/tests/query/vars.php @@ -80,5 +80,4 @@ public function testPublicQueryVarsAreAsExpected() { 'Care should be taken when introducing new public query vars. See https://core.trac.wordpress.org/ticket/35115' ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-pages-controller.php b/tests/phpunit/tests/rest-api/rest-pages-controller.php index 9900c5a003afe..75c005b275152 100644 --- a/tests/phpunit/tests/rest-api/rest-pages-controller.php +++ b/tests/phpunit/tests/rest-api/rest-pages-controller.php @@ -787,5 +787,4 @@ protected function set_post_data( $args = array() ) { $args['type'] = 'page'; return $args; } - } diff --git a/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php b/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php index 366e59645947e..f6bb1d795a114 100644 --- a/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php +++ b/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php @@ -225,5 +225,4 @@ protected function check_post_status_object_response( $response ) { $obj = get_post_status_object( 'publish' ); $this->check_post_status_obj( $obj, $data, $response->get_links() ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-post-types-controller.php b/tests/phpunit/tests/rest-api/rest-post-types-controller.php index 1c2a0b53b4ef1..d881b9c8a07dd 100644 --- a/tests/phpunit/tests/rest-api/rest-post-types-controller.php +++ b/tests/phpunit/tests/rest-api/rest-post-types-controller.php @@ -263,5 +263,4 @@ protected function check_post_type_object_response( $context, $response, $post_t $obj = get_post_type_object( $post_type ); $this->check_post_type_obj( $context, $obj, $data, $response->get_links() ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-request-validation.php b/tests/phpunit/tests/rest-api/rest-request-validation.php index 4444fb6065120..3d81536099494 100644 --- a/tests/phpunit/tests/rest-api/rest-request-validation.php +++ b/tests/phpunit/tests/rest-api/rest-request-validation.php @@ -202,5 +202,4 @@ public function test_validate_less_than_max_exclusive() { $ret = rest_validate_request_arg( 9, $request, 'lessthanmax' ); $this->assertTrue( $ret ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-search-controller.php b/tests/phpunit/tests/rest-api/rest-search-controller.php index 2e39d385d9965..7345d45f8632f 100644 --- a/tests/phpunit/tests/rest-api/rest-search-controller.php +++ b/tests/phpunit/tests/rest-api/rest-search-controller.php @@ -888,5 +888,4 @@ public function test_get_items_search_terms_exclude_ids() { wp_list_pluck( $response->get_data(), 'id' ) ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php b/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php index 6da465be25462..264e9cf8c2889 100644 --- a/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php +++ b/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php @@ -316,5 +316,4 @@ public function test_get_for_taxonomy_returns_terms_controller_if_custom_class_n get_taxonomy( 'test' )->get_rest_controller() ); } - } diff --git a/tests/phpunit/tests/rest-api/rest-test-controller.php b/tests/phpunit/tests/rest-api/rest-test-controller.php index 042f37cf8bf48..48b326407d9f2 100644 --- a/tests/phpunit/tests/rest-api/rest-test-controller.php +++ b/tests/phpunit/tests/rest-api/rest-test-controller.php @@ -180,5 +180,4 @@ public function get_item_schema() { return $this->add_additional_fields_schema( $schema ); } - } diff --git a/tests/phpunit/tests/rewrite/addRewriteEndpoint.php b/tests/phpunit/tests/rewrite/addRewriteEndpoint.php index 0c4c7a332d537..7b3ada5febe7d 100644 --- a/tests/phpunit/tests/rewrite/addRewriteEndpoint.php +++ b/tests/phpunit/tests/rewrite/addRewriteEndpoint.php @@ -108,5 +108,4 @@ public function test_page_endpoint_only_applies_on_page() { $this->assertTrue( is_404() ); $this->assertSame( '', get_query_var( 'page_endpoint' ) ); } - } diff --git a/tests/phpunit/tests/template.php b/tests/phpunit/tests/template.php index c79082dff3171..3ae0bf31b89d7 100644 --- a/tests/phpunit/tests/template.php +++ b/tests/phpunit/tests/template.php @@ -678,5 +678,4 @@ public function log_template_hierarchy( array $hierarchy ) { $this->hierarchy = array_merge( $this->hierarchy, $hierarchy ); return $hierarchy; } - } diff --git a/tests/phpunit/tests/term/wpUpdateTerm.php b/tests/phpunit/tests/term/wpUpdateTerm.php index 32d93258daea7..cbbd5780d6d1c 100644 --- a/tests/phpunit/tests/term/wpUpdateTerm.php +++ b/tests/phpunit/tests/term/wpUpdateTerm.php @@ -802,5 +802,4 @@ public function test_wp_update_term_with_null_get_term() { $this->assertWPError( $found ); $this->assertSame( 'invalid_term', $found->get_error_code() ); } - } diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index a2c6e1e9f7b2c..698880eab109b 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -4917,5 +4917,4 @@ public function test_resolve_variables() { $this->assertEquals( $small_font, $styles['blocks']['core/quote']['variations']['plain']['typography']['fontSize'], 'Block variations: font-size' ); $this->assertEquals( $secondary_color, $styles['blocks']['core/quote']['variations']['plain']['color']['background'], 'Block variations: color' ); } - } diff --git a/tests/phpunit/tests/upload.php b/tests/phpunit/tests/upload.php index 4640439313db1..46fcea7099097 100644 --- a/tests/phpunit/tests/upload.php +++ b/tests/phpunit/tests/upload.php @@ -105,5 +105,4 @@ public function test_upload_dir_empty() { $this->assertSame( $subdir, $info['subdir'] ); $this->assertFalse( $info['error'] ); } - } diff --git a/tests/phpunit/tests/user/countUsers.php b/tests/phpunit/tests/user/countUsers.php index b09cd857845f6..db31ddab75ebe 100644 --- a/tests/phpunit/tests/user/countUsers.php +++ b/tests/phpunit/tests/user/countUsers.php @@ -291,5 +291,4 @@ public function data_count_users_strategies() { ), ); } - } diff --git a/tests/phpunit/tests/user/multisite.php b/tests/phpunit/tests/user/multisite.php index e3173db43e0c5..08d08bbe75bb3 100644 --- a/tests/phpunit/tests/user/multisite.php +++ b/tests/phpunit/tests/user/multisite.php @@ -448,7 +448,6 @@ public function test_wp_roles_global_is_reset() { $wp_roles->remove_role( $role ); } - } endif; diff --git a/tests/phpunit/tests/user/passwordHash.php b/tests/phpunit/tests/user/passwordHash.php index 1179ba25b2680..db34969c71bb3 100644 --- a/tests/phpunit/tests/user/passwordHash.php +++ b/tests/phpunit/tests/user/passwordHash.php @@ -30,5 +30,4 @@ public function test_gensalt_blowfish_should_not_throw_deprecation_notice_on_php $hasher = new PasswordHash( 8, true ); $hasher->gensalt_blowfish( 'a password string' ); } - } diff --git a/tests/phpunit/tests/user/slashes.php b/tests/phpunit/tests/user/slashes.php index 40eb2b176b636..e8c414ddecbe3 100644 --- a/tests/phpunit/tests/user/slashes.php +++ b/tests/phpunit/tests/user/slashes.php @@ -230,5 +230,4 @@ public function test_wp_update_user() { $this->assertSame( wp_unslash( self::SLASH_2 ), $user->display_name ); $this->assertSame( wp_unslash( self::SLASH_4 ), $user->description ); } - } diff --git a/tests/phpunit/tests/user/wpGetUsersWithNoRole.php b/tests/phpunit/tests/user/wpGetUsersWithNoRole.php index f853e0e78b659..d5710aeddf0b9 100644 --- a/tests/phpunit/tests/user/wpGetUsersWithNoRole.php +++ b/tests/phpunit/tests/user/wpGetUsersWithNoRole.php @@ -149,5 +149,4 @@ public function test_get_users_with_no_role_matches_on_role_name_different_site( $this->assertEmpty( $users ); } - } diff --git a/tests/phpunit/tests/user/wpRegisterPersistedPreferencesMeta.php b/tests/phpunit/tests/user/wpRegisterPersistedPreferencesMeta.php index c3c4bd7a09e08..9c4725ffbfc9e 100644 --- a/tests/phpunit/tests/user/wpRegisterPersistedPreferencesMeta.php +++ b/tests/phpunit/tests/user/wpRegisterPersistedPreferencesMeta.php @@ -57,5 +57,4 @@ public function test_should_register_persisted_preferences_meta() { 'The registered metadata did not have the expected structure' ); } - } diff --git a/tests/phpunit/tests/walker.php b/tests/phpunit/tests/walker.php index e2e9e1aba23a3..31e45963bb7da 100644 --- a/tests/phpunit/tests/walker.php +++ b/tests/phpunit/tests/walker.php @@ -314,7 +314,6 @@ public function test_multiple_items_non_numeric_parent() { $this->assertSame( '