Skip to content

Commit 2dd79ee

Browse files
erge branch '3.1'
* 3.1: Remove trailing space CS fixes Remove trailing space CS: apply rules [Yaml] Clean some messages + add test case [Console] simplified code [Form] Fix UrlType transforms valid protocols [SecurityBundle] Changed encoder configuration example to bcrypt
2 parents 7f401e7 + c682161 commit 2dd79ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Catalogue/TargetOperation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* all = intersection ∪ (target ∖ intersection) = target
1818
* new = all ∖ source = {x: x ∈ target ∧ x ∉ source}
1919
* obsolete = source ∖ all = source ∖ target = {x: x ∈ source ∧ x ∉ target}
20-
* Basically, the result contains messages from the target catalogue.
20+
* Basically, the result contains messages from the target catalogue.
2121
*
2222
* @author Michael Lee <[email protected]>
2323
*/
@@ -34,12 +34,12 @@ protected function processDomain($domain)
3434
'obsolete' => array(),
3535
);
3636

37-
// For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``,
37+
// For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``,
3838
// because doing so will drop messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
3939
//
4040
// For 'new' messages, the code can't be simplied as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));``
4141
// because doing so will not exclude messages like {x: x ∈ target ∧ x ∉ source.all ∧ x ∈ source.fallback}
42-
//
42+
//
4343
// For 'obsolete' messages, the code can't be simplifed as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))``
4444
// because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
4545

Dumper/IcuResFileDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function formatCatalogue(MessageCatalogue $messages, $domain, array $opti
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
@@ -342,9 +342,9 @@ private function getFallbackContent(MessageCatalogue $catalogue)
342342
$fallbackSuffix = ucfirst(preg_replace($replacementPattern, '_', $fallback));
343343
$currentSuffix = ucfirst(preg_replace($replacementPattern, '_', $current));
344344

345-
$fallbackContent .= sprintf(<<<EOF
346-
\$catalogue%s = new MessageCatalogue('%s', %s);
347-
\$catalogue%s->addFallbackCatalogue(\$catalogue%s);
345+
$fallbackContent .= sprintf(<<<'EOF'
346+
$catalogue%s = new MessageCatalogue('%s', %s);
347+
$catalogue%s->addFallbackCatalogue($catalogue%s);
348348

349349
EOF
350350
,

0 commit comments

Comments
 (0)