diff --git a/core/lib/Drupal/Core/Command/DbDumpCommand.php b/core/lib/Drupal/Core/Command/DbDumpCommand.php index 3698346c9e9..7cae1ffcbee 100644 --- a/core/lib/Drupal/Core/Command/DbDumpCommand.php +++ b/core/lib/Drupal/Core/Command/DbDumpCommand.php @@ -404,7 +404,7 @@ class DbDumpCommand extends DbCommandBase { // The template contains an instruction for the file to be ignored by PHPCS. // This is because the files can be huge and coding standards are // irrelevant. - $script = <<<'ENDOFSCRIPT' + $script = <<<'END_OF_SCRIPT' databaseType() === 'mysql') { if ($connection->databaseType() === 'mysql') { $connection->query("SET sql_mode = '$sql_mode'"); } -ENDOFSCRIPT; +END_OF_SCRIPT; return $script; } diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index 0b042e48ab2..d4de89a79b2 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -168,7 +168,6 @@ colspans columnschange comida commenters -commontest complote compositionend compositionstart @@ -179,7 +178,6 @@ contentblock contextuals controlgroup conv -coretest corge countquery cpio @@ -288,9 +286,6 @@ endcode endembed endlink endmacro -endofheader -endofscript -endpo endset endtrans enim @@ -507,8 +502,6 @@ milli mimetypes minifyzombies minusthick -missingkey -missingkeys mlfr mlid mocktail diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php index af4c6e2eb13..0dfe8df79dd 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php @@ -47,7 +47,7 @@ class ConfigTranslationInstallTest extends InstallerTestBase { * Contents for the test .po file. */ protected function getPo($langcode) { - return <<mkdir($this->publicFilesDirectory . '/translations', NULL, TRUE); - $contents = <<publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents); return $parameters; diff --git a/core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php b/core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php index 7871179bd05..ec29fc9a3ea 100644 --- a/core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php @@ -46,14 +46,14 @@ class LocaleNonInteractiveInstallTest extends BrowserTestBase { // Create a po file so we don't attempt to download one from // localize.drupal.org and to have a test translation that will not change. \Drupal::service('file_system')->mkdir($this->publicFilesDirectory . '/translations', NULL, TRUE); - $contents = <<getVersionStringToTest(); file_put_contents($this->publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents); return $parameters; diff --git a/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php b/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php index e6b92e1f853..dc83137f56b 100644 --- a/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php @@ -52,7 +52,7 @@ class UmamiMultilingualInstallTest extends InstallerTestBase { * Contents for the test .po file. */ protected function getPo($langcode) { - return <<getModuleList() as $module => $filename) { $output .= " * - $module\n"; diff --git a/core/scripts/dump-database-d7.sh b/core/scripts/dump-database-d7.sh index 4689672cb3f..c4a4aa56c4e 100644 --- a/core/scripts/dump-database-d7.sh +++ b/core/scripts/dump-database-d7.sh @@ -32,7 +32,7 @@ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); include_once dirname(__FILE__) . '/../includes/utility.inc'; // Output the PHP header. -$output = <<getModuleList() as $module => $filename) { $output .= " * - $module\n"; diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php index 2f7e08a9209..06a58c93bbb 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php @@ -132,13 +132,13 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase { * Contents for the test .po file. */ protected function getPo($langcode) { - return <<assertEquals($expected_changelist_spanish_collection, $comparer->getChangelist(NULL, 'language.es')); // Change a translation and ensure configuration is updated. - $po = <<publicFilesDirectory . '/translations/drupal-8.0.0.es.po', $po); // Manually update the translation status so can re-run the import. @@ -194,7 +194,7 @@ ENDPO; * Contents for the test .po file. */ protected function getPo($langcode) { - return <<siteDirectory . '/files/translations', 0777, TRUE); - $po_contents = <<CREATE a test table on your database server with the command %query. The server reports the following message: %error.

Are you sure the configured username has the necessary permissions to create tables in the database?

" msgstr "CREATE ein Test-Tabelle auf Ihrem Datenbankserver mit dem Befehl %query fehlgeschlagen." -ENDPO; +PO; } } diff --git a/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php index c1cf06d6405..67583e509a9 100644 --- a/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -86,13 +86,13 @@ BROKEN_INFO; * @covers ::parse */ public function testInfoParserMissingKeys() { - $missing_keys = <<