Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/indexed_search/Classes/Service/DatabaseSchemaService.php 1 location

@@ 34-39 (lines=6) @@
31
        // Check again if the extension flag is enabled to be on the safe side
32
        // even if the slot registration is moved around in ext_localconf
33
        $extConf = [];
34
        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['indexed_search'])) {
35
            $extConf = unserialize(
36
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['indexed_search'],
37
                ['allowed_classes' => false]
38
            );
39
        }
40
        if (isset($extConf['useMysqlFulltext']) && $extConf['useMysqlFulltext'] === '1') {
41
            // @todo: With MySQL 5.7 fulltext index on InnoDB is possible, check for that and keep inno if so.
42
            $sqlString[] = 'CREATE TABLE index_fulltext ('

typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php 1 location

@@ 213-218 (lines=6) @@
210
    {
211
        // unserializing the configuration so we can use it here:
212
        $extConf = [];
213
        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['indexed_search'])) {
214
            $extConf = unserialize(
215
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['indexed_search'],
216
                ['allowed_classes' => false]
217
            );
218
        }
219
220
        // Getting SQL result pointer:
221
        $this->getTimeTracker()->push('Searching result');