Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74cba18

Browse filesBrowse files
committed
Fixing unintended CS errors (thanks @wouterj)
1 parent 434c79d commit 74cba18
Copy full SHA for 74cba18

File tree

3 files changed

+2
-3
lines changed
Filter options

3 files changed

+2
-3
lines changed

‎src/Symfony/Bridge/Twig/Translation/TwigExtractor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Translation/TwigExtractor.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function extractTemplate(string $template, MessageCatalogue $catalogue
9595
foreach ($metadata['notes'] as $index => $note) {
9696
if (isset($note['category']) && 'symfony-extractor-variables' === $note['category']) {
9797
// Keep the higher variables count
98-
if (count($extractedMessage[2]) > substr_count($note['content'], ',')) {
98+
if (\count($extractedMessage[2]) > substr_count($note['content'], ',')) {
9999
$metadata['notes'][$index] = $variablesNote;
100100
}
101101

‎src/Symfony/Component/Translation/Catalogue/AbstractOperation.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Catalogue/AbstractOperation.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ protected function processVariablesMetadata(string $domain)
186186
$sourceMetadata['notes'][] = $variablesNote;
187187
}
188188

189-
190189
$this->result->setMetadata($id, $sourceMetadata, $sourceDomain);
191190
}
192191
}

‎src/Symfony/Component/Translation/Extractor/PhpExtractor.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Extractor/PhpExtractor.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ protected function parseTokens(array $tokens, MessageCatalogue $catalog, string
348348
foreach ($metadata['notes'] as $index => $note) {
349349
if (isset($note['category']) && 'symfony-extractor-variables' === $note['category']) {
350350
// Keep the higher variables count
351-
if (count($variables) > substr_count($note['content'], ',')) {
351+
if (\count($variables) > substr_count($note['content'], ',')) {
352352
$metadata['notes'][$index] = $variablesNote;
353353
}
354354

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.