Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/core/Classes/TypoScript/TemplateService.php 2 locations

@@ 1166-1170 (lines=5) @@
1163
1164
        $paths = $this->templateIncludePaths;
1165
        $files = [];
1166
        foreach ($this->constants as &$value) {
1167
            $includeData = Parser\TypoScriptParser::checkIncludeLines($value, 1, true, array_shift($paths));
1168
            $files = array_merge($files, $includeData['files']);
1169
            $value = $includeData['typoscript'];
1170
        }
1171
        unset($value);
1172
        $paths = $this->templateIncludePaths;
1173
        foreach ($this->config as &$value) {
@@ 1173-1177 (lines=5) @@
1170
        }
1171
        unset($value);
1172
        $paths = $this->templateIncludePaths;
1173
        foreach ($this->config as &$value) {
1174
            $includeData = Parser\TypoScriptParser::checkIncludeLines($value, 1, true, array_shift($paths));
1175
            $files = array_merge($files, $includeData['files']);
1176
            $value = $includeData['typoscript'];
1177
        }
1178
        unset($value);
1179
1180
        if (!empty($files)) {