Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 294-296 (lines=3) @@
291
            $this->validateTypeAndService($config, sprintf('as3_modlr.persisters.%s', $name));
292
            if (isset($config['type'])) {
293
                if ('mongodb' === $config['type']) {
294
                    if (false === class_exists(Utility::getLibraryClass('Persister\MongoDb\Persister'))) {
295
                        throw new InvalidConfigurationException(sprintf('The MongoDB persister library class was not found for "as3_modlr.persisters.%s.type" - was the library installed?', $name));
296
                    }
297
                    if (!isset($config['parameters']['host'])) {
298
                        throw new InvalidConfigurationException(sprintf('The MongoDB persister requires a value for "as3_modlr.persisters.%s.parameters.host"', $name));
299
                    }
@@ 320-322 (lines=3) @@
317
            $this->validateTypeAndService($config, sprintf('as3_modlr.search_clients.%s', $name));
318
            if (isset($config['type'])) {
319
                if ('elastic' === $config['type']) {
320
                    if (false === class_exists(Utility::getLibraryClass('Search\Elastic\Client'))) {
321
                        throw new InvalidConfigurationException(sprintf('The Elastic persister library class was not found for "as3_modlr.search_clients.%s.type" - was the library installed?', $name));
322
                    }
323
                } else {
324
                    throw new InvalidConfigurationException(sprintf('An unrecognized search type was set for "as3_modlr.search_clients.%s.type"', $name));
325
                }