Code Duplication    Length = 8-8 lines in 2 locations

typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 2 locations

@@ 1538-1545 (lines=8) @@
1535
        // scope but to use $GLOBALS['TYPO3_CONF_VARS'] instead.
1536
        // Nevertheless we define it here as global for backwards compatibility.
1537
        global $TYPO3_CONF_VARS;
1538
        foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $_EXTKEY => $extensionInformation) {
1539
            if ((is_array($extensionInformation) || $extensionInformation instanceof \ArrayAccess) && isset($extensionInformation['ext_localconf.php'])) {
1540
                // $_EXTKEY and $_EXTCONF are available in ext_localconf.php
1541
                // and are explicitly set in cached file as well
1542
                $_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY] ?? null;
1543
                require $extensionInformation['ext_localconf.php'];
1544
            }
1545
        }
1546
    }
1547
1548
    /**
@@ 1795-1802 (lines=8) @@
1792
        global $PAGES_TYPES, $TBE_STYLES;
1793
        global $_EXTKEY;
1794
        // Load each ext_tables.php file of loaded extensions
1795
        foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $_EXTKEY => $extensionInformation) {
1796
            if ((is_array($extensionInformation) || $extensionInformation instanceof \ArrayAccess) && !empty($extensionInformation['ext_tables.php'])) {
1797
                // $_EXTKEY and $_EXTCONF are available in ext_tables.php
1798
                // and are explicitly set in cached file as well
1799
                $_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY] ?? null;
1800
                require $extensionInformation['ext_tables.php'];
1801
            }
1802
        }
1803
    }
1804
1805
    /**