From 46f64928af6e5cd19ed36bbc2e2a9ed3bcc955c0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 7 Sep 2023 14:57:30 +0000 Subject: [PATCH] Coding Standards: Remove superfluous blank lines at the end of various files. Note: This is enforced by WPCS 3.0.0. Props jrf. See #59161, #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56536 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/media-upload.php | 1 - src/wp-content/themes/twentytwentytwo/index.php | 1 - src/wp-includes/class-wp-image-editor.php | 1 - src/wp-includes/pomo/streams.php | 1 - tests/phpunit/includes/wp-profiler.php | 2 -- tests/phpunit/tests/block-supports/typography.php | 1 - tests/phpunit/tests/customize/setting.php | 1 - tests/phpunit/tests/formatting/ent2ncr.php | 1 - tests/phpunit/tests/formatting/seemsUtf8.php | 1 - tests/phpunit/tests/formatting/utf8UriEncode.php | 1 - tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php | 1 - tests/phpunit/tests/formatting/wpStripAllTags.php | 1 - tests/phpunit/tests/pomo/po.php | 1 - tests/phpunit/tests/query/commentCount.php | 1 - tests/phpunit/tests/theme/wpGetBlockCssSelector.php | 1 - tests/phpunit/tests/user/wpSetCurrentUser.php | 1 - tests/phpunit/tests/xmlrpc/client.php | 1 - tests/phpunit/wp-mail-real-test.php | 1 - 18 files changed, 19 deletions(-) diff --git a/src/wp-admin/media-upload.php b/src/wp-admin/media-upload.php index 7f943a829f564..015bc9d63de69 100644 --- a/src/wp-admin/media-upload.php +++ b/src/wp-admin/media-upload.php @@ -116,4 +116,3 @@ */ do_action( "media_upload_{$tab}" ); } - diff --git a/src/wp-content/themes/twentytwentytwo/index.php b/src/wp-content/themes/twentytwentytwo/index.php index 27dc7057dc511..877d8c3f1e21c 100644 --- a/src/wp-content/themes/twentytwentytwo/index.php +++ b/src/wp-content/themes/twentytwentytwo/index.php @@ -2,4 +2,3 @@ // There is nothing output here because block themes do not use php templates. // There is a core ticket discussing removing this requirement for block themes: // https://core.trac.wordpress.org/ticket/54272. - diff --git a/src/wp-includes/class-wp-image-editor.php b/src/wp-includes/class-wp-image-editor.php index bb15a03a0747c..3c636dc6ba5a7 100644 --- a/src/wp-includes/class-wp-image-editor.php +++ b/src/wp-includes/class-wp-image-editor.php @@ -654,4 +654,3 @@ protected static function get_extension( $mime_type = null ) { return wp_get_default_extension_for_mime_type( $mime_type ); } } - diff --git a/src/wp-includes/pomo/streams.php b/src/wp-includes/pomo/streams.php index 2a4feb5f676f7..8fa5fc61561ba 100644 --- a/src/wp-includes/pomo/streams.php +++ b/src/wp-includes/pomo/streams.php @@ -359,4 +359,3 @@ public function POMO_CachedIntFileReader( $filename ) { } } endif; - diff --git a/tests/phpunit/includes/wp-profiler.php b/tests/phpunit/includes/wp-profiler.php index ce78ba4c8e0c5..e589e783c623d 100644 --- a/tests/phpunit/includes/wp-profiler.php +++ b/tests/phpunit/includes/wp-profiler.php @@ -220,5 +220,3 @@ function wppf_results() { function wppf_print_summary() { $GLOBALS['wppf']->print_summary(); } - - diff --git a/tests/phpunit/tests/block-supports/typography.php b/tests/phpunit/tests/block-supports/typography.php index 4738f1b8ae430..9c547b4e5c6b4 100644 --- a/tests/phpunit/tests/block-supports/typography.php +++ b/tests/phpunit/tests/block-supports/typography.php @@ -994,4 +994,3 @@ public function data_wp_get_computed_fluid_typography_value() { ); } } - diff --git a/tests/phpunit/tests/customize/setting.php b/tests/phpunit/tests/customize/setting.php index ef7ea0d93a081..85091b5760617 100644 --- a/tests/phpunit/tests/customize/setting.php +++ b/tests/phpunit/tests/customize/setting.php @@ -765,4 +765,3 @@ public function test_multidimensional_value_when_previewed() { $this->assertSame( $override_value, $setting->value() ); } } - diff --git a/tests/phpunit/tests/formatting/ent2ncr.php b/tests/phpunit/tests/formatting/ent2ncr.php index ea5e2885bfb74..db60ba97ffa45 100644 --- a/tests/phpunit/tests/formatting/ent2ncr.php +++ b/tests/phpunit/tests/formatting/ent2ncr.php @@ -36,4 +36,3 @@ public function data_entities() { return $data_provided; } } - diff --git a/tests/phpunit/tests/formatting/seemsUtf8.php b/tests/phpunit/tests/formatting/seemsUtf8.php index b6a67950e9870..97ec6ff0c9cd3 100644 --- a/tests/phpunit/tests/formatting/seemsUtf8.php +++ b/tests/phpunit/tests/formatting/seemsUtf8.php @@ -43,4 +43,3 @@ public function data_seems_utf8_returns_false_for_non_utf8_strings() { return $big5_strings; } } - diff --git a/tests/phpunit/tests/formatting/utf8UriEncode.php b/tests/phpunit/tests/formatting/utf8UriEncode.php index e82e973e2944b..45d370d1da6e5 100644 --- a/tests/phpunit/tests/formatting/utf8UriEncode.php +++ b/tests/phpunit/tests/formatting/utf8UriEncode.php @@ -35,4 +35,3 @@ public function data() { return $data_provided; } } - diff --git a/tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php b/tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php index b16fd5e7f1c0b..b461e3bfe8e3c 100644 --- a/tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php +++ b/tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php @@ -36,4 +36,3 @@ public function data_wp_replace_in_html_tags() { ); } } - diff --git a/tests/phpunit/tests/formatting/wpStripAllTags.php b/tests/phpunit/tests/formatting/wpStripAllTags.php index 3efe479deca07..703d334858764 100644 --- a/tests/phpunit/tests/formatting/wpStripAllTags.php +++ b/tests/phpunit/tests/formatting/wpStripAllTags.php @@ -103,4 +103,3 @@ public function data_wp_strip_all_tags_should_cast_scalar_values_to_string() { ); } } - diff --git a/tests/phpunit/tests/pomo/po.php b/tests/phpunit/tests/pomo/po.php index 8c58099b69505..eeaf0aad14fea 100644 --- a/tests/phpunit/tests/pomo/po.php +++ b/tests/phpunit/tests/pomo/po.php @@ -340,4 +340,3 @@ public function test_import_from_file_with_windows_line_endings_should_work_as_w // TODO: Add tests for bad files. } - diff --git a/tests/phpunit/tests/query/commentCount.php b/tests/phpunit/tests/query/commentCount.php index 5a759a3f06a58..c5e0d4d2d6be5 100644 --- a/tests/phpunit/tests/query/commentCount.php +++ b/tests/phpunit/tests/query/commentCount.php @@ -371,4 +371,3 @@ public function test_simple_count() { $this->assertSameSets( $expected, $found_post_ids ); } } - diff --git a/tests/phpunit/tests/theme/wpGetBlockCssSelector.php b/tests/phpunit/tests/theme/wpGetBlockCssSelector.php index 43376dbe57e15..670007dbb0103 100644 --- a/tests/phpunit/tests/theme/wpGetBlockCssSelector.php +++ b/tests/phpunit/tests/theme/wpGetBlockCssSelector.php @@ -353,4 +353,3 @@ public function test_string_targets_for_subfeatures() { $this->assertEquals( '.found', $selector ); } } - diff --git a/tests/phpunit/tests/user/wpSetCurrentUser.php b/tests/phpunit/tests/user/wpSetCurrentUser.php index 559aa2fbf475d..bebee961ececc 100644 --- a/tests/phpunit/tests/user/wpSetCurrentUser.php +++ b/tests/phpunit/tests/user/wpSetCurrentUser.php @@ -58,4 +58,3 @@ public function test_should_set_by_name_if_id_is_null() { $this->assertSame( self::$user_id2, get_current_user_id() ); } } - diff --git a/tests/phpunit/tests/xmlrpc/client.php b/tests/phpunit/tests/xmlrpc/client.php index b08d98949f3dc..a13980c17d174 100644 --- a/tests/phpunit/tests/xmlrpc/client.php +++ b/tests/phpunit/tests/xmlrpc/client.php @@ -27,4 +27,3 @@ public function test_wp_ixr_client_allows_query_strings() { $this->assertSame( '/server.php?this-is-needed=true', $client->path ); } } - diff --git a/tests/phpunit/wp-mail-real-test.php b/tests/phpunit/wp-mail-real-test.php index 243efde0460d3..6c089e4ffb285 100644 --- a/tests/phpunit/wp-mail-real-test.php +++ b/tests/phpunit/wp-mail-real-test.php @@ -82,4 +82,3 @@ $headers[] = "BCC: {$bcc}"; wp_mail( '', $subject, $message, $headers ); echo "Test emails sent!\n"; -