Verified Commit 011f41e8 authored by Jess's avatar Jess
Browse files

Issue #3405899 by quietone, smustgrave: Fix spelling of heredoc indentifiers

(cherry picked from commit ec3d785e)
parent 8a4a785d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -404,7 +404,7 @@ protected function getTemplate() {
    // 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'
<?php
// phpcs:ignoreFile
/**
@@ -430,7 +430,7 @@ protected function getTemplate() {
if ($connection->databaseType() === 'mysql') {
  $connection->query("SET sql_mode = '$sql_mode'");
}
ENDOFSCRIPT;
END_OF_SCRIPT;
    return $script;
  }

+0 −7
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ protected function setUpLanguage() {
   *   Contents for the test .po file.
   */
  protected function getPo($langcode) {
    return <<<ENDPO
    return <<<PO
msgid ""
msgstr ""

@@ -59,7 +59,7 @@ protected function getPo($langcode) {

msgid "Language"
msgstr "Language $langcode"
ENDPO;
PO;
  }

  public function testConfigTranslation() {
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ protected function installParameters() {
    // 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 = <<<ENDPO
    $contents = <<<PO
msgid ""
msgstr ""

@@ -78,7 +78,7 @@ protected function installParameters() {
msgid "Non-word-item to translate."
msgstr "Non-word-german sdfwedrsdf."

ENDPO;
PO;
    $version = explode('.', \Drupal::VERSION)[0] . '.0.0';
    file_put_contents($this->publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents);
    return $parameters;
+2 −2
Original line number Diff line number Diff line
@@ -46,14 +46,14 @@ protected function installParameters() {
    // 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 = <<<ENDPO
    $contents = <<<PO
msgid ""
msgstr ""

msgid "Enter the password that accompanies your username."
msgstr "Geben sie das Passwort für ihren Benutzernamen ein."

ENDPO;
PO;
    $version = $this->getVersionStringToTest();
    file_put_contents($this->publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents);
    return $parameters;
Loading