Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 2 locations

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