diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php index a69c03ce88daf1bf0dd50b7b3e4a148e20da7b86..a92bccb1271a1366ea1f93de1ef47ee8a874bf2f 100644 --- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php +++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php @@ -506,8 +506,6 @@ private function readLine() { $this->errors[] = new FormattableMarkup('The translation stream %uri ended unexpectedly at line %line.', $log_vars); return FALSE; } - - return; } /** diff --git a/core/lib/Drupal/Core/Command/ServerCommand.php b/core/lib/Drupal/Core/Command/ServerCommand.php index 182167a4c45eedff0e136c870744779c843be1f5..f60325e8feb6256e6a9c4f774f2a2070a6027d51 100644 --- a/core/lib/Drupal/Core/Command/ServerCommand.php +++ b/core/lib/Drupal/Core/Command/ServerCommand.php @@ -176,7 +176,6 @@ protected function openBrowser($url, SymfonyStyle $io) { $php = "<?php sleep(2); passthru(\"$cmd\"); ?>"; $process = new PhpProcess($php); $process->start(); - return; } /** diff --git a/core/lib/Drupal/Core/Database/StatementEmpty.php b/core/lib/Drupal/Core/Database/StatementEmpty.php index 8b4b38e9463fc4d89ed33003e4c72fdd28f471aa..a87bca920a86e97fc38d572dfe950d4f4be1ed5d 100644 --- a/core/lib/Drupal/Core/Database/StatementEmpty.php +++ b/core/lib/Drupal/Core/Database/StatementEmpty.php @@ -49,9 +49,7 @@ public function rowCount() { /** * {@inheritdoc} */ - public function setFetchMode($mode, $a1 = NULL, $a2 = []) { - return; - } + public function setFetchMode($mode, $a1 = NULL, $a2 = []) {} /** * {@inheritdoc} diff --git a/core/lib/Drupal/Core/Entity/EntityListBuilder.php b/core/lib/Drupal/Core/Entity/EntityListBuilder.php index 82ca50ab1dc9da6cc239d52e2548ee70102696ce..bc68e06eb2728012579c4a71e4b7760326bb3ece 100644 --- a/core/lib/Drupal/Core/Entity/EntityListBuilder.php +++ b/core/lib/Drupal/Core/Entity/EntityListBuilder.php @@ -232,9 +232,7 @@ public function render() { /** * Gets the title of the page. */ - protected function getTitle() { - return; - } + protected function getTitle() {} /** * Ensures that a destination is present on the given URL. diff --git a/core/modules/config/tests/config_import_test/config_import_test.module b/core/modules/config/tests/config_import_test/config_import_test.module index d77df0e99f8121a0dc999fde22e006d1279e7583..e883045a429991d1440598fcd072835d0d5bee73 100644 --- a/core/modules/config/tests/config_import_test/config_import_test.module +++ b/core/modules/config/tests/config_import_test/config_import_test.module @@ -29,5 +29,4 @@ function _config_import_test_config_import_steps_alter(&$context, ConfigImporter $config_importer->logError('_config_import_test_config_import_steps_alter ConfigImporter error'); } $context['finished'] = 1; - return; } diff --git a/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php b/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php index 48e57845dd70b03b417b719b01027179835cff3e..a7f051966c1011aebecb5406907a3ce6bd21bc1b 100644 --- a/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php +++ b/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php @@ -60,8 +60,6 @@ public function isFile($path) { return FALSE; } - public function chmodJailed($path, $mode, $recursive) { - return; - } + public function chmodJailed($path, $mode, $recursive) {} } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php index 18ed1b7883f666baeae949268fa13ef90a710a71..abeddc71538c1c5e05e42c1db10e4ef8dc0879c8 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php @@ -48,7 +48,6 @@ protected function prepareEnvironment() { */ protected function setUpSettings() { // This form will never be reached. - return; } /** @@ -56,7 +55,6 @@ protected function setUpSettings() { */ protected function setUpSite() { // This form will never be reached. - return; } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php index b19ee442677f7efea9871c0ec411755ffa4903ba..da9a504012204310b804fd2c3f7466e06711bad2 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php @@ -21,7 +21,6 @@ class InstallerExistingConfigNoConfigTest extends InstallerExistingConfigTestBas */ protected function setUpSite() { // There are errors therefore there is nothing to do here. - return; } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php index 4ac68d4e8637c48883e872b796bc3ebc819de984..138d66e3de1a84fd4defd6aa9ca6ae1bcd18102e 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php @@ -22,7 +22,7 @@ protected function prepareEnvironment() { * {@inheritdoc} */ public function setUpSite() { - return; + // There are are errors. Therefore, there is nothing to do here. } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php index 2d9d6cdfc121c4480fecdf4e60047033456619e5..da0cb3b322739b118bc3d700fe0937be6a66f8b3 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php @@ -32,7 +32,6 @@ function config_profile_with_hook_install_install() { */ protected function setUpSettings() { // There are errors therefore there is nothing to do here. - return; } /** @@ -40,7 +39,6 @@ protected function setUpSettings() { */ protected function setUpSite() { // There are errors therefore there is nothing to do here. - return; } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php index 38a06971fa2188acad23c75144eaf45e20ea955d..42c0a0181cdb558d58501613998caccd4cda70d4 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php @@ -46,7 +46,6 @@ function testing_config_install_multilingual_install() { protected function setUpProfile() { // This is the form we are testing so wait until the test method to do // assertions. - return; } /** @@ -54,7 +53,6 @@ protected function setUpProfile() { */ protected function setUpRequirementsProblem() { // This form will never be reached. - return; } /** @@ -62,7 +60,6 @@ protected function setUpRequirementsProblem() { */ protected function setUpSettings() { // This form will never be reached. - return; } /** @@ -70,7 +67,6 @@ protected function setUpSettings() { */ protected function setUpSite() { // This form will never be reached. - return; } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php index 80b392a72a70b87feb1fb4459529019fbe6f863f..cf8c0fab2669532a06a65997770e447251f220b5 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php @@ -42,7 +42,6 @@ protected function setUpSettings() { protected function setUpSite() { // This step will not occur because there is an error. - return; } /** diff --git a/core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php b/core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php index eb8d9487b68819ee0b92b4da647494648bbb849b..702f4b0ba00065eb6375b121ae2d529c186b20b9 100644 --- a/core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php +++ b/core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php @@ -67,9 +67,7 @@ public function databaseType() { /** * {@inheritdoc} */ - public function createDatabase($database) { - return; - } + public function createDatabase($database) {} /** * {@inheritdoc} diff --git a/core/tests/fixtures/database_drivers/custom/fake/Connection.php b/core/tests/fixtures/database_drivers/custom/fake/Connection.php index 377b0f3679c8a02bfef666a5e89d7f7eeb36ccb0..27656f8792f0179df7b0d9a3e45f0fb6cd3a7f43 100644 --- a/core/tests/fixtures/database_drivers/custom/fake/Connection.php +++ b/core/tests/fixtures/database_drivers/custom/fake/Connection.php @@ -49,9 +49,7 @@ public function databaseType() { /** * {@inheritdoc} */ - public function createDatabase($database) { - return; - } + public function createDatabase($database) {} /** * {@inheritdoc}