Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 2 locations

@@ 367-375 (lines=9) @@
364
     *
365
     * @return callable
366
     */
367
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
368
    {
369
        return $container->protect(function (array $mapping, Configuration $config) {
370
            return new SimplifiedYamlDriver(
371
                [$mapping['path'] => $mapping['namespace']],
372
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
373
            );
374
        });
375
    }
376
377
    /**
378
     * @param Container $container
@@ 382-390 (lines=9) @@
379
     *
380
     * @return callable
381
     */
382
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
383
    {
384
        return $container->protect(function (array $mapping, Configuration $config) {
385
            return new SimplifiedXmlDriver(
386
                [$mapping['path'] => $mapping['namespace']],
387
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
388
            );
389
        });
390
    }
391
392
    /**
393
     * @param Container $container