Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php 1 location

@@ 988-993 (lines=6) @@
985
            $languageFactory = GeneralUtility::makeInstance(LocalizationFactory::class);
986
            $this->LOCAL_LANG = $languageFactory->getParsedData($languageFilePath, $this->LLkey);
987
            $alternativeLanguageKeys = GeneralUtility::trimExplode(',', $this->altLLkey, true);
988
            foreach ($alternativeLanguageKeys as $languageKey) {
989
                $tempLL = $languageFactory->getParsedData($languageFilePath, $languageKey);
990
                if ($this->LLkey !== 'default' && isset($tempLL[$languageKey])) {
991
                    $this->LOCAL_LANG[$languageKey] = $tempLL[$languageKey];
992
                }
993
            }
994
            // Overlaying labels from TypoScript (including fictitious language keys for non-system languages!):
995
            if (isset($this->conf['_LOCAL_LANG.'])) {
996
                // Clear the "unset memory"

typo3/sysext/form/Classes/Service/TranslationService.php 1 location

@@ 506-511 (lines=6) @@
503
            $languageFactory = GeneralUtility::makeInstance(LocalizationFactory::class);
504
            $this->LOCAL_LANG = $languageFactory->getParsedData($locallangPathAndFilename, $this->languageKey);
505
506
            foreach ($this->alternativeLanguageKeys as $language) {
507
                $tempLL = $languageFactory->getParsedData($locallangPathAndFilename, $language);
508
                if ($this->languageKey !== 'default' && isset($tempLL[$language])) {
509
                    $this->LOCAL_LANG[$language] = $tempLL[$language];
510
                }
511
            }
512
        }
513
        $this->loadTypoScriptLabels();
514
    }