Skip to content

Commit c2285c1

Browse files
minor #20364 CS: apply rules (keradus)
This PR was squashed before being merged into the 2.7 branch (closes #20364). Discussion ---------- CS: apply rules | Q | A | | --- | --- | | Branch? | 2.7 | | Bug fix? | no | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Tests pass? | n/a | | Fixed tickets | - | | License | MIT | | Doc PR | - | Commits ------- 22d4e15 CS: apply rules
2 parents f99349c + 4259256 commit c2285c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dumper/IcuResFileDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function format(MessageCatalogue $messages, $domain = 'messages')
3434

3535
foreach ($messages->all($domain) as $source => $target) {
3636
$indexes .= pack('v', strlen($data) + 28);
37-
$data .= $source."\0";
37+
$data .= $source."\0";
3838
}
3939

4040
$data .= $this->writePadding($data);

Translator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ private function getFallbackContent(MessageCatalogue $catalogue)
376376
$fallbackSuffix = ucfirst(preg_replace($replacementPattern, '_', $fallback));
377377
$currentSuffix = ucfirst(preg_replace($replacementPattern, '_', $current));
378378

379-
$fallbackContent .= sprintf(<<<EOF
380-
\$catalogue%s = new MessageCatalogue('%s', %s);
381-
\$catalogue%s->addFallbackCatalogue(\$catalogue%s);
379+
$fallbackContent .= sprintf(<<<'EOF'
380+
$catalogue%s = new MessageCatalogue('%s', %s);
381+
$catalogue%s->addFallbackCatalogue($catalogue%s);
382382

383383
EOF
384384
,

0 commit comments

Comments
 (0)