Code Duplication    Length = 8-8 lines in 2 locations

Classes/Facet/FacetSuggestionService.php 1 location

@@ 120-127 (lines=8) @@
117
     *
118
     * @return array
119
     */
120
    protected function getSettings()
121
    {
122
        /** @var \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager $backendConfigurationManager */
123
        $objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
124
        $backendConfigurationManager = $objectManager->get('TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager');
125
        $configuration = $backendConfigurationManager->getTypoScriptSetup();
126
        return $configuration['module.']['tx_vidi.']['settings.'];
127
    }
128
129
}
130

Classes/Module/ModulePreferences.php 1 location

@@ 211-218 (lines=8) @@
208
     *
209
     * @return array
210
     */
211
    protected function getSettings()
212
    {
213
        /** @var \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager $backendConfigurationManager */
214
        $objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
215
        $backendConfigurationManager = $objectManager->get(\TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::class);
216
        $configuration = $backendConfigurationManager->getTypoScriptSetup();
217
        return $configuration['module.']['tx_vidi.']['settings.'];
218
    }
219
220
    /**
221
     * @return object|DataService