Skip to content

Commit 058dee7

Browse files
committed
minor symfony#18293 [FrameworkBundle 2.7+] Removed unused variables (iltar)
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle 2.7+] Removed unused variables | Q | A | ------------- | --- | Branch? | 2.7, can be merged upwards | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ I noticed some unused variables in the Framework Extension. I did a project inspection in phpstorm and I found nothing else. Hence I submit this PR to make it consistent again. Commits ------- 9fea1ee Removed unused variables
2 parents d31d92e + 9fea1ee commit 058dee7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,8 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
721721
->in($dirs)
722722
;
723723

724-
$locales = array();
725724
foreach ($finder as $file) {
726-
list($domain, $locale, $format) = explode('.', $file->getBasename(), 3);
725+
list(, $locale) = explode('.', $file->getBasename(), 3);
727726
if (!isset($files[$locale])) {
728727
$files[$locale] = array();
729728
}

0 commit comments

Comments
 (0)