Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 2 locations

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